Q47 — AWS DOP-C02 Ch.3
Question 47 of 100 | ← Chapter 3
A development team uses AWS CodeCommit for version control of application code and AWS CodePipeline to orchestrate software deployments. The team has decided to use a remote main branch as the pipeline's trigger event for infrastructure-as-code changes. After a developer pushes a code change to the CodeCommit repository, they notice the pipeline does not respond—and remains untriggered even after 10 minutes.
- A. Check whether an Amazon EventBridge rule has been created for the main branch to trigger the pipeline. ✓
- B. Verify whether the CodePipeline service role has permissions to access the CodeCommit repository.
- C. Check whether the developer's IAM role has permissions to push to the CodeCommit repository.
- D. Check whether the pipeline fails to start due to CodeCommit errors in Amazon CloudWatch Logs.
Correct Answer: A. Check whether an Amazon EventBridge rule has been created for the main branch to trigger the pipeline.
Explanation
AWS CodePipeline requires an Amazon EventBridge rule to monitor CodeCommit repository branch changes and trigger pipelines. If no EventBridge rule is configured for the main branch, CodePipeline cannot automatically respond to code push events. AWS documentation specifies EventBridge responds to repository events (e.g., commits to branches) and triggers targets like CodePipeline. Option A directly addresses this mechanism; other options involve permissions or logs, but the root issue is missing trigger configuration.