Interview Prep/CI/CD/Deployment Strategies and GitOps

Compare rolling, blue-green and canary deployments.

IntermediateConceptDeployment Strategies and GitOps
Answer
Rolling Blue-green Canary
Extra capacity Small surge Full duplicate Small slice
Rollback speed Slow (rollout reversed) Instant switch Fast (shift weight to 0)
Risk exposure Gradual, uncontrolled split None until the switch, then 100% Controlled percentage
Complexity Low Medium High (metrics and routing)

Choose rolling for most stateless services, blue-green when instant rollback and pre-switch validation matter, and canary for high-traffic or high-risk changes where you want metric-driven promotion.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Deployment Strategies and GitOps