JN0-106 Junos Configuration Basics Practice Question
A network administrator needs to temporarily disable a set of configuration statements for testing without deleting them. Which approach should be used?
⚠ Common exam trap
The trap here is that candidates familiar with Cisco IOS may assume that commenting out lines with '!' or '#' is a valid method, but Junos uses a structured hierarchy and requires the 'deactivate' command for temporary disabling.
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
✓
use the 'deactivate' command to mark the statements inactive
The 'deactivate' command in Junos allows an administrator to temporarily disable a set of configuration statements without removing them from the configuration. When a statement is deactivated, it is prefixed with 'inactive:' in the configuration hierarchy, and the commit operation ignores it. This is ideal for testing changes, as the statements can be easily re-enabled using the 'activate' command.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
use the 'deactivate' command to mark the statements inactive
Why this is correct
The 'deactivate' command is the Junos-native method for temporarily disabling a statement or hierarchy from the active configuration. It prepends an 'inactive:' marker to the statement in the candidate configuration, so the configuration text remains fully intact and editable, but the statement is ignored during commit. This allows you to quickly re-enable the configuration with the 'activate' command without re-entering it, and it can be applied to any hierarchy level, from a single parameter to an entire protocol stanza.
- ✗
delete the statements and later re-add from a backup
Why it's wrong here
Deleting statements and later re-adding them from a backup is error-prone and inefficient in Junos because the configuration is a live candidate that must be manually re-applied. If the backup is not byte-for-byte current with the rest of the configuration, you risk overwriting unrelated changes made in the interim. Furthermore, there is no automatic way to 're-add' deleted lines; you would have to load the backup file, which could replace the entire candidate configuration or require a merge that may conflict. Junos specifically provides 'deactivate' to avoid this destructive workflow.
- ✗
comment out the lines using #
Why it's wrong here
Junos does not support using '#' (or other comment characters) to comment out lines in the configuration hierarchy. The configuration parser only accepts Junos configuration statements, and any line beginning with '#' is either rejected as a syntax error or, in some contexts, treated as an unknown string that breaks the configuration load. The only supported way to add non-operative text is the 'annotate' statement, which attaches a comment to a configuration element, but it does not disable that element. Therefore, commenting out lines cannot temporarily disable anything in the active configuration.
- ✗
set the configuration to a different group and remove apply-groups
Why it's wrong here
Moving the statements to a configuration group and removing the 'apply-groups' directive is a disruptive and indirect approach. Configuration groups are intended for reusing shared parameter sets across multiple locations, and removing 'apply-groups' would disable all group-defined settings, not just the specific statements you want to turn off. Additionally, the statements would still exist in the group under the 'groups' hierarchy, and you would later need to re-add the 'apply-groups' statement, which could affect other configuration sections. This approach introduces global side effects and does not pinpoint the targeted configuration that needs to be temporarily disabled.
Go deeper
Related to this question
About these practice questions
Courseiva writes every JN0-106 question from scratch — 326 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. 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.