CI/CD · Ship safely, repeatedly
What are deployment gates and when should they block a release?
Short answer
Deployment gates are automated checks that must pass before or during promotion, such as tests, security policy, SLO health or required approval. They should block on measurable risk and fail closed rather than being advisory.
A gate encodes a release policy. Good gates are objective, fast enough not to destroy flow, and tied to a real failure mode. A gate that nobody understands or that can be bypassed without a record is security theatre.
- Correctness gates: required tests, type checks and migration checks
- Security gates: vulnerability thresholds, secret detection and signature verification
- Reliability gates: error budget, SLO burn rate and canary analysis
- Compliance gates: required reviewers, change tickets or separation of duties
- Every gate needs an owner, a clear failure message and an audited bypass path
http_error_ratio = errors_5m / requests_5m
gate_passes = http_error_ratio <= 0.02
gate_action = gate_passes ? promote : haltFollow-ups you should expect
Interviewers use these to check whether the first answer was understanding or memorisation.
- 1Which gates would you make blocking versus advisory?
- 2How do you handle a false positive in a security gate?
- 3What is an error-budget-based deployment gate?
- 4How do you audit a bypass?
Say it in the interview
Deployment gates are automated release policies covering correctness, security, reliability and compliance. I make them objective and tied to a real failure mode, and I prefer fail-closed behaviour for production promotion. Each gate needs an owner, a useful failure message and an audited exception path. I avoid gates that only measure activity, because they add delay without reducing risk.
Use this as a model, not a script. Saying it in your own words is what makes it survive follow-up pressure.
Related questions
Reading is step one
Now say it out loud.
Understanding an answer and delivering it under pressure are different skills. Rehearse this topic in a live CI/CD mock interview and get scored feedback on depth, clarity and confidence.