Route 53 DNS and CloudFront Content Delivery for SOA-C03
Amazon Route 53 is AWS's DNS service — hosted zones, records, routing policies, health checks, and the Resolver that answers every query inside your VPCs — and Amazon CloudFront is the CDN that delivers your content from edge locations worldwide. Task 5.2 of the SOA-C03 exam tests whether you can configure both as an operator: choose alias records over CNAMEs at the zone apex, wire hybrid DNS with Resolver endpoints and share it across accounts, pick the routing policy and health check a scenario demands, enable the query log that answers the question being asked, and build CloudFront distributions with Origin Access Control, ordered cache behaviors, sane TTLs, origin failover, and an ACM certificate in the right Region. It closes with the exam's favorite comparison: CloudFront versus AWS Global Accelerator. Configuration lives here; diagnosing cache misses and failed resolutions belongs to Task 5.3.
What you’ll learn
- Configure public and private hosted zones, choose the right record type for each job, and use alias records at the zone apex
- Plan DNS changes with TTL reductions ahead of a cutover
- Set up Route 53 Resolver endpoints and forwarding rules for hybrid DNS, and share private zones and rules across accounts
- Select the routing policy — simple, weighted, latency, failover, geolocation, geoproximity, or multivalue — and the health check that matches a scenario
- Enable the right query logging surface: public DNS query logs versus Resolver query logs
- Configure CloudFront origins with OAC, ordered cache behaviors with cache and origin request policies, TTLs, invalidations, origin failover, and custom-domain HTTPS
- Choose between CloudFront and Global Accelerator by protocol, caching, static IP, and failover needs
The 13 parts · about 16 min of reading
- Hosted zones and record types in practiceStart herePublic zones answer the internet, private zones answer associated VPCs, and A, AAAA, CNAME, TXT and MX each do one DNS job.1 min
- Alias records and TTL operationsAlias records point at AWS resources even at the apex and are free to query; lower a TTL well before any planned cutover.1 min
- Route 53 Resolver and hybrid DNSThe VPC+2 Resolver answers only inside the VPC, so inbound endpoints serve on-premises lookups and outbound endpoints forward out.2 min
- Sharing private zones and Resolver rules across VPCs and accountsCross-account DNS reuse: authorize-then-associate for private zones, RAM for Resolver rules, and Route 53 Profiles for whole setups.1 min
- Routing policies compared — and a canary migrationMatch each routing policy to its scenario, tell the geo pair apart, and shift a migration with weighted records and quick rollback.2 min
- Health checks that drive routingStandard endpoint checks reach only public targets; private resources use an alarm-based or private endpoint check, and aliases can inherit target health.1 min
- Query loggingPublic query logs show who asks your public zone, Resolver logs show what instances look up; Flow Logs and CloudTrail show neither.1 min
- CloudFront origins and Origin Access ControlKeep S3 private behind OAC with a distribution-scoped bucket policy, allow KMS decrypt for SSE-KMS, and use custom origins for HTTP.1 min
- Cache behaviors, cache policies, and origin request policiesPath patterns choose the origin with the first match winning; cache policies set the key and TTLs, origin request policies forward.1 min
- TTLs, cache headers, and invalidationsOrigin max-age is clamped to the TTL bounds, s-maxage sets edge life, and versioned file names beat invalidations for deploys.2 min
- Origin failover with origin groupsAn origin group retries GET, HEAD and OPTIONS on the secondary when the primary errors or times out; POST and PUT never fail over.1 min
- Custom-domain HTTPS on CloudFrontCustom-domain HTTPS on CloudFront needs a us-east-1 ACM certificate, the alternate domain name, and a DNS alias to the distribution.1 min
- CloudFront vs Global AcceleratorCloudFront caches HTTP at the edge; Global Accelerator gives two static anycast IPs for any TCP or UDP app and fails over instantly.1 min
Mind map
How the exam tests this
Questions are scenarios that state a constraint and expect the feature whose behaviour satisfies it: alias versus CNAME at the zone apex and for query charges; TTL as the lever that governs how fast a record change propagates; inbound versus outbound Resolver endpoints by the direction of the query; authorize-then-associate for a private hosted zone in another account versus RAM sharing for Resolver rules; weighted, failover, latency, geolocation and multivalue routing by what each returns and whether it honours health checks; and CloudWatch-alarm health checks for endpoints Route 53 cannot reach directly. Query-logging questions turn on which side of the Resolver the traffic originates and on the us-east-1 log group. CloudFront questions probe OAC (including SSE-KMS key policies), behavior precedence, cache versus origin request policy, max-age versus s-maxage, invalidations versus versioned names, and origin failover limits; certificate questions hinge on us-east-1. CloudFront versus Global Accelerator comes down to caching HTTP content versus a small fixed set of static IPs for any TCP/UDP application with in-network regional failover. Diagnosing broken resolution and cache misses appears under Task 5.3.
Key takeaways
- Alias records work at the zone apex, track their AWS target automatically, and are free to query when targeting AWS resources; CNAMEs cannot sit at the apex.
- Lower a record's TTL at least one old-TTL period before a cutover; lowering it at the moment of change leaves resolvers on the old answer.
- On-prem must resolve VPC names: inbound Resolver endpoint. VPCs must resolve on-prem domains: outbound endpoint plus forwarding rules.
- Cross-account private zones: owner authorizes, VPC owner associates (CLI/API). Resolver rules and Route 53 Profiles are shared through AWS RAM; endpoints are not.
- Simple routing cannot use health checks; weighted returns one record per response; multivalue returns up to eight healthy records.
- Private resources need a health check that monitors a CloudWatch alarm; Evaluate Target Health works only on alias records.
- Public DNS query logs go to CloudWatch Logs in us-east-1 under a resource policy; Resolver query logs cover queries from your VPCs and can go to S3 or Firehose.
- OAC plus a bucket policy scoped to the distribution ARN keeps S3 private; SSE-KMS also needs kms:Decrypt for CloudFront in the key policy.
- Cache behaviors match in precedence order; the cache policy sets key and TTLs, the origin request policy adds forwarded values, neither picks an origin.
- Prefer versioned object names over invalidations; origin groups fail over only GET, HEAD and OPTIONS requests.
- Custom-domain HTTPS on CloudFront: us-east-1 ACM certificate, alternate domain name, and an alias record to the distribution.
- Two static anycast IPs for any TCP/UDP app, or instant regional failover, means Global Accelerator; caching HTTP content means CloudFront (whose opt-in Anycast Static IPs are HTTP-only).
Part 1: Hosted zones and record types in practice
Public zones answer the internet, private zones answer associated VPCs, and A, AAAA, CNAME, TXT and MX each do one DNS job.
Frequently asked questions
Can I use a CNAME at the apex of my domain in Route 53?
No — DNS forbids a CNAME at the zone apex because it cannot coexist with the SOA and NS records that must live there. Route 53's answer is the alias record: it works at the apex, points directly at AWS resources like ALBs and CloudFront distributions, and queries to AWS targets are free.
What is the difference between geolocation and geoproximity routing?
Geolocation routes on where the user is — you map countries or continents to answers, which suits compliance and localized content, with a default record catching unmatched locations. Geoproximity routes on how close the user is to your resources and adds a bias value that expands or shrinks each resource's share, which suits deliberately shifting traffic between Regions.
How do on-premises servers resolve private DNS names in a VPC?
Create a Route 53 Resolver inbound endpoint, which places ENIs with fixed private IPs in your subnets, then configure the on-premises DNS servers to conditionally forward the AWS domains to those IPs over your VPN connection. For the reverse direction — VPC instances resolving on-premises names — use an outbound endpoint with forwarding rules.
Sign up free to mark lessons complete, bookmark topics and track your exam readiness.