Interview Prep/CI/CD/Deployment Strategies and GitOps

A canary deploy needs automated rollback when the error rate rises.

AdvancedScenarioDeployment Strategies and GitOps
Answer

Situation read → Metric-driven progressive delivery.

What I'd do →

  1. Use Argo Rollouts with a canary strategy: setWeight: 10, pause: {duration: 5m}, analysis step.
  2. Define an AnalysisTemplate querying Prometheus: success rate sum(rate(http_requests_total{status!~"5.."}[5m])) / sum(rate(http_requests_total[5m])) > 0.99.
  3. On failure the Rollout aborts and returns traffic to stable automatically.

Why → Machines react faster than on-call humans, and the blast radius stays small.

Interview tip → Pair with a traffic router (Istio, NGINX, ALB) for precise percentage splits.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Deployment Strategies and GitOps