A Route 53 record has been created to point a domain name to a static website hosted in Amazon S3. The site’s DNS name is www.example.com but the S3 bucket is named DOC-EXAMPLE-BUCKET. After creating the record set in Route 53, the site at www.anycompany.com does not load. Which of the following explains why the website does not appear?
Choose an answer
Tap an option to check your answer.
Correct answer: The name of the S3 bucket must match the DNS record name exactly for S3 static website hosting to work..
Why this is the answer
For Amazon S3 static website hosting, the bucket name must exactly match the domain name you are using to access the website. In this scenario, the domain is www.example.com, but the S3 bucket is named DOC-EXAMPLE-BUCKET. S3 uses the bucket name as the hostname to resolve requests for static websites. Since the names do not match, S3 cannot find the correct website content. The other options are incorrect: CloudFront is not a prerequisite for Route 53 to route to S3 static websites, though it can be used for performance and security. Route 53 record sets do not require IAM roles to access S3 bucket contents; S3 bucket policies or ACLs control access. Route 53 is a global service, and while the S3 bucket is regional, the Route 53 record set does not need to be in the same region as the S3 bucket.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed