JN0-106 User Interfaces Practice Question
A network administrator has made several configuration changes and now wants to revert all uncommitted changes back to the last committed configuration. Which command should they use?
⚠ Common exam trap
A common mix-up: candidates confuse 'rollback 0' with 'rollback 1', mistakenly thinking that 'rollback 1' reverts to the last committed configuration, when in fact 'rollback 0' is the correct slot for the most recent committed state.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
rollback 0
The 'rollback 0' command reverts all uncommitted changes and restores the active configuration to the last committed configuration. In Junos, candidate configurations are stored in numbered rollback slots (0 being the most recent committed configuration), so 'rollback 0' discards any uncommitted edits and loads the last committed state.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
rollback 1
Why it's wrong here
The rollback command uses an index into the committed history, where rollback 0 is the most recent committed configuration and rollback 1 is the configuration committed before that one. Running rollback 1 here would replace the candidate with that older historical snapshot, not with the configuration that was active when you started making changes. It would discard your current edits, but to the wrong baseline, and then require a commit to activate an unintended prior state.
- ✗
load override terminal
Why it's wrong here
load override terminal is a configuration editor command that completely replaces the candidate configuration with a text block pasted or typed into the terminal session. It has no relation to the rollback database or committed history; it simply parses the entered configuration and makes it the new candidate. If you used it to try to 'revert' to the last commit, you would have to type that entire configuration manually, and any typo or omission could leave an invalid or incomplete configuration. This is not a reliable or intended mechanism for reverting uncommitted changes.
- ✗
commit check
Why it's wrong here
commit check performs a validation-only pass on the candidate configuration, running the same checks as a commit but without installing the changes or updating the committed configuration. It reports whether the candidate would commit successfully, but it leaves both the candidate and the active configuration untouched. Therefore it cannot revert or discard the modifications; it merely tells you if the current candidate is syntactically and semantically valid before you decide to commit or rollback.
- ✓
rollback 0
Why this is correct
The correct action to discard all uncommitted changes is rollback 0, because the rollback database stores a snapshot of each configuration that has been committed, and index 0 always refers to the most recently committed one. This command copies that snapshot over your candidate configuration, instantly removing any changes you made after the last commit. The active (running) configuration is unaffected until you issue a commit, at which point the rollback 0 snapshot becomes the new active configuration. This is the standard Junos workflow for reverting a series of uncommitted edits.
Go deeper
Related to this question
About these practice questions
One of 326 original JN0-106 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This JN0-106 practice question is part of Courseiva's free Juniper Networks certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the JN0-106 exam.