Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AWS Certified DevOps Engineer - Professional DOP-C02 All Questions

View all questions & answers for the AWS Certified DevOps Engineer - Professional DOP-C02 exam

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 23 discussion

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.)

  • A. Modify the CloudFormation template to include a parameter for the Lambda function code’s zip file location. Create a new CloudFormation deploy action for us-east-1 in the pipeline. Configure the new deploy action to pass in the us-east-1 artifact location as a parameter override.
  • B. Create a new CloudFormation deploy action for us-east-1 in the pipeline. Configure the new deploy action to use the CloudFormation template from the us-east-1 output artifact.
  • C. Create an S3 bucket in us-east-1. Configure the S3 bucket policy to allow CodePipeline to have read and write access.
  • D. Create an S3 bucket in us-east-1. Configure S3 Cross-Region Replication (CRR) from the S3 bucket in eu-west-1 to the S3 bucket in us-east-1.
  • E. Modify the pipeline to include the S3 bucket for us-east-1 as an artifact store. Create a new CloudFormation deploy action for us-east-1 in the pipeline. Configure the new deploy action to use the CloudFormation template from the us-east-1 output artifact.
Show Suggested Answer Hide Answer
Suggested Answer: CE 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
madperro
Highly Voted 1 year, 5 months ago
Selected Answer: 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
upvoted 18 times
...
Ravi_Bulusu
Most Recent 1 week, 1 day ago
The Answer is : AB To deploy to a different region, the CloudFormation template should be flexible enough to accept a parameter for the Lambda function’s zip file location. This allows the template to be reused in both regions. The new CloudFormation action in us-east-1 should reference this parameter and pass in the appropriate location of the artifact for that region After the CodeBuild project outputs artifacts for both eu-west-1 and us-east-1, you need a separate CloudFormation deploy action in the pipeline that targets the us-east-1 region. This action should reference the CloudFormation template from the us-east-1 output artifact produced by the CodeBuild step.
upvoted 1 times
...
jamesf
4 months ago
Selected Answer: CE
CE Not D because "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" https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-create-cross-region.html
upvoted 1 times
...
shammous
4 months ago
C and E are the right answers.
upvoted 1 times
shammous
4 months ago
A: It suggests pointing directly to the Lambda function but we also need the Cloudformation template. So we can rule option A out. B: Here, we are missing the new region (us-east-1) artifact store where the new Cloudformation deploys action would store the artifacts upon completion. E: Includes the missing part in option B and is the right answer. D: "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." So as we are directly producing the artifact in the S3 bucket in us-east-1, I don't see the point of having a cross-replication. C: This option is mandatory as we should provide permissions to services (CodePipeline) to access resources (S3 bucket).
upvoted 1 times
...
...
ihustle
6 months ago
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.
upvoted 1 times
ihustle
6 months ago
Apologies, I meant C and E.
upvoted 1 times
...
...
kyuhuck
9 months, 1 week ago
Selected Answer: 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
upvoted 1 times
...
thanhnv142
10 months ago
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)
upvoted 4 times
...
Bans
10 months, 3 weeks ago
Why C and not D?
upvoted 1 times
tgv
4 months, 1 week ago
"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"
upvoted 2 times
...
...
DucSiu
11 months, 2 weeks ago
https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-create-cross-region.html#actions-create-cross-region-cfn CE is my answers
upvoted 1 times
...
learnwithaniket
1 year ago
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
upvoted 1 times
...
robertohyena
1 year ago
Selected Answer: 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)
upvoted 3 times
robertohyena
1 year ago
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.
upvoted 2 times
...
...
2pk
1 year ago
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
upvoted 1 times
z_inderjot
11 months, 1 week ago
we are not using codedeploy
upvoted 3 times
...
...
zain1258
1 year ago
Selected Answer: CE
C & E are correct options
upvoted 3 times
...
denccc
1 year ago
Would go for CE
upvoted 1 times
...
DZ_Ben
1 year ago
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.
upvoted 1 times
...
kacsabacsi78
1 year, 1 month ago
Selected Answer: 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
upvoted 2 times
Cappy46789
6 months, 1 week ago
That link also says if you are using Cloudformation or CLI then you have to provide the buckets. So C and E
upvoted 1 times
...
...
Mohammed_Elsabaa
1 year, 1 month ago
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
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...