CS FundamentalsHardGATE CS · TCS NQT Prime · Product Company SDE

A CI pipeline's test stage takes 45 minutes to run on every commit, significantly slowing developer feedback. Which of these is a reasonable mitigation, consistent with CI/CD best practice?

  1. A. Disable the pipeline whenever it becomes inconvenient
  2. B. Only run the test suite once a month regardless of how many commits land
  3. C. Parallelise independent test suites across multiple workers, and run a fast subset of critical tests first so failures surface quickly, before running the full suite
  4. D. Remove all automated tests from the pipeline entirely to speed it up

Correct answer: C. Parallelise independent test suites across multiple workers, and run a fast subset of critical tests first so failures surface quickly, before running the full suite

Splitting and parallelising tests, and ordering fast/critical checks first (fail fast), are standard techniques to keep CI feedback quick without abandoning the safety net automated testing provides.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic