An existing CodePipeline in eu-west-1 stores build artifacts in an S3 bucket and deploys a Lambda using a CloudFormation deploy action. The pipeline must be updated to also deploy the Lambda to us-east-1. An additional artifact for us-east-1 has already been created. Which steps should the DevOps engineer take? (Choose two.)
Choose an answer
Tap an option to check your answer.
Correct answer: Create an S3 bucket in us-east-1 and configure its bucket policy to grant CodePipeline read and write access., Add the us-east-1 S3 bucket as an artifact store in the pipeline. Create a new CloudFormation deploy action for us-east-1 and configure it to use the CloudFormation template from the us-east-1 artifact..
Why this is the answer
To deploy to a new region (us-east-1), CodePipeline needs an artifact store in that region to stage deployment artifacts. Therefore, creating an S3 bucket in us-east-1 and granting CodePipeline read/write access is necessary. This bucket then needs to be added as an artifact store in the pipeline configuration. With the artifact store in place, a new CloudFormation deploy action can be added for us-east-1, referencing the CloudFormation template from the pre-existing us-east-1 artifact. Option 1 is incorrect because modifying the CloudFormation template to accept a parameter for the Lambda .zip file location is not the primary step for cross-region deployment; the main issue is the artifact storage and a new deploy action. Option 2 is incomplete as it doesn't address the need for a regional artifact store. Option 4 is incorrect because Cross-Region Replication is for data synchronization, not for CodePipeline's artifact staging in a new region.
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