Interview Prep/Azure/CI/CD and IaC

A deployment must be gated on error rate after release. How do you automate rollback?

AdvancedScenarioCI/CD and IaC
Answer

Situation read → Progressive delivery with metrics analysis.

What I'd do →

  1. Use Argo Rollouts or Flagger on AKS with a canary strategy
  2. Analysis template querying Managed Prometheus (or App Insights via a web metric) for 5xx rate and p95 latency
  3. Steps: 10% → analysis 5 minutes → 50% → analysis → 100%; abort and roll back on failure
  4. Pipeline only updates the image; rollout controller handles promotion

Why → Automated, metric-driven rollback is faster than a human watching dashboards.

Interview tip → Define the SLO-based thresholds before the tooling.

Azure All Azure questions Roadmap: AKS & Azure DevOps

More on CI/CD and IaC