CS FundamentalsVery hardProduct-company DevOps interview

A pipeline builds the application separately for each environment (dev, QA, prod) from the same commit. Which principle does this break, and what is the risk?

  1. A. Fail fast; tests run too late
  2. B. Shift left; security scans are skipped
  3. C. Build once, deploy many: rebuilding can produce a different binary (changed dependencies, tool versions), so what reaches prod is not what QA tested
  4. D. Trunk-based development; branches diverge

Correct answer: C. Build once, deploy many: rebuilding can produce a different binary (changed dependencies, tool versions), so what reaches prod is not what QA tested

A single immutable artefact, promoted through environments with only configuration changing, guarantees prod runs exactly what passed testing. Rebuilds can pull a new dependency version or flag.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic