AWS Certified Developer – Associate (DVA-C02) — Question 407
A developer is setting up AWS CodePipeline for a new application. During each build, the developer must generate a test report.
Which solution will meet this requirement?
Answer options
- A. Create an AWS CodeBuild build project that runs tests. Configure the buildspec file with the test report information.
- B. Create an AWS CodeDeploy deployment that runs tests. Configure the AppSpec file with the test report information.
- C. Run the builds on an Amazon EC2 instance that has AWS Systems Manager Agent (SSM Agent) installed and activated.
- D. Create a repository in AWS CodeArtifact. Select the test report template.
Correct answer: A
Explanation
AWS CodeBuild natively supports test reporting by configuring the reports sequence within the buildspec file during the build stage of a pipeline. AWS CodeDeploy and its AppSpec file are designed for managing deployments rather than generating build-phase test reports. AWS Systems Manager (SSM) Agent on EC2 and AWS CodeArtifact (an artifact repository manager) do not provide native integration for generating test reports during CodePipeline builds.