Question 400
On a Junos OS 21.2 lab device, this situation occurs: A trainee adds an incorrect route in candidate configuration but has not committed it and tries to reboot the router to undo the mistake. Which check most directly proves the desired outcome?
Explanation
Correct Answer
This result validates rollback zero discards pending edits: Rollback 0 restores the candidate configuration from the currently active committed configuration, discarding uncommitted edits. The corresponding remediation is: Enter rollback 0 in configuration mode and inspect the candidate difference to confirm the mistake is removed. Evidence from an unrelated feature is not sufficient.
Incorrect Answers
Relative commands inherit the current configuration hierarchy, and the wrong edit path can create invalid or misplaced statements. “Use top or up to navigate to the desired hierarchy before entering unrelated set or delete operations” would address that alternative cause, not the condition in this question: rollback 0 restores the candidate configuration from the currently active committed configuration, discarding uncommitted edits.
“Review the candidate difference, validate the intended change and commit when authorized for service impact” responds to this separate finding: junos maintains candidate edits separately from active configuration until a successful commit activates the candidate. This question instead needs “Enter rollback 0 in configuration mode and inspect the candidate difference to confirm the mistake is removed”, so the alternative does not meet the stated condition.
The configuration-mode show | compare command summarizes differences between the candidate configuration and the active configuration. “Run show | compare at the relevant configuration context and review additions and deletions before commit” applies to that separate problem. The observed case is a trainee adds an incorrect route in candidate configuration but has not committed it and tries to reboot the router to undo the mistake; choosing this alternative would address the wrong failure mode.