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?
- A. Disable the pipeline whenever it becomes inconvenient
- B. Only run the test suite once a month regardless of how many commits land
- 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
- 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.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- A multi-tenant cloud offering where a single application instance serves many different customer organisations, each with isolated data…
- A developer runs git reset --hard HEAD~3 on a local branch, discarding the last 3 commits and their changes from the working directory…
- For a embedded mode project with Basic COCOMO effort E = 92.8 person-months, the development time formula is D = 2.5 × E^0.32 months. What…
- A single 'Worker' interface forces every implementing class to provide both work() and eat() methods, even though a RobotWorker class has…
- A team wants to run two full versions of a service simultaneously in production, routing a fixed percentage of traffic to each to directly…
- A subsystem has many complex interacting classes (video codecs, audio mixers, subtitle renderers). Client code just wants a single, simple…