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

A company has application code in an AWS CodeConnections compatible Git repository. The company wants to configure unit tests to run when pull requests are opened. The company wants to ensure that the test status is visible in pull requests when the tests are completed. The company wants to save output data files that the tests generate to an Amazon S3 bucket after the tests are finished.

Which combination of solutions will meet these requirements? (Choose three.)

Answer options

Correct answer: A, C, E

Explanation

To run unit tests and report the status back to the pull request, AWS CodeBuild can be configured with webhook triggers and build status reporting enabled (Option C). An IAM service role is required to grant CodeBuild the permissions to run the tests and write to S3 (Option A). Finally, the artifacts section of the buildspec.yml file is used to specify which generated files should be uploaded to the S3 bucket configured in the CodeBuild project (Option E).