Courseiva
SDLC Automation →hardMultiple Choice

DOP-C02 SDLC Automation Practice Question

A company uses AWS CodePipeline with multiple stages: source, build, test, and deploy. The test stage takes 45 minutes to complete. Developers complain that the pipeline takes too long to provide feedback. The team wants to run tests in parallel across multiple environments. Which approach should be taken to reduce the pipeline execution time?

⚠ Common exam trap

It's easy for candidates to confuse parallel actions within a pipeline stage (which is a CodePipeline feature) with increasing compute resources or using batch builds, which address different bottlenecks (compute speed vs. parallel execution).

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 the test stage with parallel actions in CodePipeline

AWS CodePipeline supports parallel actions within a stage, allowing multiple test environments (e.g., different OS or browser configurations) to run simultaneously. This reduces the overall pipeline execution time from the sum of sequential tests to the duration of the longest single test (45 minutes), provided the parallel actions are independent. By configuring the test stage with parallel actions, the team can achieve faster feedback without altering the underlying test logic or infrastructure.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Increase the compute capacity of the test environment

    Why it's wrong here

    Increasing the compute capacity of the test environment only accelerates the execution of each individual test; it does not change the fact that a single test action runs serially. The stage duration remains the sum of all sequential test steps, so the bottleneck is the lack of parallelization, not CPU or memory. Additionally, larger instances incur higher costs without addressing the architectural limitation of a single monolithic test action.

  • ✓

    Configure the test stage with parallel actions in CodePipeline

    Why this is correct

    Configuring the test stage with parallel actions directly addresses the bottleneck by splitting the test suite into multiple independent actions within the same stage. CodePipeline executes actions that do not depend on one another concurrently, so the stage's total duration is the maximum of the parallel action times rather than the sum. This requires partitioning tests (for example, by service or module) and defining each action with its own CodeBuild project, and the pipeline waits for all parallel actions to succeed before proceeding.

  • ✗

    Use AWS CodeBuild batch builds with a single buildspec

    Why it's wrong here

    AWS CodeBuild batch builds are designed to run multiple separate builds in a single project, often for building several artifacts or environments, not to parallelize the execution of tests within a single stage. A single buildspec defines one build process; using batch builds does not automatically split a test suite into parallel segments, and it still operates as one action in CodePipeline. To achieve parallelism in the pipeline, you must create multiple CodeBuild actions, each responsible for a distinct subset of tests.

  • ✗

    Create multiple pipelines, each running a subset of tests

    Why it's wrong here

    Creating multiple pipelines, each running a subset of tests, moves the parallelism to the pipeline level but introduces separate source triggers, manual coordination, and duplicate infrastructure management. It also breaks the single-pipeline view of the application lifecycle, making it harder to track cross-test results and approval gates. Within each pipeline, the test stage remains sequential, so unless each pipeline is triggered simultaneously and managed as a fleet, you gain little over a single sequential pipeline.

About these practice questions

This DOP-C02 question is part of Courseiva's 1,298-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 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.