DNS & Content Delivery
The global services that sit in front of an application, Route 53, CloudFront and Global Accelerator, and the map of this group.
What it is
Most AWS services live in one Region. Users, though, are everywhere. The services in this group sit in front of an application, at AWS's edge, and help users reach it quickly and reliably from anywhere in the world.
- Amazon Route 53 is AWS's DNS service. It turns names like
www.example.cominto IP addresses, and can choose which address to give each user: the nearest Region, a healthy server, a percentage split. - Amazon CloudFront is a content delivery network (CDN). It keeps copies of content in hundreds of edge locations, so users download it from nearby instead of from the application's Region.
- AWS Global Accelerator gives an application two static IP addresses at the edge, then carries traffic over the AWS private network to its Region. It speeds up any TCP or UDP application, not only websites.
The edge locations themselves are described in global infrastructure.
Example
A global online shop uses all three. Route 53 answers shop.example.com with the address of a CloudFront distribution. CloudFront serves product images and pages from the edge, and sends checkout requests to load balancers in two Regions. A multiplayer game run by the same company uses Global Accelerator, because its players connect over UDP and need fixed IP addresses.
In this group
DNS: Route 53
DNS basics
What DNS is, the parts of a name, and how a name is resolved.
Records and hosted zones
Record types, TTL, and public vs private hosted zones.
CNAME vs alias
Point a name, even the zone apex, at an AWS resource.
Routing policies
Simple, weighted, latency, failover, geo, IP-based, multivalue.
Health checks
Endpoint, calculated and CloudWatch health checks, and DNS failover.
Registrar and hybrid DNS
Third-party registrars, Resolver endpoints and DNS Firewall.
Content delivery
Amazon CloudFront
Origins, OAC, VPC origins, geo restriction, invalidations.
AWS Global Accelerator
Anycast static IPs and the AWS network, vs CloudFront.
Edge functions
CloudFront Functions vs Lambda@Edge.
Exam tips
- "Domain name", "DNS", "route users to the nearest Region", "DNS failover" → Route 53.
- "Cache static content globally", "reduce latency for images and video", "offload the origin" → CloudFront.
- "Static IP addresses for a global application", "TCP or UDP", "gaming", "fast regional failover without DNS caching" → Global Accelerator.
- "Run code at the edge to change requests or responses" → CloudFront Functions or Lambda@Edge.
Common traps
- "CloudFront for a UDP game." CloudFront handles HTTP and HTTPS (and WebSocket); use Global Accelerator for UDP.
- "Route 53 routes the traffic." It only answers DNS queries; the traffic itself never passes through Route 53.