AWS Certified SysOps Administrator – Associate — Question 415
A SysOps administrator is trying to set up an Amazon Route 53 domain name to route traffic to a website hosted on Amazon S3. The domain name of the website is www.example.com and the S3 bucket name DOC-EXAMPLE-BUCKET. After the record set is set up in Route 53, the domain name www.anycompany.com does not seem to work, and the static website is not displayed in the browser.
Which of the following is a cause of this?
Answer options
- A. The S3 bucket must be configured with Amazon CloudFront first.
- B. The Route 53 record set must have an IAM role that allows access to the S3 bucket.
- C. The Route 53 record set must be in the same region as the S3 bucket.
- D. The S3 bucket name must match the record set name in Route 53.
Correct answer: D
Explanation
To host a static website on Amazon S3 and route traffic to it using Amazon Route 53, the S3 bucket name must exactly match the fully qualified domain name (FQDN) of the record set. In this scenario, because the bucket name is DOC-EXAMPLE-BUCKET instead of www.example.com, the routing fails. CloudFront is optional for static website hosting, and Route 53 records do not use IAM roles to access S3 buckets.