Courseiva
Development with AWS ServiceseasyMultiple SelectObjective-mapped

DVA-C02 Development with AWS Services Practice Question

A developer is using AWS CodeBuild to run unit tests as part of a CI/CD pipeline. The developer wants to store the test results for later analysis. Which TWO AWS services can the developer use to store and view the test reports?

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

AWS CodeBuild test reports

AWS CodeBuild test reports is a built-in feature that allows you to view test results directly in the CodeBuild console, enabling analysis of test reports. Option D: Amazon S3 can be used to store raw test result files (e.g., XML reports) for later retrieval and analysis. Option B: AWS X-Ray is for distributed tracing, not for storing test reports. Option C: Amazon Athena is a query service for data in S3, not a storage or viewing service for test reports. Option E: Amazon CloudWatch Logs is for log data, not structured test reports.

Answer analysis

Option-by-option breakdown

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

  • AWS CodeBuild test reports

    Why this is correct

    AWS CodeBuild's native test reporting feature ingests test result files (such as JUnit XML or NUnit XML) declared in the buildspec's `reports` section, groups them into a test report group, and produces visual pass/fail metrics, trends, and failure summaries in the CodeBuild console. This is the intended, fully managed mechanism for analyzing unit test outcomes directly within the CI/CD pipeline without needing separate services.

  • AWS X-Ray

    Why it's wrong here

    AWS X-Ray traces end-to-end requests through distributed applications, generating service graphs and trace segments to pinpoint latency and errors at runtime. It does not parse test result files, track unit test pass rates, or produce build-quality reports, so it is irrelevant to CodeBuild unit test reporting.

  • Amazon Athena

    Why it's wrong here

    Amazon Athena is an interactive SQL query engine that runs directly on data stored in Amazon S3, often used for ad-hoc analytics over log files and structured datasets. While you could point Athena at test result files, you would first need to define tables and write queries, and it offers no built-in CodeBuild integration, test report groups, or trend dashboards.

  • Amazon S3

    Why this is correct

    Amazon S3 is a valid companion because CodeBuild can upload the raw test result files (for example, JUnit-compatible XML) to an S3 bucket for durable retention, auditing, or downstream processing. It enables long-term storage and sharing of artifacts, but it does not by itself aggregate results into the structured, searchable reports that CodeBuild's test reporting feature provides.

  • Amazon CloudWatch Logs

    Why it's wrong here

    Amazon CloudWatch Logs stores the raw log output generated by CodeBuild builds, including console output from running tests, and offers log-group insights with Logs Insights queries. It is not a structured test-reporting service: it treats output as free-form text lines rather than test case/status records, so it cannot natively produce pass/fail summaries or quality gates.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

Courseiva writes every DVA-C02 question from scratch — 724 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.