Volume 2 · Chapter 11 — AWS Networking Deep Dive (VPC)
Route 53 in Depth
11.1 Introduction
Route 53 is more than “managed DNS” - the exam tests its record types, all of its routing policies, health checks, the alias-versus-CNAME distinction, public versus private hosted zones, and the Resolver for hybrid DNS. This chapter provides that depth, because DNS-based routing is central to global availability, failover, and traffic management designs.
11.2 Hosted Zones, Records, and Alias vs CNAME
Ahosted zoneis a container for a domain’s records: apublic hosted zoneanswers queries from the internet, while aprivate hosted zoneis associated with one or more VPCs and answers only from within them (for internal names). Records include A/AAAA (to IPs), CNAME (to another name), MX, TXT, NS, and more. The crucial AWS-specific concept is thealias record: an AWS-only extension that maps a name directly to an AWS resource (an ELB, CloudFront distribution, S3 website, API Gateway, or another Route 53 record). Aliases beat CNAMEs in three tested ways: they work at thezone apex(e.g.example.comwith no subdomain, where CNAME is not allowed), they’refree(no charge for alias queries), and they automatically track the resource’s changing IPs. Use an alias for AWS resources; a CNAME only for non-apex names pointing to external or non-AWS targets.
11.3 The Routing Policies
Route 53’s routing policies decide which answer to return, and the exam expects all of them:Simple(one record, no logic).Weighted(split traffic by assigned weights - for A/B testing or gradual shifts).Latency-based(route to the Region with the lowest latency for the user).Failover(active-passive: return the primary while healthy, else the secondary).Geolocation(route by the user’s geographic location - for compliance or localized content).Geoproximity(route based on the geographic distance between users and resources, with a adjustable “bias” to shift traffic).Multivalue answer(return multiple healthy records for client-side load distribution, with health checks). Knowing which policy fits a scenario - latency for performance, failover for DR, geolocation for residency, weighted for canary, multivalue for simple health-checked distribution - is a reliable exam skill.
flowchart TD
Q{Routing goal?} -->|Lowest latency to user| Lat[Latency-based]
Q -->|Active-passive DR| Fail[Failover + health checks]
Q -->|By user location / residency| Geo[Geolocation]
Q -->|Gradual shift / A-B / canary| Wt[Weighted]
Q -->|Shift traffic between Regions by bias| Gp[Geoproximity]
Q -->|Health-checked client-side spread| Mv[Multivalue answer]
Q -->|Single record, no logic| Simple[Simple] 11.4 Health Checks and DNS Failover
Route 53health checksmonitor endpoints (by HTTP/HTTPS/TCP), can be based on other health checks (calculated) or on a CloudWatch alarm, and are what make failover and multivalue routing dynamic - Route 53 only returns targets that are healthy. Combined with failover routing, health checks give automatic Region- or endpoint-level failover: when the primary’s health check fails, DNS stops returning it and returns the secondary. The caveat, as always with DNS, is that clients cache answers for the record’sTTL, so failover isn’t instant - lower TTLs speed failover at the cost of more queries. This DNS health-check-plus- failover mechanism is the backbone of multi-Region DR traffic shifting.
11.5 Route 53 Resolver and Hybrid DNS
For hybrid environments, theRoute 53 Resolverhandles DNS between your VPCs and on-premises.Inbound endpointslet on-premises systems resolve AWS private DNS names, andoutbound endpointswithresolver rulesforward queries for specific domains from your VPC to your on-premises DNS - so a hybrid network resolves names in both directions. Resolver rules can be shared across accounts via RAM. There’s alsoRoute 53 Resolver DNS Firewallto filter outbound DNS queries (blocking known-bad domains). For the exam: Resolver inbound = on-prem resolves AWS names, outbound + rules = AWS forwards to on-prem DNS - the standard hybrid DNS pattern.
11.6 Banking Production Scenario
A bank uses Route 53 alias records at its zone apex pointing to CloudFront and its load balancers (free, apex- capable, auto-tracking). Latency-based routing serves customers from the nearest Region, and failover routing with health checks automatically shifts traffic to the DR Region if the primary’s health check fails, with TTLs tuned for prompt failover. Geolocation routing keeps certain customers’ traffic in their required jurisdiction. A private hosted zone serves internal service names within the VPCs, and Route 53 Resolver inbound/outbound endpoints with rules provide hybrid DNS to the corporate data centre over Direct Connect, while the Resolver DNS Firewall blocks malicious domains. This full use of Route 53 - aliases, routing policies, health checks, private zones, and Resolver - is exactly the depth the certification expects.
11.7 Chapter Revision Notes
- Public hosted zone (internet) vs private hosted zone (VPC-internal); alias records map to AWS resources, work at the zone apex, are free, and beat CNAMEs (CNAME can’t be at apex).
- Routing policies: simple, weighted (A/B, canary), latency (performance), failover (DR), geolocation (residency), geoproximity (bias-based shift), multivalue (health-checked spread).
- Health checks (HTTP/HTTPS/TCP, calculated, or CloudWatch-alarm-based) drive failover/multivalue; DNS TTL caching bounds failover speed.
- Route 53 Resolver: inbound endpoint = on-prem resolves AWS names; outbound endpoint + rules = AWS forwards to on-prem DNS; DNS Firewall filters outbound queries.
- Use aliases for AWS resources, latency for performance, failover for DR, geolocation for residency, weighted for gradual shifts.