How would you design quality gates for a multi-stage deployment pipeline without turning them into a bottleneck?
Answer
Place fast, high-confidence checks early, unit and contract tests, and reserve slower, broader checks for later stages where a failure is more expensive to have missed. Make each gate's pass criteria explicit and owned, keep gates few enough that a failure is always actionable rather than routinely overridden, and periodically review whether a gate still catches real problems or has become ceremony that people route around.
Strong answer includes
- orders checks by speed and confidence, cheapest first
- requires explicit, owned pass criteria per gate
- reviews whether each gate still catches real problems over time
Practical example
A pipeline had seven sequential gates, several of which were routinely overridden with a manual approval because 'they always fail on something unrelated.' The team cut it to three gates with clear, currently-relevant pass criteria, and override requests dropped to near zero because the gates that remained were trusted.