AWS Certified SysOps Administrator – Associate — Question 329
A company uses Amazon CloudFront to serve static content to end users. The company's marketing team recently deployed updates to 150 images on the company's website. However, the website is not displaying some of the new images.
A SysOps administrator reviews the CloudFront distribution's cache settings. The default TTL for the distribution is set to 1 week (604,800 seconds).
What should the SysOps administrator do to refresh the cache with the new images in the MOST operationally efficient way?
Answer options
- A. Create a new CloudFront distribution that has the same origin. Set the default TTL to 1 minute (60 seconds). Switch Amazon Route 53 DNS records to use the new distribution.
- B. Instruct the marketing team to upload the new images to a different location. When the new images are uploaded, update the website to locate the new images.
- C. Issue a CloudFront invalidation request to immediately expire the new images from the marketing team's update.
- D. Update the existing CloudFront distribution to reconfigure the default TTL to 1 minute (60 seconds). During submission of the new configuration, include the flag to invalidate objects in the specified path.
Correct answer: C
Explanation
Submitting a CloudFront invalidation request is the most operationally efficient method to immediately remove cached objects from edge locations before their TTL expires. Creating a new distribution or changing the default TTL to 1 minute introduces unnecessary overhead and latency, while manually changing object paths requires code modifications. Invalidation targets only the specified updated files, allowing CloudFront to pull the fresh images from the origin on the next user request.