A developer is configuring AWS CodePipeline for a project. During each build step, the pipeline must generate a test report. Which solution meets this requirement?
Choose an answer
Tap an option to check your answer.
Correct answer: Create an AWS CodeBuild build project that runs the tests and specify the test report settings in the buildspec file..
Why this is the answer
AWS CodeBuild is designed for compiling source code, running tests, and producing software packages. To generate test reports within a CodePipeline, you integrate a CodeBuild action. The buildspec.yml file, which defines the build commands and settings for CodeBuild, includes a reports section where you specify the test report settings, such as the test framework, file patterns for test results, and the output directory. This allows CodeBuild to process test results and make them available in the CodeBuild console and CodePipeline. Incorrect options: CodeDeploy is used for automating application deployments, not for running builds or generating test reports during the build phase. The AppSpec file is for deployment instructions. Running builds on an EC2 instance with SSM Agent is a manual or semi-manual approach for executing commands, but it doesn't natively integrate with CodePipeline's reporting features for test results. CodeBuild provides a managed service for this. CodeArtifact is a managed artifact repository service for storing and retrieving packages. It does not generate test reports or use test report templates.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed