AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 79

A company is hosting a static website from an Amazon S3 bucket. The website is available to customers at example.com. The company uses an Amazon Route 53 weighted routing policy with a TTL of 1 day. The company has decided to replace the existing static website with a dynamic web application. The dynamic web application uses an Application Load Balancer (ALB) in front of a fleet of Amazon EC2 instances.

On the day of production launch to customers, the company creates an additional Route 53 weighted DNS record entry that points to the ALB with a weight of 255 and a TTL of 1 hour. Two days later, a DevOps engineer notices that the previous static website is displayed sometimes when customers navigate to example.com.

How can the DevOps engineer ensure that the company serves only dynamic content for example.com?

Answer options

Correct answer: D

Explanation

The correct answer is D, as removing the DNS record for the S3 bucket ensures that no requests are sent to the static site, allowing only the dynamic application to be served. Option A does not prevent DNS resolution to the S3 bucket, and options B and C would not effectively stop the static site from being reached due to cached DNS entries still pointing to it.