What is GitOps, and what problem does it solve?
What they are really testing: Whether you grasp git-as-source-of-truth with continuous reconciliation, not just "deploy from git". They want the benefits: auditability, rollback, drift correction.
A real interview question
What is GitOps, and what problem does it solve?
What most people say
drag me
“GitOps means you deploy your application from a Git repository.”
Deploying from git is just CI/CD. GitOps is specifically git as the source of truth plus a controller that continuously reconciles the cluster to it, with the resulting auditability, rollback, and drift correction, none of which this captures.
The follow-ups they ask next
How is GitOps different from normal CI/CD that deploys from git?
CI/CD pushes a change once; GitOps has an in-cluster controller continuously reconciling the cluster to git, so it also detects and corrects drift and the cluster always matches the declared state, not just at deploy time.
How does rollback work in GitOps?
Revert the commit in git; the controller reconciles the cluster back to that previous declared state. Rollback is just git history, fully audited.
What the interviewer is listening for
- Git as source of truth + continuous reconciliation
- Names audit/rollback/drift-correction benefits
- Distinguishes from plain deploy-from-git
What sinks the answer
- Just "deploy from git"
- No notion of reconciliation/drift
- Cannot state the benefits
If you genuinely do not know
Say this instead of freezing. Reasoning out loud from what you do know beats silence every single time, and a good interviewer is listening for exactly that.
“GitOps is [git as the single source of truth for desired state, with an in-cluster controller continuously reconciling the cluster to match]. It gives [an audit trail (git history), easy rollback (revert a commit), consistency, and drift correction]. Unlike plain deploy-from-git, [reconciliation is continuous, so the cluster always matches git].”
Keep going with gitops
Foundation
What is the difference between push-based and pull-based deployment, and why does GitOps prefer pull?
Foundation
What are the core principles of GitOps?
Junior
What are Argo CD and Flux, and how do they differ?
Junior
How does drift detection and self-healing work in GitOps?
Junior
How do you structure repositories for GitOps? Should app code and deployment config live together?
Mid
How do you promote a change from dev to staging to prod in a GitOps workflow?
Knowing the answer is not the same as recalling it under pressure
Sign in to send the questions you fumble to spaced recall, so they come back right before you would forget them, and learn the concepts behind them with hands-on labs.
Start free