Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation CGOA Exam - Topic 5 Question 2 Discussion

Posted by Claribel on Oct 04, 2025 at 06:06 PM

Which of these Git commands will enact a rollback of the configuration to a previous commit?

Suggested Answer: B

In GitOps, rollback is performed by reverting the system's Desired State stored in Git. This is done with the git revert command, which creates a new commit that undoes the changes introduced by a previous commit.

''Because Git provides an immutable history of changes, rollbacks are straightforward. Reverting to a previous configuration is accomplished by reverting the commit in Git, which then allows the reconciler to apply the earlier desired state.''

Thus, the correct answer is B: git revert.


===========

Get Premium CGOA Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
29 comments · newest first
SO
Sommer 8 months ago
I feel confident about this question.
TU
Tula 8 months ago
Exactly, revert is the way to go!
FE
Fernanda 9 months ago
D) git push just uploads changes.
KA
Kayleigh 9 months ago
C) git commit is for saving changes, not rolling back.
JA
Jacquelyne 9 months ago
Right, it's about rolling back, not branching.
SH
Sherrell 9 months ago
A) git branch doesn't fit here.
JO
Joesph 9 months ago
Totally agree, B is the way to go!
ER
Eric 10 months ago
Definitely not A or C, those don't roll back.
LA
Lamar 10 months ago
I thought it was git push at first.
DO
Dominque 10 months ago
B) git revert is the right choice!
MA
Marion 10 months ago
I practiced a question similar to this, and I think git revert was the correct choice for rolling back to a previous state.
MA
Malinda 10 months ago
I feel like git commit is about saving changes, so it can't be the right answer for rollback.
SO
Sommer 10 months ago
Yeah, that makes sense. It undoes changes.
KI
Kirby 11 months ago
I'm not entirely sure, but I remember something about git branch being used for creating branches, not rolling back.
TU
Tula 11 months ago
I think it's B) git revert.
DO
Donte 11 months ago
Wait, can you really revert a commit like that?
EL
Elvis 11 months ago
I think git revert is the one that actually undoes changes by creating a new commit.
EL
Elouise 12 months ago
D) git push? That's like trying to push a train uphill with your bare hands.
LA
Lashawn 12 months ago
C) git commit? Really? That's like trying to put the toothpaste back in the tube.
JU
Julio 1 year ago
I always get git revert and git reset mixed up. Maybe I should just use a time machine instead.
LA
Latricia 1 year ago
B) git revert is the correct answer to roll back to a previous commit.
CA
Cathern 1 year ago
B) git revert sounds right to me. I remember learning that's the command to undo changes and go back to a previous state of the repo. I'm pretty sure that's the answer, but I'll double-check my notes just to be sure.
JE
Jessenia 1 year ago
Okay, let me think this through step-by-step. We want to roll back the configuration to a previous commit, so that rules out C) git commit and D) git push. A) git branch is for creating and managing branches, not for rollbacks. That leaves B) git revert as the best option.
EZ
Ezekiel 1 year ago
I'm not totally sure about this one. I know git revert is used for undoing changes, but I'm not confident that's the right answer here. I'll have to think it through carefully.
CH
Christiane 1 year ago
Hmm, I think it's B) git revert. That's the command I usually use to undo changes and go back to a previous commit.
NA
Na 7 months ago
↳ replying to Christiane
Definitely B! Other options don’t fit rollback.
HE
Herminia 8 months ago
↳ replying to Christiane
I’ve used it many times, works like a charm!
LE
Leonida 8 months ago
↳ replying to Christiane
Yeah, it’s perfect for rolling back changes.
HE
Helga 11 months ago
↳ replying to Christiane
I agree, B) git revert is the right choice!
0/2000 characters

Save Cancel