How do Route 53 weighted and failover routing differ and when do you use each?
IntermediateScenarioDNS & Service Discovery
Answer
Situation read → Both are DNS-level traffic policies with different goals.
What I'd do →
- Weighted: split traffic by weights, for canary releases such as 95/5
- Failover: primary answers while its health check is healthy, otherwise the secondary is returned
- Attach health checks with
aws route53 create-health-check - Set TTL low (30 to 60s) so shifts take effect fast
- Latency and geolocation policies cover regional routing
Why → DNS routing decisions are cached, so TTL defines how quickly a change reaches clients.
Interview tip → Mention that DNS failover is coarse and not instant; pair with load balancer health checks.
More on DNS & Service Discovery
A customer types www.example.com in a browser. Walk through how DNS resolves it.BeginnerWhat is the difference between an A record and a CNAME, and when do you use each?BeginnerWhy can't you put a CNAME at the zone apex, and what do you use instead?BeginnerYou are moving a site to a new server. What do you do with DNS to make the cutover smooth?BeginnerHow do you find which nameservers are authoritative for a domain and query them directly?BeginnerWhat DNS records do you set up for company email?Beginner