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 →
- Use Argo Rollouts or Flagger on AKS with a canary strategy
- Analysis template querying Managed Prometheus (or App Insights via a web metric) for 5xx rate and p95 latency
- Steps: 10% → analysis 5 minutes → 50% → analysis → 100%; abort and roll back on failure
- 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.
More on CI/CD and IaC
Design a GitHub Actions pipeline that builds an image, pushes to ACR and deploys to AKS with no secrets.IntermediateYour organisation uses Azure DevOps. Set up a secure deployment pipeline to AKS.IntermediateYou need to promote the same image from dev to staging to prod. How do you design it?IntermediateTerraform state for prod is in a storage account accessible with account keys. Harden it.IntermediateYour team wants to move from ARM JSON templates to Bicep. How do you migrate?BeginnerA pipeline needs to deploy to dev, test and prod in different subscriptions. How do you handle identities?Advanced