AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 109

A company deploys updates to its Amazon API Gateway API several times a week by using an AWS CodePipeline pipeline. As part of the update process, the company exports the JavaScript SDK for the API from the API Gateway console and uploads the SDK to an Amazon S3 bucket.

The company has configured an Amazon CloudFront distribution that uses the S3 bucket as an origin. Web clients then download the SDK by using the CloudFront distribution’s endpoint. A DevOps engineer needs to implement a solution to make the new SDK available automatically during new API deployments.

Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

Option A is correct because it ensures the SDK is downloaded and updated in S3 immediately after the API deployment, along with a CloudFront invalidation to ensure clients receive the latest version. The other options either do not utilize the deployment stage effectively or do not properly invalidate the CloudFront cache, which is essential for ensuring that users get the most current SDK.