AWS Certified Advanced Networking – Specialty (ANS-C00) — Question 290
In Amazon CloudFront, if you need to quickly remove objects from a distribution, you can:
Answer options
- A. delete the objects from cache.
- B. invalidate the objects.
- C. remove your Amazon S3 bucket.
- D. delete your distribution and recreate it.
Correct answer: B
Explanation
Invalidating objects forces Amazon CloudFront to remove the specified files from edge caches before their TTL expires, ensuring the next request fetches the latest version from the origin. Direct manual deletion from the cache is not supported, while deleting the S3 bucket or recreating the distribution are highly disruptive and unnecessary actions for content updates.