Interview Prep/CI/CD/Deployment Strategies and GitOps

You are asked to explain rolling, blue-green and canary to the product team and pick one for a payments API.

BeginnerScenarioDeployment Strategies and GitOps
Answer

Situation read → Choose a strategy by risk and cost.

What I'd do →

  1. Rolling: replace instances gradually; cheap, but old and new versions coexist.
  2. Blue-green: full parallel environment, instant switch and rollback; double capacity cost.
  3. Canary: shift 1% → 10% → 50% with metric checks; lowest blast radius.
  4. For payments I choose canary with automated analysis, falling back to blue-green if the DB change is incompatible.

Why → The cost of failure is high, so we want progressive exposure and fast rollback.

Interview tip → Mention backward-compatible DB changes as the real prerequisite for all three.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Deployment Strategies and GitOps