CS FundamentalsHardProduct-company DevOps interview

A suite of 1,200 tests averaging 3 seconds each is split evenly across 6 parallel shards, and each shard needs 2 minutes of setup before running. About how long does the test stage take?

  1. A. 60 minutes
  2. B. 12 minutes
  3. C. 22 minutes
  4. D. 10 minutes

Correct answer: B. 12 minutes

Test time per shard = 1,200 x 3/6 = 600 s = 10 minutes, plus 2 minutes of setup running in parallel = 12 minutes. Adding the setup of all six shards gives 22 minutes, but shards run at the same time.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic