exam questions

Exam AWS DevOps Engineer Professional All Questions

View all questions & answers for the AWS DevOps Engineer Professional exam

Exam AWS DevOps Engineer Professional topic 1 question 156 discussion

Exam question from Amazon's AWS DevOps Engineer Professional
Question #: 156
Topic #: 1
[All AWS DevOps Engineer Professional Questions]

A development team uses AWS CodeCommit, AWS CodePipeline, and AWS CodeBuild to develop and deploy an application. Changes to the code are submitted by pull requests. The development team reviews and merges the pull requests, and then the pipeline builds and tests the application.

Over time, the number of pull requests has increased. The pipeline is frequently blocked because of failing tests. To prevent this blockage, the development team wants to run the unit and integration tests on each pull request before it is merged.

Which solution will meet these requirements?

  • A. Create a CodeBuild project to run the unit and integration tests. Create a CodeCommit approval rule template. Configure the template to require the successful invocation of the CodeBuild project. Attach the approval rule to the project's CodeCommit repository.
  • B. Create an Amazon EventBridge (Amazon CloudWatch Events) rule to match pullRequestCreated events from CodeCommit. Create a CodeBuild project to run the unit and integration tests. Configure the CodeBuild project as a target of the EventBridge (CloudWatch Events) rule that includes a custom event payload with the CodeCommit repository and branch information from the event.
  • C. Create an Amazon EventBridge (Amazon CloudWatch Events) rule to match pullRequestCreated events from CodeCommit. Modify the existing CodePipeline pipeline to not run the deploy steps if the build is started from a pull request. Configure the EventBridge (CloudWatch Events) rule to run the pipeline with a custom payload that contains the CodeCommit repository and branch information from the event.
  • D. Create a CodeBuild project to run the unit and integration tests. Create a CodeCommit notification rule that matches when a pull request is created or updated. Configure the notification rule to invoke the CodeBuild project.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
SHoKMaSTeR
2 years, 1 month ago
Selected Answer: B
CodeCommit generates events in CloudWatch, CloudWatch triggers the CodeBuild https://aws.amazon.com/es/blogs/devops/complete-ci-cd-with-aws-codecommit-aws-codebuild-aws-codedeploy-and-aws-codepipeline/
upvoted 2 times
...
Piccaso
2 years, 2 months ago
Selected Answer: D
We can use CodeBuild directly. https://docs.aws.amazon.com/codebuild/latest/userguide/how-to-create-pipeline.html A is eliminated because failed tests will stop the pipeline. We do not need "approval."
upvoted 1 times
vn_thanhtung
11 months, 3 weeks ago
https://docs.aws.amazon.com/codecommit/latest/userguide/notification-rule-create.html notification rule not direct run code build
upvoted 1 times
...
...
Bulti
2 years, 3 months ago
Selected Answer: B
B is the right answer.
upvoted 1 times
...
saeidp
2 years, 3 months ago
Selected Answer: B
B for me
upvoted 1 times
...
Dimidrol
2 years, 3 months ago
Selected Answer: B
B sure
upvoted 2 times
...
Oleg_gol
2 years, 3 months ago
B or С
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago