
Answer-first summary for fast verification
Answer: Remove the weighted DNS record entry that points to the S3 bucket from the example.com hosted zone. Wait for DNS propagation to become complete.
The correct answer is D. The issue occurs because the DNS records still include the weighted entry pointing to the S3 bucket, causing some traffic to be directed to the old static content. Simply setting the weight to 0 (option B) is not enough because Route 53 considers zero-weight records if higher-weight records are deemed unhealthy. Therefore, to ensure that only dynamic content is served, the DevOps engineer should remove the weighted DNS record entry that points to the S3 bucket from the hosted zone. This action will eliminate the possibility of traffic being routed to the static site once DNS propagation is complete.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A company initially hosted a static website on an Amazon S3 bucket accessible via example.com, utilizing an Amazon Route 53 weighted routing policy with a TTL of 1 day. They have now transitioned to a dynamic web application, fronted by an Application Load Balancer (ALB) directing traffic to a fleet of Amazon EC2 instances. To facilitate this transition, an additional Route 53 weighted DNS record was created, pointing to the ALB with a weight of 255 and a TTL of 1 hour. Despite these changes, the static website content occasionally appears when customers visit example.com. What action should a DevOps engineer take to ensure that only the new dynamic content is served from example.com?
A
Delete all objects, including previous versions, from the S3 bucket that contains the static website content.
B
Update the weighted DNS record entry that points to the S3 bucket. Apply a weight of 0. Specify the domain reset option to propagate changes immediately.
C
Configure webpage redirect requests on the S3 bucket with a hostname that redirects to the ALB.
D
Remove the weighted DNS record entry that points to the S3 bucket from the example.com hosted zone. Wait for DNS propagation to become complete.