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:

Kayleigh
20 days ago
Ah, the joys of CI/CD! Where the only thing faster than the pipeline is the rate at which developers can break the build.
upvoted 0 times
Alise
8 hours ago
B) Create an Amazon EventBridge rule that reacts to the pullRequestCreated event. Create an AWS Lambda function that invokes a CodePipeline pipeline with a CodeBuild action that runs the tests for the application. Program the Lambda function to post the CodeBuild test results as a comment on the pull request when the test results are complete.
upvoted 0 times
...
Shawnda
8 days ago
A) Create an Amazon EventBridge rule that reacts to the pullRequestStatusChanged event. Create an AWS Lambda function that invokes a CodePipeline pipeline with a CodeBuild action that runs the tests for the application. Program the Lambda function to post the CodeBuild badge as a comment on the pull request so that developers will see the badge in their code review.
upvoted 0 times
...
...
Apolonia
2 months 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
Arminda
7 days ago
Yeah, Option C sounds like the best solution to ensure that automated tests are easily visible during pull request reviews.
upvoted 0 times
...
Alfred
26 days ago
I agree, Option C seems like the most comprehensive choice for automating testing of pull requests.
upvoted 0 times
...
Hoa
27 days ago
I think Option C is the way to go. It covers all the events and includes posting the CodeBuild badge.
upvoted 0 times
...
...
Linn
2 months 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
Youlanda
1 months ago
I see your point, but option D reacts to the pullRequestStatusChanged event, which could be more reliable for showing the test results.
upvoted 0 times
...
Arthur
1 months ago
I think option B might be the way to go. It reacts to the pullRequestCreated event and posts the test results as a comment.
upvoted 0 times
...
...
Minna
2 months 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
Madelyn
10 days ago
Elsa: Definitely, it's important to catch issues early in the process.
upvoted 0 times
...
Doug
13 days ago
User 3: Yeah, automating tests with CodePipeline would save a lot of time.
upvoted 0 times
...
Elsa
24 days ago
User 2: Option B sounds like a good solution to prevent that.
upvoted 0 times
...
Ceola
1 months ago
User 1: I agree, merging untested code is risky.
upvoted 0 times
...
...
Nina
2 months 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
2 months 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
2 months 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
2 months 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
a