DNS & traffic management

Route 53 routing policies (failover, latency, weighted), private hosted zones, Resolver endpoints for hybrid DNS. Split-horizon DNS breaks quietly — know why.

About 30 min read3-question knowledge check

The mental model

DNS is the phone book of the internet, and Route 53 is the one AWS runs for you — but the interesting part is not looking up a number, it is deciding *which* number to hand back. A single name like api.example.in can resolve to different addresses depending on who is asking, from where, and whether the usual answer is healthy. That turns DNS from a static directory into a traffic-steering control plane: the first decision point every request passes through, made before a single packet reaches your infrastructure.

The analogy that makes routing policies click: imagine a national pizza chain with one phone number. When you call, a smart switchboard decides which kitchen to connect you to. It might pick the nearest kitchen (latency routing), split calls by percentage to test a new menu at one location (weighted routing), send you to the backup kitchen if your usual one is closed (failover routing), or route by your area code (geolocation). The number never changes; the switchboard's logic does. Route 53's routing policies are that switchboard.

Why this matters and why it is a senior topic: DNS is where you implement blue-green deploys, disaster-recovery failover, gradual rollouts, and geographic compliance — all without touching application code. It is also where subtle, quiet failures live. The number that trips everyone is TTL: you can change the answer instantly in Route 53, but resolvers and clients cache the old answer for the TTL duration, so "I changed DNS and it didn't work" is almost always caching. And in hybrid environments, split-horizon DNS — the same name resolving differently inside and outside the VPC — breaks in ways that look like anything but DNS. Understanding that resolution is a chain of caches, and that you control only one link, is the core insight.

The full lesson continues with 15 more sections
  • Deep dive
  • Internal architecture
  • Real-world use cases
  • Best practices
  • Common mistakes
  • Performance
  • Security
  • Production troubleshooting
  • Advantages & disadvantages
  • Alternatives
  • Interview expectations
  • Interview questions
  • Facts to remember
  • Cheat sheet
  • Quick revision
DNS & traffic management — Cloud lesson · PrepAtlas Tech