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
9 months agoPete
9 months agoAnnice
10 months agoTimothy
10 months agoKenneth
10 months agoOneida
10 months agoDaryl
11 months agoWhitney
11 months agoWilburn
11 months agoVincent
11 months agoJoanne
11 months agoBrunilda
11 months agoDanica
11 months agoEzekiel
11 months agoGeraldine
11 months agoKayleigh
1 year agoKara
1 year agoHolley
1 year agoAlise
1 year agoShawnda
1 year agoApolonia
1 year agoDaron
1 year 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