AWS Certified SysOps Administrator – Associate — Question 28
A company hosts a static website on Amazon S3. The website is served by an Amazon CloudFront distribution with a default TTL of 86,400 seconds.
The company recently uploaded an updated version of the website to Amazon S3. However, users still see the old content when they refresh the site. A SysOps administrator must make the new version of the website visible to users as soon as possible.
Which solution meets these requirements?
Answer options
- A. Adjust the TTL value for the DNS CNAME record that is pointing to the CloudFront distribution.
- B. Create an invalidation on the CloudFront distribution for the old S3 objects.
- C. Create a new CloudFront distribution. Update the DNS records to point to the new CloudFront distribution.
- D. Update the DNS record for the website to point to the S3 bucket.
Correct answer: B
Explanation
The correct answer is B because creating an invalidation on the CloudFront distribution forces it to remove the cached old content and retrieve the updated files from S3. The other options do not address the caching issue effectively; adjusting the TTL (A) only delays future caching, creating a new distribution (C) is unnecessary and time-consuming, and updating the DNS record (D) does not change what CloudFront is serving from its cache.