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

Actual exam question for Linux Foundation's CGOA exam
Question #: 2
Topic #: 5
[All CGOA Questions]

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

Show Suggested Answer Hide Answer
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.


===========

Contribute your Thoughts:

0/2000 characters
Sommer
24 days ago
I feel confident about this question.
upvoted 0 times
...
Tula
29 days ago
Exactly, revert is the way to go!
upvoted 0 times
...
Fernanda
1 month ago
D) git push just uploads changes.
upvoted 0 times
...
Kayleigh
1 month ago
C) git commit is for saving changes, not rolling back.
upvoted 0 times
...
Jacquelyne
1 month ago
Right, it's about rolling back, not branching.
upvoted 0 times
...
Sherrell
2 months ago
A) git branch doesn't fit here.
upvoted 0 times
...
Joesph
2 months ago
Totally agree, B is the way to go!
upvoted 0 times
...
Eric
2 months ago
Definitely not A or C, those don't roll back.
upvoted 0 times
...
Lamar
2 months ago
I thought it was git push at first.
upvoted 0 times
...
Dominque
2 months ago
B) git revert is the right choice!
upvoted 0 times
...
Marion
3 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.
upvoted 0 times
...
Malinda
3 months ago
I feel like git commit is about saving changes, so it can't be the right answer for rollback.
upvoted 0 times
...
Sommer
3 months ago
Yeah, that makes sense. It undoes changes.
upvoted 0 times
...
Kirby
3 months ago
I'm not entirely sure, but I remember something about git branch being used for creating branches, not rolling back.
upvoted 0 times
...
Tula
4 months ago
I think it's B) git revert.
upvoted 0 times
...
Donte
4 months ago
Wait, can you really revert a commit like that?
upvoted 0 times
...
Elvis
4 months ago
I think git revert is the one that actually undoes changes by creating a new commit.
upvoted 0 times
...
Elouise
4 months ago
D) git push? That's like trying to push a train uphill with your bare hands.
upvoted 0 times
...
Lashawn
4 months ago
C) git commit? Really? That's like trying to put the toothpaste back in the tube.
upvoted 0 times
...
Julio
5 months ago
I always get git revert and git reset mixed up. Maybe I should just use a time machine instead.
upvoted 0 times
...
Latricia
5 months ago
B) git revert is the correct answer to roll back to a previous commit.
upvoted 0 times
...
Cathern
5 months 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.
upvoted 0 times
...
Jessenia
5 months 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.
upvoted 0 times
...
Ezekiel
5 months 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.
upvoted 0 times
...
Christiane
5 months 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.
upvoted 0 times
Herminia
11 hours ago
I’ve used it many times, works like a charm!
upvoted 0 times
...
Leonida
5 days ago
Yeah, it’s perfect for rolling back changes.
upvoted 0 times
...
Helga
3 months ago
I agree, B) git revert is the right choice!
upvoted 0 times
...
...

Save Cancel