AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 29
A development team is using AWS CodeCommit to version control application code and AWS CodePipeline to orchestrate software deployments. The team has decided to use a remote main branch as the trigger for the pipeline to integrate code changes. A developer has pushed code changes to the CodeCommit repository, but noticed that the pipeline had no reaction, even after 10 minutes.
Which of the following actions should be taken to troubleshoot this issue?
Answer options
- A. Check that an Amazon EventBridge rule has been created for the main branch to trigger the pipeline.
- B. Check that the CodePipeline service role has permission to access the CodeCommit repository.
- C. Check that the developer’s IAM role has permission to push to the CodeCommit repository.
- D. Check to see if the pipeline failed to start because of CodeCommit errors in Amazon CloudWatch Logs.
Correct answer: A
Explanation
The correct answer is A because an Amazon EventBridge rule is necessary to trigger the pipeline when changes are made to the main branch. If this rule is missing, the pipeline will not respond to code changes. While the other options address important permissions and potential errors, they do not directly relate to the triggering mechanism of the pipeline.