Interview Prep/Networking/DNS & Service Discovery

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 →

  1. Weighted: split traffic by weights, for canary releases such as 95/5
  2. Failover: primary answers while its health check is healthy, otherwise the secondary is returned
  3. Attach health checks with aws route53 create-health-check
  4. Set TTL low (30 to 60s) so shifts take effect fast
  5. 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.

All Networking questions Roadmap: Networking for DevOps

More on DNS & Service Discovery