AWS Certified SysOps Administrator – Associate — Question 420
A company uploaded its website files to an Amazon S3 bucket that has S3 Versioning enabled. The company uses an Amazon CloudFront distribution with the S3 bucket as the origin. The company recently modified the files, but the object names remained the same. Users report that old content is still appearing on the website.
How should a SysOps administrator remediate this issue?
Answer options
- A. Create a CloudFront invalidation, and add the path of the updated files.
- B. Create a CloudFront signed URL to update each object immediately.
- C. Configure an S3 origin access identity (OAI) to display only the updated files to users.
- D. Disable S3 Versioning on the S3 bucket so that the updated files can replace the old files.
Correct answer: A
Explanation
CloudFront caches content at edge locations based on its TTL settings, meaning updated files with the same name will not immediately display to users. Creating a CloudFront invalidation removes the outdated cached files from edge locations, forcing CloudFront to retrieve the latest versions from the S3 origin. S3 Versioning, OAIs, and signed URLs do not affect or clear existing CloudFront cache.