Amazon DOP-C02 Exam - Topic 9 Question 25 Discussion
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?
D) 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 test results as a comment on the pull request when the test results are complete.
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.
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.
C) Create an Amazon EventBridge rule that reacts to pullRequestCreated and pullRequestSourceBranchUpdated events. 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.
Mattie
6 months agoPete
6 months agoAnnice
7 months agoTimothy
7 months agoKenneth
7 months agoOneida
7 months agoDaryl
7 months agoWhitney
8 months agoWilburn
8 months agoVincent
8 months agoJoanne
8 months agoBrunilda
8 months agoDanica
8 months agoEzekiel
8 months agoGeraldine
8 months agoKayleigh
1 year agoKara
12 months agoHolley
12 months agoAlise
12 months agoShawnda
1 year agoApolonia
1 year agoDaron
12 months agoArminda
1 year agoAlfred
1 year agoHoa
1 year agoLinn
1 year agoYoulanda
1 year agoArthur
1 year agoMinna
1 year agoMadelyn
1 year agoDoug
1 year agoElsa
1 year agoCeola
1 year agoNina
1 year agoAzzie
1 year agoAnnette
1 year agoAntione
1 year ago