exam questions

Exam AWS DevOps Engineer Professional All Questions

View all questions & answers for the AWS DevOps Engineer Professional exam

Exam AWS DevOps Engineer Professional topic 1 question 25 discussion

Exam question from Amazon's AWS DevOps Engineer Professional
Question #: 25
Topic #: 1
[All AWS DevOps Engineer Professional Questions]

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 master 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 CloudWatch Events rule has been created for the master 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
WhyIronMan
Highly Voted 3 years, 7 months ago
I'll go with A 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 18 times
Piccaso
2 years, 3 months ago
You are amazing.
upvoted 1 times
...
...
rscloud
Highly Voted 3 years, 8 months ago
A https://docs.aws.amazon.com/codepipeline/latest/userguide/pipelines-trigger-source-repo-changes-console.html
upvoted 6 times
...
xdkonorek2
Most Recent 1 year, 4 months ago
Selected Answer: B
I'll go with B it's necessary for codepipeline to have codecommit permissions while it's not necessary to depend on a rule to start a pipeline
upvoted 1 times
...
nicat
2 years ago
Selected Answer: D
it is not necessary to create an Amazon CloudWatch Events rule specifically for triggering the pipeline in this scenario. The CodePipeline can be set up to directly monitor the CodeCommit repository for changes without the need for an additional CloudWatch Events rule. Creating an Amazon CloudWatch Events rule is typically required when you want to trigger an action based on events occurring in AWS services. However, in this case, CodePipeline is already integrated with CodeCommit and can directly monitor the repository for changes without the need for an additional CloudWatch Events rule. When you set up an AWS CodePipeline, the pipeline's execution events and logs are automatically sent to Amazon CloudWatch Logs. CodePipeline integrates with CloudWatch Logs to capture and store the logs for pipeline executions.
upvoted 1 times
...
Tika01
2 years, 2 months ago
Selected Answer: A
Since the pipeline is triggered by changes in the remote master branch, an Amazon CloudWatch Events rule must be created for the branch to trigger the pipeline. Therefore, the first step in troubleshooting the issue should be to check that an Amazon CloudWatch Events rule has been created for the master branch to trigger the pipeline.
upvoted 1 times
...
Piccaso
2 years, 3 months ago
Selected Answer: A
C was excluded in the first round. The developer's IAM role's permission should not be related. D looks unrelated. B is weird.
upvoted 3 times
...
Bulti
2 years, 4 months ago
Answer A is correct.
upvoted 1 times
...
ceros399
2 years, 5 months ago
Selected Answer: A
A: https://docs.aws.amazon.com/codepipeline/latest/userguide/triggering.html at the begining I though it was B, but If it were a permission problem you might have had an error pointing to it.
upvoted 1 times
...
luk3k0
2 years, 5 months ago
Selected Answer: A
"the pipeline had no reaction" => pipeline is not run, so BCD rule out
upvoted 1 times
...
kyozanuro
2 years, 6 months ago
Both A & B are possible to have issue and need to check
upvoted 1 times
...
lmimi
2 years, 8 months ago
I think B is also correct. As a pipeline trigger, it can be triggered by cloudwatch event, or it can periodically check the repository for update. If latter, then B is also correct.
upvoted 1 times
developer_404
2 years, 6 months ago
When you use the CodePipeline console to create a pipeline, events are enabled by default. In that case, we have to first verify whether the events are created or not. Then the 2nd step would be ensuring the IAM role also has been created with proper permissions.
upvoted 1 times
...
...
sg0206
3 years, 5 months ago
A is correct B & C are wrong as developer is able to push the code that mean he has access. D is can be another option but it has not reaction means even logs are not generated
upvoted 2 times
...
PatrickLi
3 years, 7 months ago
The question is asking what could be the possible cause of the problem. The answers are to check the things that is required to make the pipeline work. A CloudWatch Event can help in troubleshoot but it is not required to make it work, nor it can identify what is causing the problem. So I say B is more appropriate.
upvoted 3 times
...
kdpeiris
3 years, 7 months ago
C Permissions required to use the CodeCommit console To allow users to use the CodeCommit console, the administrator must grant them permissions for CodeCommit actions. For example, you could attach the AWSCodeCommitPowerUser managed policy or its equivalent to a user or group. https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-identity-based-access-control.html
upvoted 2 times
amehim
3 years, 7 months ago
A developer has pushed code changes to the CodeCommit repository ......so this shows that the developer has permission already. I go with A.
upvoted 1 times
...
...
devopp
3 years, 7 months ago
Strange Question as no Context to troubleshoot. Sure A, but surely could be any number of other options as well ?
upvoted 2 times
...
faltu1985
3 years, 8 months ago
Ans is A
upvoted 3 times
...
Rajarshi
3 years, 8 months ago
ans: A
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 ...