AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 358

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?

Answer options

Correct answer: B

Explanation

AWS CodeBuild natively integrates with Amazon S3 to store build output artifacts, which are defined under the artifacts section of the buildspec file. To securely upload these files, the S3 bucket policy must be configured to grant write permissions to the specific CodeBuild service role. Using Amazon EBS or Amazon EFS as direct artifact output targets in the buildspec is not supported in this manner.