A SysOps Administrator is configuring Amazon Route 53 for a company's new corporate landing page. The landing page is hosted on an Amazon S3 bucket configured for static website hosting. The company wants the landing page to be accessible directly via the apex domain (example.com). Which configuration should the administrator use to map the apex domain to the Amazon S3 website endpoint?
- ACreate a CNAME record for the apex domain (example.com) that points to the S3 bucket website endpoint domain name.
- Create an Alias A record for the apex domain (example.com) that points to the S3 bucket website endpoint.Answer
- CCreate an Alias A record for the apex domain (example.com) with a Failover routing policy pointing to the S3 bucket website endpoint, but do not associate any Route 53 health checks.
- DCreate a CNAME record for the apex domain (example.com) and configure a Geolocation routing policy pointing to the S3 bucket website endpoint.
Answer
Create an Alias A record for the apex domain (example.com) that points to the S3 bucket website endpoint.
The correct configuration is to create an Alias A record for the apex domain pointing to the S3 bucket website endpoint. Route 53 Alias records are a proprietary extension that allows mapping apex domains directly to specific AWS resources, such as S3 buckets, CloudFront distributions, and ELBs. Unlike standard CNAME records, Alias records resolve to A records during DNS queries, satisfying the requirement that the zone apex must have an A record (or similar address records) and avoiding conflicts with mandatory zone-level records like SOA and NS.
Step-by-Step Solution
Key Concept
Route 53 Alias records resolve zone apex limitations by mapping directly to AWS resources.
Estimated Time:1m 30s