A company hosts a static website on Amazon S3 behind Amazon CloudFront. The site uses a database backend. The site does not reflect recent updates from the Git repository. The CI/CD pipeline and webhooks indicate successful deployments to S3. What should a solutions architect do to ensure the site displays the updates?
Choose an answer
Tap an option to check your answer.
Correct answer: Invalidate the CloudFront cache..
Why this is the answer
The correct solution is to invalidate the CloudFront cache. When a static website hosted on S3 is accessed through CloudFront, CloudFront caches the content at edge locations to improve performance. If the S3 content is updated but the CloudFront cache is not invalidated, CloudFront will continue serving the old, cached version. Invalidating the cache forces CloudFront to fetch the latest content from S3. Adding an Application Load Balancer is unnecessary as the website is static and served via S3 and CloudFront. Adding ElastiCache would optimize database performance, but the problem states the issue is with website updates, not database access.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed