CGOA practice question 5 of 15
In a GitOps-managed workflow, what is the correct way to initiate rollback?
Full set: 60 questionsUnder GitOps, Git is the immutable, audit-able “source of truth.” Rollbacks therefore occur only by committing a new change that points back to an earlier, proven-good state (e.g., git revert or cherry-pick of the old commit) and pushing that new commit. This preserves the linear history (“always roll forward”) and lets the GitOps reconciler automatically apply the older manifests. Directly manipulating the cluster or rewriting Git history violates core GitOps principles.
A. Helm rollback acts directly on the cluster; it bypasses the Git repository, causing drift from the declared source of truth.
C. Overwriting the existing commit rewrites history, losing auditability and breaking the immutable record required by GitOps.
D. Force-pushing an old commit rewrites history and can erase later valid changes, conflicting with GitOps’ immutable, append-only workflow.
1. Linux Foundation, “Introduction to GitOps (LFS169),” Chapter 3 §3.4 “Rollback and Recovery,” pp. 37-38: “Perform a git revert/cherry-pick… create a new commit; history must never be rewritten.”
2. CNCF GitOps Working Group, “GitOps Principles v1.0,” Principle 4, para 2: “Rollback is achieved by reverting or re-applying prior commits; the system reconciles to the desired state.”
3. Argo CD Documentation v2.7, “Best Practices → Disaster Recovery,” para 1: “To roll back, revert the manifest change in Git and push a new commit; Argo CD will sync that revision.”
4. Weaveworks (Flux) Docs, “Operating with Flux,” Section “Rollbacks,” lines 5-9: “Use ‘git revert’ to commit previous state; Flux detects the new commit and applies it.”
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 4In GitOps, how is the Desired State stored?
- 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…
