A CodePipeline in eu-west-1 builds and deploys a Lambda app to eu-west-1. CodeBuild uses aws cloudformation package to produce an artifact that includes the Lambda .zip and the template. The CloudFormation deploy action uses that output artifact. The company now wants the same pipeline (in eu-west-1) to also deploy the Lambda to us-east-1. CodeBuild was updated to produce an additional output artifact for us-east-1. Which additional steps should be taken? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: Create an S3 bucket in us-east-1 and set its bucket policy to allow CodePipeline read/write access., Add the us-east-1 S3 bucket as an artifact store in the pipeline, then add a CloudFormation deploy action for us-east-1 that uses the template from the us-east-1 output artifact..
Why this is the answer
To deploy to us-east-1, CodePipeline needs an S3 bucket in that region to store artifacts. This bucket must have a policy allowing CodePipeline read/write access. Then, this us-east-1 S3 bucket needs to be added as an artifact store within the CodePipeline configuration. Finally, a new CloudFormation deploy action for us-east-1 can be added, configured to use the template and artifacts specifically generated for us-east-1. The option to change the CloudFormation template to accept a parameter for the Lambda zip location is incorrect because aws cloudformation package already handles the S3 upload and updates the template with the S3 URI, making manual parameterization unnecessary for the zip location. Cross-Region Replication is not the standard or most efficient way to get artifacts into a target region for CodePipeline; direct artifact storage is preferred.
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