exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 75 discussion

A developer is writing unit tests for a new application that will be deployed on AWS. The developer wants to validate all pull requests with unit tests and merge the code with the main branch only when all tests pass.

The developer stores the code in AWS CodeCommit and sets up AWS CodeBuild to run the unit tests. The developer creates an AWS Lambda function to start the CodeBuild task. The developer needs to identify the CodeCommit events in an Amazon EventBridge event that can invoke the Lambda function when a pull request is created or updated.

Which CodeCommit event will meet these requirements?

  • A.
  • B.
  • C.
  • D.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
csG13
Highly Voted 1 year, 4 months ago
Selected Answer: C
It's definitely C. Events in answer D are not real. A & B are clearly wrong since two events are required.
upvoted 8 times
...
sumanshu
Most Recent 4 months ago
Selected Answer: C
Using both events together ensures that the Lambda function is invoked for both new pull requests and updates to existing pull requests.
upvoted 1 times
...
65703c1
5 months ago
Selected Answer: C
C is the correct answer.
upvoted 1 times
...
Vaibs099
6 months ago
https://aws.amazon.com/blogs/devops/automated-code-review-on-pull-requests-using-aws-codecommit-and-aws-codebuild/
upvoted 2 times
...
Dushank
1 year, 1 month ago
Answer is C. There's no event call pullRequestUpdated
upvoted 4 times
...
Majong
1 year, 5 months ago
Selected Answer: C
Two events is needed so A and B is no. The events mentioned in D does not exist as Zodraz says (just look in the link)
upvoted 4 times
...
Prem28
1 year, 5 months ago
Selected Answer: C
its c ,Event mentioned in D not Exist
upvoted 3 times
...
zodraz
1 year, 5 months ago
Selected Answer: C
It' s C. Any of the events mentioned on D exist. https://docs.aws.amazon.com/codecommit/latest/userguide/monitoring-events.html#pullRequestSourceBranchUpdated
upvoted 3 times
...
zodraz
1 year, 5 months ago
It' s C. Any of the events mentioned on D exist. https://docs.aws.amazon.com/codecommit/latest/userguide/monitoring-events.html#pullRequestSourceBranchUpdated
upvoted 2 times
...
Fyssy
1 year, 6 months ago
Selected Answer: D
"detail": { "event": ["pullRequestCreated", "pullRequestSourceBranchUpdated"]
upvoted 3 times
Arktos
5 months ago
you create a pull request and update a branch so the answer is C
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