nerdexam
Amazon

DOP-C02 · Question #385

A DevOps engineer needs to troubleshoot a pipeline that uses a GitHub code repository. The pipeline contains a source stage, a build stage, and a deploy stage. The pipeline also has an AWS CodeStar…

The correct answer is D. The AWS CodeBuild service role does not have permission to use the AWS CodeStar. The AWS CodeStar connection allows AWS services like CodePipeline to fetch the latest source code from GitHub. Since the source stage is working properly, this confirms that the CodePipeline service role has the necessary permissions to access the CodeStar connection. However…

Submitted by viktor_hu· Mar 6, 2026SDLC Automation

Question

A DevOps engineer needs to troubleshoot a pipeline that uses a GitHub code repository. The pipeline contains a source stage, a build stage, and a deploy stage. The pipeline also has an AWS CodeStar connection to the GitHub code repository. The build stage uses an AWS CodeBuild build project. The build project needs to perform a git clone of the repository as part of the build process. The DevOps engineer validates that the source stage is working properly. However, the build stage fails each time the pipeline runs. What is the reason that the build stage fails in the pipeline?

Options

  • AThe build stage within the pipeline needs to use the AWS CodeStar connection action.
  • BThe AWS CodeStar connection to GitHub contains incorrect credentials.
  • CThe AWS CodePipeline service role does not have permission to use the AWS CodeStar
  • DThe AWS CodeBuild service role does not have permission to use the AWS CodeStar

How the community answered

(51 responses)
  • A
    4% (2)
  • B
    8% (4)
  • C
    14% (7)
  • D
    75% (38)

Explanation

The AWS CodeStar connection allows AWS services like CodePipeline to fetch the latest source code from GitHub. Since the source stage is working properly, this confirms that the CodePipeline service role has the necessary permissions to access the CodeStar connection. However, CodeBuild needs to perform a git clone operation during the build process. This requires the CodeBuild service role to have permission to use the AWS CodeStar connection. If the CodeBuild service role does not have explicit permissions to interact with the CodeStar connection, the build stage will fail when trying to fetch the repository.

Topics

#CodePipeline#CodeBuild#CodeStar Connections#IAM permissions

Community Discussion

No community discussion yet for this question.

Full DOP-C02 Practice