Interview Prep/CI/CD/Deployment Strategies and GitOps

A deployment needs to be rolled back at 2 AM. What does your rollback look like?

BeginnerScenarioDeployment Strategies and GitOps
Answer

Situation read → Speed and safety matter.

What I'd do →

  1. Kubernetes: kubectl rollout undo deployment/app -n prod and kubectl rollout status deployment/app.
  2. GitOps: git revert <sha> and let Argo CD/Flux sync, so Git stays the truth.
  3. Verify with health checks and dashboards, then open an incident ticket.

Why → Rollback should be a rehearsed one-command operation, not a rebuild.

Interview tip → Rolling back application code is easy; rolling back data is not, so say that.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Deployment Strategies and GitOps