Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Amazon Exam DOP-C02 Topic 9 Question 25 Discussion

Actual exam question for Amazon's DOP-C02 exam
Question #: 25
Topic #: 9
[All DOP-C02 Questions]

A development team uses AWS CodeCommit for version control for applications. The development team uses AWS CodePipeline, AWS CodeBuild. and AWS CodeDeploy for CI/CD infrastructure. In CodeCommit, the development team recently merged pull requests that did not pass long-running tests in the code base. The development team needed to perform rollbacks to branches in the codebase, resulting in lost time and wasted effort.

A DevOps engineer must automate testing of pull requests in CodeCommit to ensure that reviewers more easily see the results of automated tests as part of the pull request review.

What should the DevOps engineer do to meet this requirement?

Show Suggested Answer Hide Answer

Contribute your Thoughts:

Apolonia
5 days ago
This is a tough one, but I think I've got it. Option C seems to cover all the bases, with the EventBridge rule reacting to both pullRequestCreated and pullRequestSourceBranchUpdated events. Plus, posting the CodeBuild badge is a nice touch.
upvoted 0 times
...
Linn
13 days ago
Hmm, I'm torn between options B and D. Both of them seem to involve posting the test results as a comment on the pull request, which is exactly what the question is asking for. I'll have to think this one through carefully.
upvoted 0 times
...
Minna
19 days ago
I'm not sure why the development team is merging pull requests that didn't pass the long-running tests. That seems like a recipe for disaster! Option B looks like the best way to catch those issues early on.
upvoted 0 times
Ceola
2 days ago
User 1: I agree, merging untested code is risky.
upvoted 0 times
...
...
Nina
20 days ago
Wow, this question really tests our understanding of the AWS CodeCommit, CodePipeline, and CodeBuild integration. I think option D is the correct answer, as it directly addresses the requirement to automate testing and provide the results as part of the pull request review.
upvoted 0 times
...
Azzie
23 days ago
I also believe option A is the most efficient solution. It helps prevent merging pull requests that do not pass tests, saving time and effort for the development team.
upvoted 0 times
...
Annette
25 days ago
I agree with Antione. Option A automates testing and provides immediate feedback to developers during the pull request review process.
upvoted 0 times
...
Antione
27 days ago
I think option A is the best choice because it reacts to the pullRequestStatusChanged event and posts the CodeBuild badge as a comment on the pull request.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77