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?
- A. Fail fast; tests run too late
- B. Shift left; security scans are skipped
- C. Build once, deploy many: rebuilding can produce a different binary (changed dependencies, tool versions), so what reaches prod is not what QA tested
- 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.
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
- According to the Twelve-Factor App methodology, where should a service keep its database URL and API keys that differ between staging and…
- A CI pipeline takes 40 minutes: end-to-end UI tests (30 min) run first, then unit tests (3 min), then linting (1 min). Most failures are…
- A service's SLO is 99.9% of requests succeeding over a 30-day window. For a downtime-based view, what is the monthly error budget in…
- A service has a 99.9% success SLO over 30 days. An incident causes a steady 0.5% error rate. If it continues, how soon will the whole…
- A Kubernetes HorizontalPodAutoscaler targets 60% average CPU. There are 4 pods averaging 90% CPU. The HPA uses desired = ceil(current…
- A VM costs ₹10 an hour on demand. A one-year reserved commitment for the same VM costs ₹52,560, payable whatever the usage. Above what…