JN0-102 · Question #46
Which two commands would you use to discard a candidate configuration? (Choose two.)
The correct answer is A. rollback D. rollback 0. To discard changes made to the candidate configuration in Junos OS, you can use either the rollback command to revert to the active configuration or the rollback 0 command, which explicitly rolls back to the current active configuration.
Question
Which two commands would you use to discard a candidate configuration? (Choose two.)
Options
- Arollback
- Bdelete
- Cdelete 0
- Drollback 0
How the community answered
(40 responses)- A88% (35)
- B10% (4)
- C3% (1)
Why each option
To discard changes made to the candidate configuration in Junos OS, you can use either the `rollback` command to revert to the active configuration or the `rollback 0` command, which explicitly rolls back to the current active configuration.
The `rollback` command, when used without arguments, reverts the candidate configuration to the last committed (active) configuration, effectively discarding all uncommitted changes.
The `delete` command is used to remove specific configuration statements within the configuration hierarchy, not to discard the entire candidate configuration.
The `delete 0` command is not a valid Junos command for discarding a candidate configuration.
The `rollback 0` command specifically reverts the candidate configuration to the current active configuration (which is always indexed as 0 in the rollback history), discarding any uncommitted changes.
Concept tested: Junos configuration management - discarding candidate changes
Source: https://www.juniper.net/documentation/us/en/software/junos/junos-basics/topic-map/junos-cli-configuration-rollback.html
Topics
Community Discussion
No community discussion yet for this question.