QuestionQ26

VerifiedSDLC Automation

A company deploys updates to its Amazon API Gateway API several times each week by using an AWS CodePipeline pipeline. As part of the update process, the company exports the API's JavaScript SDK 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 its origin. Web clients download the SDK by using the CloudFront distribution’s endpoint. A DevOps engineer must implement a solution that automatically makes the new SDK available during new API deployments.

Which solution meets these requirements?

Explanation

An AWS Lambda action in the deployment pipeline can generate and download an API Gateway SDK, upload it to Amazon S3, and create a CloudFront invalidation for the SDK path. CloudFront cache invalidations are created through CloudFront; Amazon S3 does not invalidate CloudFront caches. This pipeline action runs as part of each API deployment.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!