
Answer-first summary for fast verification
Answer: pullRequestCreated, pullRequestStatusChanged
The correct answer is C. The relevant CodeCommit events that should be monitored to trigger the Lambda function for both creation and updates of pull requests are 'pullRequestCreated' and 'pullRequestStatusChanged'. These events will ensure that the Lambda function gets invoked to start the CodeBuild task whenever a pull request is created or its status is changed. Other options either do not cover both scenarios or refer to events that do not exist.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A developer utilizes AWS CodeCommit for code storage and AWS CodeBuild for executing unit tests on pull requests. To automate the testing process, a Lambda function is set up to trigger the CodeBuild upon specific CodeCommit events. Identify the appropriate CodeCommit events in Amazon EventBridge that should invoke the Lambda for both the creation and updates of pull requests.
A
pullRequestCreated
B
pullRequestUpdated
C
pullRequestCreated, pullRequestStatusChanged
D
pullRequestSourceBranchUpdated
No comments yet.