DOP-C02 Exam QuestionsBrowse all questions from this exam

DOP-C02 Exam - Question 16


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?

Show Answer
Correct Answer: B

To troubleshoot the issue of a CodePipeline not triggering upon code changes pushed to AWS CodeCommit, the first action should be to verify that the CodePipeline service role has the necessary permissions to access the CodeCommit repository. If the role lacks the appropriate permissions, CodePipeline will not be able to respond to the changes in the repository. Ensuring that the service role has the correct access will allow the pipeline to start execution when code changes are detected.

Discussion

17 comments
Sign in to comment
DushankOption: B
Sep 17, 2023

A: EventBridge rules are not a requirement for CodePipeline to trigger from a CodeCommit repository. CodePipeline directly integrates with CodeCommit without needing EventBridge. B: is a likely cause. The CodePipeline service role needs permissions to access the CodeCommit repository in order to start the pipeline execution when new code is pushed. C:If the developer was able to push code changes to the CodeCommit repository, then their IAM role permissions with respect to CodeCommit are likely fine. This isn't the issue. D:If the pipeline didn't start, CloudWatch Logs could give insights. However, these logs will only exist if the pipeline actually attempted to start but failed. If the pipeline never started, checking logs won't help. Given these options, Option B: is the correct answer.

thanhnv142
Jan 28, 2024

A is correct D: irrelevant B and C is wrong definitely: if there were permission errors, the pipeline should have started and threw out error messages. The question states that no reaction from the pipeline, which indicates it never started.

alexleelyOption: A
Mar 18, 2024

I highly believe it is A. Even though CodePipeline directly integrates with CodeCommit, this integration automatically creates a EventBridge rule for you if it is created through the console. https://docs.aws.amazon.com/codepipeline/latest/userguide/pipelines-trigger-source-repo-changes-console.html Since we know that there is no reaction from the pipeline, it would mean that it wasn't triggered at all. B is about permission which would have thrown an error in the console at that stage, but to even start the first stage, it needs to be trigger first which for the case here. C shouldn't be the answer as the question already said that it was pushed into the repository.

c3518fcOption: B
Apr 11, 2024

Not sure why most people here are even considering A. CodePipeline does not use Amazon EventBridge to trigger pipeline executions based on changes in CodeCommit repositories. Instead, it directly integrates with CodeCommit and monitors repository changes internally.

vn_thanhtung
May 2, 2024

You are wrong, correct answer is A

vn_thanhtung
May 2, 2024

When you create a pipeline from CodePipeline during the step-by-step it creates a CloudWatch Event rule for a given branch and repo like this: { "source": [ "aws.codecommit" ], "detail-type": [ "CodeCommit Repository State Change" ], "resources": [ "arn:aws:codecommit:us-east-1:xxxxx:repo-name" ], "detail": { "event": [ "referenceCreated", "referenceUpdated" ], "referenceType": [ "branch" ], "referenceName": [ "master" ] }

zijo
Feb 27, 2024

I think the answer is B B. Check that the CodePipeline service role has permission to access the CodeCommit repository. By default CodePipeline polls repository for changes even if there is no EventBridge configured. But if the CodePipeline Service Role has no permissions to access the CodeCommit repository it will throw error and CodePipeline will have no reaction.

VitalydtOption: A
Feb 28, 2024

A is most accurate IMO

vmahilevskyiOption: A
Feb 29, 2024

Amazon EventBridge (recommended). This is the default for pipelines with an CodeCommit source created or edited in the console. https://docs.aws.amazon.com/codepipeline/latest/userguide/pipelines-about-starting.html#change-detection-methods

ogerberOption: A
Mar 22, 2024

"After you select the repository name and branch, a message displays the Amazon CloudWatch Events rule to be created for this pipeline." https://docs.aws.amazon.com/codepipeline/latest/userguide/tutorials-simple-codecommit.html

vortegonOption: A
Jan 30, 2024

https://docs.aws.amazon.com/codepipeline/latest/userguide/pipelines-about-starting.html

cas_toriOption: B
Mar 17, 2024

BBBBBBBBBBBBB

c3518fcOption: B
May 10, 2024

The first step in troubleshooting this issue should be to check that the CodePipeline service role has the required permissions to access the CodeCommit repository. If the permissions are correct, then you can proceed with other troubleshooting steps, such as checking the CloudWatch Logs for any errors or failures.

liuyomzOption: B
May 13, 2024

Just voting to fix the results, because clearly its B, as explained by top 2 comments here.

vn_thanhtung
May 20, 2024

B wrong.

k23319Option: B
May 30, 2024

B is right.

xdkonorek2Option: A
Jun 16, 2024

the answer is A because if codepipeline has no access to codecommit pipeline is triggered and source stage fails with: ``` The service role or action role doesn’t have the permissions required to access the AWS CodeCommit repository named random-repo. Update the IAM role permissions, and then try again ```

aefuen1Option: B
Jun 26, 2024

It's B.

MordansOption: A
Jun 28, 2024

For CodePipeline to be triggered by changes in a CodeCommit repository, an EventBridge rule (formerly CloudWatch Events rule) needs to be set up. This rule listens for specific events (like commits to the main branch) and triggers the pipeline accordingly.

trungtdOption: A
Jul 16, 2024

EventBridge rule is one of the recommended ways to configure CodePipeline to automatically trigger based on changes in a CodeCommit repository