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?
- AAdjust the TTL value for the DNS CNAME record that is pointing to the CloudFront distribution.
- BCreate an invalidation on the CloudFront distribution for the old S3 objects. (correct answer)
- CCreate a new CloudFront distribution. Update the DNS records to point to the new CloudFront distribution.
- DUpdate the DNS record for the website to point to the S3 bucket.
Reveal answer & explanationHide answer
The correct answer is B. Option B: Create an invalidation on the CloudFront distribution for the old S3 objects.
Explanation
Amazon S3 provides durable, scalable object storage that is fully managed. Amazon CloudFront caches content at edge locations to reduce latency and offload origins.