What are the core principles of GitOps?
What they are really testing: Whether you can articulate the defining properties (declarative, versioned/immutable, pulled automatically, continuously reconciled) rather than vague "use git". These are the OpenGitOps principles.
A real interview question
What are the core principles of GitOps?
What most people say
drag me
“You use git to store your config and deploy from it automatically.”
It gestures at one or two principles but misses the precise four: declarative, versioned/immutable, pulled automatically, and continuously reconciled. The continuous-reconciliation principle in particular is what makes it GitOps.
The follow-ups they ask next
Which principle separates GitOps from simply keeping manifests in a repo?
Continuous reconciliation: an agent constantly drives the cluster toward the declared state and corrects drift. Just storing manifests in git without that loop is not GitOps.
Why does "immutable and versioned" matter operationally?
Every change is a reviewable, traceable commit, giving a full audit trail and making rollback a simple revert. You always know exactly what is deployed and who changed it.
What the interviewer is listening for
- Names declarative/versioned/pulled/reconciled
- Stresses continuous reconciliation
- Connects to audit + rollback
What sinks the answer
- Vague "use git"
- Misses continuous reconciliation
- Cannot list the principles
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.
“Four principles: [declarative (describe desired state, not steps)], [versioned and immutable (it lives in git, every change a commit)], [pulled automatically (agents pull it, no manual apply)], and [continuously reconciled (agents keep actual state matching declared, correcting drift)]. The last one is [what makes it GitOps, not just manifests in a repo].”
Keep going with gitops
Foundation
What is GitOps, and what problem does it solve?
Foundation
What is the difference between push-based and pull-based deployment, and why does GitOps prefer pull?
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