Exam DOP-C02 All QuestionsBrowse all questions from this exam
Question 23

A company has an AWS CodePipeline pipeline that is configured with an Amazon S3 bucket in the eu-west-1 Region. The pipeline deploys an AWS Lambda application to the same Region. The pipeline consists of an AWS CodeBuild project build action and an AWS CloudFormation deploy action.

The CodeBuild project uses the aws cloudformation package AWS CLI command to build an artifact that contains the Lambda function code’s .zip file and the CloudFormation template. The CloudFormation deploy action references the CloudFormation template from the output artifact of the CodeBuild project’s build action.

The company wants to also deploy the Lambda application to the us-east-1 Region by using the pipeline in eu-west-1. A DevOps engineer has already updated the CodeBuild project to use the aws cloudformation package command to produce an additional output artifact for us-east-1.

Which combination of additional steps should the DevOps engineer take to meet these requirements? (Choose two.)

    Correct Answer: C, E

    To deploy the AWS Lambda application to the us-east-1 Region using the CodePipeline in eu-west-1, it is necessary to create an S3 bucket in the us-east-1 Region to store the output artifacts. Additionally, to accommodate the cross-region deployment, the pipeline needs to be modified to include this new S3 bucket as an artifact store. By creating a new CloudFormation deploy action in the pipeline and configuring it to use the CloudFormation template from the us-east-1 output artifact, the solution ensures proper artifact management and deployment in the correct region.

Discussion
madperroOptions: CE

As below. You need S# bucket in the new region so C. You need to output artifacts to this new bucket so E. https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-create-cross-region.html

thanhnv142

C and E are correct: To achieve the goal. we need an empty S3 in the us-east-1 and create additional stage in the pipline A: No mention of S3 - incorrect B: no mention of S3 - incoorect D: we need an empty S3 to store artifact, Cross-Region Replicate incurs more unnecessary cost. Additionally, this way force the S3 in us-east-1 to be exactly like that of us-west-1, which is incorrect. Each S3 has a different set of artifacts (though they might be very similar)

robertohyenaOptions: CE

Answers: C E Scenario: - We have Pipeline in RegionA (eu-west-1 Region) - We have Deploy action in RegionA (eu-west-1 Region) Requirements: - Need to have Deploy to RegionB (us-east-1 Region) - And still use RegionA pipeline above (eu-west-1 Region)

robertohyena

Which combination of additional steps to meet requirements: - Create bucket in RegionB (us-east-1 Region) [artifact store] This will be the OutputArtifact bucket for Deploy action in RegionB (us-east-1 Region) - Add a cross-Region action to a pipeline (CLI) -- Described in step #3 "Modify the pipeline to include the S3 bucket for us-east-1 as an artifact store." -- Described in step #2 "Create a new CloudFormation deploy action for us-east-1 in the pipeline." and "Configure the new deploy action to use the CloudFormation template from the us-east-1 output artifact." REF: https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-create-cross-region.html#actions-cross-region-cli INCORRECT - A B cannot be a "combination of steps". They both have "Create a new CloudFormation deploy action for us-east-1 in the pipeline." - D - we do not need S3 Cross-Region Replication (CRR) in the solution.

zain1258Options: CE

C & E are correct options

kacsabacsi78Options: AB

C, D and E answers are wrong. CodePipeline automatically creates an S3 bucket in the cross-region for the artifacts. CodePipeline handles the copying of artifacts from one AWS Region to the other Regions when performing cross-region actions. https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-create-cross-region.html

Cappy46789

That link also says if you are using Cloudformation or CLI then you have to provide the buckets. So C and E

SkshitizOptions: CE

CE seems correct

vhermanOptions: CE

CE Works well

ihustle

B and C are the answers. The two important things to note here are the use of AWS CLI and artifacts from two different regions.

ihustle

Apologies, I meant C and E.

kyuhuckOptions: AB

a/b correct a: the cloudformation template should be modified to incllude a parameter that indicates the location of the.zip file containing the lambda function's cod, this allows the cloudformation deploy action to use the correct artifact depending on the region, this is critical because lambda functions needto reference their code artifacts form the same region they are being deployed in, b. you tould also need to create a new cloudformation deploy action fro the us-east-1 region within the pipelinem this action should be confiured to use the cloudformation template from the artiface that was sepcifically created for us-eat-1

Bans

Why C and not D?

tgv

"A DevOps engineer has already updated the CodeBuild project to use the aws cloudformation package command to produce an additional output artifact for us-east-1"

DucSiu

https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-create-cross-region.html#actions-create-cross-region-cfn CE is my answers

learnwithaniket

For CloudFormation you need to add the Region parameter: https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-create-cross-region.html#actions-create-cross-region-cfn

2pk

A and B is the answer. Anything related to create S3 is wrong since Code Deploy have ability to automatically share artifacts to other regions

z_inderjot

we are not using codedeploy

denccc

Would go for CE

DZ_Ben

It should be BC! In order to do cross-region deployment, we should create two s3 for each region for ArtifactStore. Then CodeBuild should bundle the sam template and upload to each bucket. Finally CodePipeline should have two separate action for Cloudformation deployment, and each deployment has a region attribute to be defined and needs to pull the template from the ArtifactStore respectively.

Mohammed_Elsabaa

CE you need to create s3 bucket to set it as output artifact for code build code build can have one source and 5 output artifacts

FunkyFrescoOptions: AB

The correct answer is A and B.