CGOA practice question 4 of 15
In GitOps, how is the Desired State stored?
Full set: 60 questionsGitOps mandates that the canonical “desired state” of the system be kept in a version-control repository (typically Git). Each commit produces an immutable snapshot of the manifest set, while the Git history inherently provides complete versioning. This guarantees reproducibility, auditability, and the ability to roll back to any prior known-good configuration—core goals of GitOps practice.
A. Mutability contradicts GitOps; commits must be immutable to ensure reliable rollback and audit trails.
B. GitOps forbids out-of-band changes; all modifications must flow through pull requests to the repo, not made directly on live clusters.
C. Git stores every commit, not just the latest state; losing history would undermine audit and rollback capabilities.
1. CNCF GitOps Working Group, “Principles of GitOps”, v1.0, Apr 2021 – Section “Declarative desired state is versioned and immutable” (p. 2).
2. Weaveworks, “GitOps – Operations by Pull Request”, Whitepaper, 2017 – p. 2, ¶3: “Git provides an immutable, versioned single source of truth for infrastructure.”
3. The Linux Foundation, “Introduction to GitOps” (LFS169x), Chapter 2, “Desired State in Git: immutability & full history”.
4. University of Michigan ITS, “DevOps with Cloud Native Tools” course notes, Week 4, Slide 11: “Desired state kept in Git: commit history is immutable; every change is versioned.”
Keep practicing
Take the free CGOA practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other CGOA practice questions
- Question 1When are progressive delivery patterns useful in software development and deployment?
- Question 2You are deploying a new version of your application using the Blue-Green deployment patte…
- Question 3Which method(s) of accessing the Desired State store does GitOps support?
- Question 5In a GitOps-managed workflow, what is the correct way to initiate rollback?
- Question 6Which of these is an advantage of using a declarative configuration for your Desired Stat…
- Question 7You are packaging a complex application to deploy to multiple Kubernetes clusters using G…
