nerdexam
Amazon

DOP-C02 · Question #450

A DevOps engineer needs to implement a CI/CD pipeline that uses AWS CodeBuild to run a test suite. The test suite contains many test cases and takes a long time to finish running. The DevOps…

The correct answer is B. Run the test suite in a batch build type of build fanout by using the codebuild-tests-run command. The "fan-out" batch build type in AWS CodeBuild allows running multiple builds in parallel for different subsets of tests, reducing overall test execution time. CodeBuild then aggregates the results into a single consolidated report.

Submitted by rachelw· Mar 6, 2026SDLC Automation

Question

A DevOps engineer needs to implement a CI/CD pipeline that uses AWS CodeBuild to run a test suite. The test suite contains many test cases and takes a long time to finish running. The DevOps engineer wants to reduce the duration to run the tests. However, the DevOps engineer still wants to generate a single test report for all the test cases. Which solution will meet these requirements?

Options

  • ARun the test suite in a batch build type of build matrix by using the codebuild-tests-run command.
  • BRun the test suite in a batch build type of build fanout by using the codebuild-tests-run command.
  • CRun the test suite in a batch build type of build list by using different subsets of the test cases.
  • DRun the test suite in a batch build type of build graph by using different subsets of the test cases.

How the community answered

(24 responses)
  • A
    13% (3)
  • B
    50% (12)
  • C
    29% (7)
  • D
    8% (2)

Explanation

The "fan-out" batch build type in AWS CodeBuild allows running multiple builds in parallel for different subsets of tests, reducing overall test execution time. CodeBuild then aggregates the results into a single consolidated report.

Topics

#CodeBuild#CI/CD optimization#Batch builds#Parallel testing

Community Discussion

No community discussion yet for this question.

Full DOP-C02 Practice