Courseiva
DeploymentmediumMultiple ChoiceObjective-mapped

DVA-C02 Deployment Practice Question

A developer is using AWS CodeBuild to build a Java application. The buildspec.yml file currently runs unit tests. The developer wants to generate a code coverage report and publish it to the CodeBuild console for analysis. Which CodeBuild feature should be used?

⚠ Common exam trap

Candidates often confuse build artifacts (which store compiled binaries) with test reports (which store structured test and coverage data), or assume CloudWatch Logs can visualize coverage metrics when it only provides raw log text.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Test reports

AWS CodeBuild's test reports feature allows developers to create reports from test result files, including code coverage reports, and publish them to the CodeBuild console for analysis. This feature supports various report formats such as JaCoCo, Cobertura, and SimpleCov, enabling the developer to visualize coverage metrics directly in the console without external tools.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Test reports

    Why this is correct

    AWS CodeBuild's "Test reports" feature is specifically designed to ingest and display structured test results and code coverage metrics directly within the CodeBuild console. By configuring the `reports` section in the `buildspec.yml` to point to test output files (e.g., JUnit XML, JaCoCo XML), CodeBuild processes these files to generate visual reports, including pass/fail rates, test duration, and code coverage percentages, providing immediate feedback on application quality.

  • Build artifacts

    Why it's wrong here

    Build artifacts are the output files generated by the build process, such as compiled JARs, WARs, or Docker images, which are typically stored in an Amazon S3 bucket for subsequent deployment or use. While essential for the application's functionality and deployment, these artifacts are the *product* of the build, not the mechanism for displaying structured test results or code coverage reports within the CodeBuild console for analysis.

  • Amazon CloudWatch Logs

    Why it's wrong here

    Amazon CloudWatch Logs capture the raw standard output and standard error streams from the CodeBuild environment during the build process. These logs are invaluable for debugging build failures or monitoring execution flow in real-time. However, CloudWatch Logs store unstructured text data and do not possess the capability to parse, interpret, or display structured test report formats (like JUnit or JaCoCo) as aggregated, interactive reports within a dedicated console section.

  • Amazon S3 access logs

    Why it's wrong here

    Amazon S3 access logs record detailed information about requests made to an S3 bucket, including the requester, bucket name, request time, action performed, and response status. Their primary purpose is for auditing and security analysis of S3 bucket operations. S3 access logs are entirely unrelated to the generation, processing, or display of code coverage or test result reports within the AWS CodeBuild service itself.

About these practice questions

This DVA-C02 question is part of Courseiva's 724-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This DVA-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DVA-C02 exam.