What is the difference between a CNAME and an alias record in Route 53?
BeginnerScenarioRoute 53, CloudFront and Messaging
Answer
Situation read → Alias is a Route 53 extension that works at the zone apex and is free for AWS targets.
What I'd do →
- CNAME cannot exist at
example.comapex - Alias to ALB, CloudFront, S3 website, API Gateway, with no query charge
- Alias records resolve to A or AAAA, so health tracking is built in
- Create via
aws route53 change-resource-record-sets
Why → Alias gives apex support and removes an extra DNS hop.
Interview tip → Use alias for AWS resources, CNAME for external ones.
More on Route 53, CloudFront and Messaging
You want users routed to the nearest healthy region. Which Route 53 policy do you use?BeginnerPrimary region fails; how do you fail over DNS in a controlled way?IntermediateRoll out a new version to 5 percent of users using DNS. How?IntermediateCloudFront serves stale content after you deployed a new JS bundle. How do you handle cache correctly?IntermediateCloudFront returns 403 from an S3 origin. List the checks.IntermediateProtect an origin so that only CloudFront can reach your ALB.Advanced