AWS Certified Solutions Architect – Associate (SAA-C03) — Question 282
A company has a static website that is hosted on Amazon CloudFront in front of Amazon S3. The static website uses a database backend. The company notices that the website does not reflect updates that have been made in the website’s Git repository. The company checks the continuous integration and continuous delivery (CI/CD) pipeline between the Git repository and Amazon S3. The company verifies that the webhooks are configured properly and that the CI/CD pipeline is sending messages that indicate successful deployments.
A solutions architect needs to implement a solution that displays the updates on the website.
Which solution will meet these requirements?
Answer options
- A. Add an Application Load Balancer.
- B. Add Amazon ElastiCache for Redis or Memcached to the database layer of the web application.
- C. Invalidate the CloudFront cache.
- D. Use AWS Certificate Manager (ACM) to validate the website’s SSL certificate.
Correct answer: C
Explanation
Amazon CloudFront caches content at edge locations to speed up delivery, meaning updates pushed to the Amazon S3 origin will not be visible immediately if the older versions are still cached. Invalidating the CloudFront cache forces the edge locations to retrieve the newly updated files from the S3 bucket. Other options, such as adding an Application Load Balancer or using ElastiCache, do not address CDN-level caching, while ACM is only used for SSL/TLS certificate management.