ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 30 - DOP-C02 discussion

Report
Export

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.
Answers
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.
Answers
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.
Answers
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.
Answers
D.
Check to see if the pipeline failed to start because of CodeCommit errors in Amazon CloudWatch Logs.
Suggested answer: A

Explanation:

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'

]

}

}

https://docs.aws.amazon.com/codepipeline/latest/userguide/pipelines-trigger-source-repo-changes-console.html

asked 16/09/2024
Veronica Puddu
54 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first