exam questions

Exam AWS Certified DevOps Engineer - Professional DOP-C02 All Questions

View all questions & answers for the AWS Certified DevOps Engineer - Professional DOP-C02 exam

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 16 discussion

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?

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
Dushank
Highly Voted 1 year, 7 months ago
Selected Answer: B
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.
upvoted 20 times
...
a54b16f
Highly Voted 1 year, 3 months ago
Selected Answer: A
B would throw out "Permission denied" error immediately, rather than no reaction for 10 minutes.
upvoted 12 times
...
MarcosSantos
Most Recent 2 weeks, 4 days ago
Selected Answer: A
Good question! I'm used CodePipeline in a particular lab in last year and now I checked the existence of eventbridge rules created by Codepipeline, impressive.
upvoted 1 times
...
Srikantha
3 weeks, 1 day ago
Selected Answer: A
CodePipeline uses Amazon EventBridge (formerly CloudWatch Events) to trigger a pipeline when changes are pushed to a source like CodeCommit. If no EventBridge rule is in place (or it's misconfigured), the pipeline won’t be triggered, even if code was pushed to the correct branch. The rule must match the repository name, branch, and event type (e.g., CodeCommit Repository State Change → referenceUpdated).
upvoted 1 times
...
spring21
4 months, 1 week ago
Selected Answer: A
Change detection: When you set up a CodePipeline with a CodeCommit source, the default behavior is to use an EventBridge rule to detect changes in the repository, eliminating the need for manual polling mechanisms
upvoted 2 times
...
ZinggieG87
4 months, 2 weeks ago
Selected Answer: B
The question states that the developer has pushed the change to the repository, which means CodeCommit has no issue, the pipeline doesn't rely on EvertBridge to trigger.
upvoted 1 times
...
Serial_X25
5 months, 3 weeks ago
Selected Answer: A
CodePipeline connects to third-party source providers directly using CodeConnections, https://docs.aws.amazon.com/codepipeline/latest/userguide/pipelines-connections.html, but it should use EventBridge for CodeCommit, https://docs.aws.amazon.com/codepipeline/latest/userguide/triggering.html.
upvoted 1 times
...
Jonalb
5 months, 3 weeks ago
Selected Answer: A
A. Check that an Amazon EventBridge rule has been created for the main branch to trigger the pipeline. This approach directly addresses the most likely cause: a missing or misconfigured EventBridge rule that prevents CodePipeline from starting in response to changes in the CodeCommit repository.
upvoted 1 times
...
jamesf
9 months, 1 week ago
Selected Answer: A
A - EventBridge rule is one of the recommended ways to configure CodePipeline to automatically trigger based on changes in a CodeCommit repository B - if "Permission denied", the error message should prompt immediately, rather than no reaction for 10 minutes for the pipeline. Mean the pipeline not even start Reference: https://docs.aws.amazon.com/codepipeline/latest/userguide/pipelines-about-starting.html#change-detection-methods https://docs.aws.amazon.com/codepipeline/latest/userguide/tutorials-simple-codecommit.html
upvoted 3 times
...
trungtd
9 months, 3 weeks ago
Selected Answer: A
EventBridge rule is one of the recommended ways to configure CodePipeline to automatically trigger based on changes in a CodeCommit repository
upvoted 2 times
...
Mordans
10 months, 1 week ago
Selected Answer: A
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.
upvoted 1 times
...
aefuen1
10 months, 1 week ago
Selected Answer: B
It's B.
upvoted 1 times
flaacko
8 months, 3 weeks ago
The answer is not B because if the CodePipeline service linked role didn't have permissions to access CodeCommit, you will get a "Permissions denied" error immediately but the question said you didn't get any reaction in 10 minutes so the only possible scenario we would be dealing with here is not having an EventBridge rule that triggers the pipeline. When you use the console to create or edit a pipeline, the change detection resources are created for you. If you use the AWS CLI to create the pipeline, you must create the additional resources yourself. Reference: https://docs.aws.amazon.com/codepipeline/latest/userguide/pipelines-create.html
upvoted 1 times
...
...
xdkonorek2
10 months, 3 weeks ago
Selected Answer: A
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 ```
upvoted 1 times
...
k23319
11 months, 1 week ago
Selected Answer: B
B is right.
upvoted 1 times
...
liuyomz
11 months, 3 weeks ago
Selected Answer: B
Just voting to fix the results, because clearly its B, as explained by top 2 comments here.
upvoted 2 times
vn_thanhtung
11 months, 2 weeks ago
B wrong.
upvoted 2 times
...
...
c3518fc
11 months, 4 weeks ago
Selected Answer: B
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.
upvoted 1 times
...
c3518fc
1 year ago
Selected Answer: B
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.
upvoted 4 times
vn_thanhtung
1 year ago
You are wrong, correct answer is A
upvoted 2 times
vn_thanhtung
1 year ago
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" ] }
upvoted 2 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