nerdexam
Amazon

DOP-C02 · Question #325

A company has an AWS CodePipeline pipeline in the eu-west-1 Region. The pipeline stores the build artifacts in an Amazon S3 bucket. The pipeline builds and deploys an AWS Lambda function by using an…

The correct answer is A. Modify the CloudFormation template to include a parameter for the Lambda function code's .zip E. Modify the pipeline to include the S3 bucket for us-east-1 as an artifact store. Create a new. By modifying the CloudFormation template to accept the Lambda function's .zip file location as a parameter, you can reuse the same template for deployments in multiple regions by passing in different S3 artifact locations. This allows flexibility in specifying the deployment…

Submitted by jakub_pl· Mar 6, 2026SDLC Automation

Question

A company has an AWS CodePipeline pipeline in the eu-west-1 Region. The pipeline stores the build artifacts in an Amazon S3 bucket. The pipeline builds and deploys an AWS Lambda function by using an AWS CloudFormation deploy action. A DevOps engineer needs to update the existing pipeline to also deploy the Lambda function to the us-east-1 Region. The pipeline has already been updated to create an additional artifact to deploy to us-east-1. Which combination of steps should the DevOps engineer take to meet these requirements? (Choose two.)

Options

  • AModify the CloudFormation template to include a parameter for the Lambda function code's .zip
  • BCreate a new CloudFormation deploy action for us-east-1 in the pipeline. Configure the new
  • CCreate an S3 bucket in us-east-1. Configure the S3 bucket policy to allow CodePipeline to have
  • DCreate an S3 bucket in us-east-1. Configure S3 Cross-Region Replication (CRR) from the S3
  • EModify the pipeline to include the S3 bucket for us-east-1 as an artifact store. Create a new

How the community answered

(62 responses)
  • A
    58% (36)
  • B
    10% (6)
  • C
    26% (16)
  • D
    6% (4)

Explanation

By modifying the CloudFormation template to accept the Lambda function's .zip file location as a parameter, you can reuse the same template for deployments in multiple regions by passing in different S3 artifact locations. This allows flexibility in specifying the deployment artifacts for each You need to create a new CloudFormation deploy action to deploy the Lambda function in the us- east-1 region. This action will deploy the application using the region-specific S3 artifact and ensure that the Lambda function is created in the target region. To deploy to multiple regions, you need an artifact store in each region. By including the S3 bucket for us-east-1 as an artifact store in the pipeline, the artifacts required for deployment in us- east-1 can be accessed. This is important because AWS CodePipeline requires artifacts to be available in the region where the deployment is happening. As part of the pipeline, you'll need a separate deploy action for the us-east-1 region to run the deployment. This ensures that the Lambda function is deployed with the correct artifacts in us-

Topics

#CodePipeline#Cross-Region deployment#CloudFormation#S3 artifacts

Community Discussion

No community discussion yet for this question.

Full DOP-C02 Practice