nerdexam
Amazon

DOP-C02 · Question #392

A software development team is implementing a CI/CD pipeline for its web application. The team is using AWS CodeBuild to compile Java-based source code and to run unit tests. The team needs to store…

The correct answer is B. Create an Amazon S3 bucket. Configure the S3 bucket as an artifact output location in the. Configure an S3 bucket as the artifact store in your CodeBuild project’s buildspec.yml (artifacts section), and grant your CodeBuild service role permissions (via an S3 bucket policy) to put objects into that bucket. This lets CodeBuild automatically upload the compiled outputs…

Submitted by valeria.br· Mar 6, 2026SDLC Automation

Question

A software development team is implementing a CI/CD pipeline for its web application. The team is using AWS CodeBuild to compile Java-based source code and to run unit tests. The team needs to store the artifacts that are created by the CodeBuild project. Which solution will meet this requirement?

Options

  • ACreate an Amazon S3 bucket. Configure the S3 bucket as an artifact output location in the
  • BCreate an Amazon S3 bucket. Configure the S3 bucket as an artifact output location in the
  • CConfigure an Amazon Elastic File System (Amazon EFS) file system as a file system location for
  • DCreate an Amazon Elastic Block Store (Amazon EBS) volume. Configure the EBS volume as the

How the community answered

(24 responses)
  • A
    4% (1)
  • B
    92% (22)
  • C
    4% (1)

Explanation

Configure an S3 bucket as the artifact store in your CodeBuild project’s buildspec.yml (artifacts section), and grant your CodeBuild service role permissions (via an S3 bucket policy) to put objects into that bucket. This lets CodeBuild automatically upload the compiled outputs and test results to S3 at the end of each build.

Topics

#CodeBuild#build artifacts#S3#CI/CD

Community Discussion

No community discussion yet for this question.

Full DOP-C02 Practice