ANS-C01 Question 297
Single answerAn e-commerce company is hosting their website on an Amazon S3 bucket configured as a static website. They want to use their custom domain (e.g., www.example.com) instead of the S3 bucket's endpoint. Which DNS record type should they use to point their custom domain to the S3 bucket?
- A
A Record
- B
AAAA Record
- C
TXT Record
- D
Alias Record
Show answer and explanation
Correct answer: D
Explanation
When pointing a custom domain to an AWS resource like an Amazon S3 bucket, an Alias Record is the appropriate DNS record type. Alias Records allow you to map a custom domain to AWS resources without the need for IP addresses, which is particularly useful as AWS resources often use dynamic IPs. This functionality is unique to Route 53 and is specifically optimized for AWS services.
- A. Incorrect.
An A Record maps a domain name to an IPv4 address. Since S3 bucket endpoints do not provide IP addresses but rather hostnames, an A Record is not suitable in this case.
- B. Incorrect.
An AAAA Record maps a domain name to an IPv6 address. Similar to the A Record, S3 bucket endpoints do not provide IP addresses, so an AAAA Record cannot be used here.
- C. Incorrect.
A TXT Record is used to associate arbitrary text with a domain, often used for purposes like email verification or security settings. It cannot be used to point a domain to an S3 bucket.
- D. Correct.
An Alias Record is specifically designed to map custom domains to AWS resources like S3 buckets, CloudFront distributions, or Elastic Load Balancers. It resolves to the hostname of the resource instead of requiring an IP address, making it the correct choice.