Courseiva
SDLC Automation →hardMultiple Choice

DOP-C02 SDLC Automation Practice Question

An organization uses AWS CodePipeline with multiple stages: Source, Build, Test, and Deploy. The Test stage runs integration tests that take 30 minutes. The team wants to speed up feedback without skipping tests. Which action should they take?

⚠ Common exam trap

A common mix-up: candidates assume 'larger build environment' (Option A) is the universal solution for slow tests, but the DOP-C02 exam tests understanding that parallelism is the correct approach when tests are independent and the goal is to reduce elapsed time without sacrificing coverage.

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

✓

Configure parallel build actions in the Test stage to run tests concurrently.

Running integration tests in parallel within the Test stage reduces the total wall-clock time for the test suite, speeding up feedback without skipping any tests. AWS CodePipeline supports parallel actions within a stage, allowing multiple test suites to execute concurrently, which directly addresses the goal of faster feedback while maintaining test coverage.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Use a larger build environment for the Test stage.

    Why it's wrong here

    Enlarging the CodeBuild compute environment (e.g., from General1.small to Large) only increases per-execution CPU and memory; if the Test stage contains a single build action running a monolithic test suite, the tests still execute serially inside that one job. Wall-clock time is bounded by the sum of all test durations, not by throughput, so the gain comes only from faster individual tests—often marginal. This does not introduce any parallelism, so the stage duration remains largely unchanged.

  • ✓

    Configure parallel build actions in the Test stage to run tests concurrently.

    Why this is correct

    CodePipeline naturally executes independent actions within a stage in parallel unless you set explicit runOrder values or action dependencies. By configuring multiple build actions, each running a partitioned portion of the test suite (by module, service, or shard), the total test work is spread across concurrent CodeBuild projects. The stage completes when all parallel actions finish, so overall duration approaches the slowest shard's critical path rather than the sum of all tests, directly reducing feedback time.

  • ✗

    Remove the Test stage and rely on post-deployment testing.

    Why it's wrong here

    Removing the Test stage and relying on post-deployment testing eliminates the safety gate before artifacts are promoted to production; any regression would only be detected after the code is already live and serving traffic. You would then need smoke tests, health checks, or rollback procedures in production, all slower and riskier than fail-fast pipeline validation. This does not shorten the pipeline—it merely postpones quality verification, increasing the blast radius of defects and the cost of remediation.

  • ✗

    Move the Test stage to after deployment.

    Why it's wrong here

    Moving the Test stage to after deployment reverses the pipeline's intended order: the build artifact is deployed to a production or production-like environment before tests execute, so you are validating in the same environment that serves end users. The stage still consumes the same duration, but the feedback loop is longer because deployment happens first, and any test failure may already have exposed users to faulty behavior. It also contradicts CodePipeline's recommended practice of verifying an artifact before promotion to later stages.

About these practice questions

One of 1,298 original DOP-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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 DOP-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 DOP-C02 exam.