Courseiva
Junos OS Fundamentals →mediumMultiple Choice

JN0-106 Junos OS Fundamentals Practice Question

An engineer needs to copy a configuration from one device to another. Which command should be used to export the current active configuration in a mergeable format?

⚠ Common exam trap

A common mix-up: candidates confuse 'display set' with 'display inheritance' or 'display json', thinking any output format can be used for merging, but only 'display set' produces a flat, mergeable command sequence that Junos can load directly.

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

✓

show configuration | display set

The 'show configuration | display set' command outputs the current active configuration as a series of 'set' commands, which can be directly copied and applied to another Junos device using 'load set terminal' or 'load merge'. This format is specifically designed for merging configurations, as it represents the configuration in a flat, non-hierarchical structure that Junos can parse incrementally.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    show configuration | display inheritance

    Why it's wrong here

    The 'display inheritance' option expands the configuration to show all inherited settings from configuration groups, adding comments that indicate the source of each inherited value. This output is hierarchical with annotations, not a flat series of 'set' commands, so it cannot be merged cleanly into another device. The comments and inherited values would cause conflicts or redundancy if loaded as configuration.

  • ✗

    show configuration | display json

    Why it's wrong here

    The 'display json' option converts the configuration tree into a JSON object, which is useful for programmatic processing but not for direct configuration loading. Junos configuration loader expects either hierarchical text or flat set commands, not JSON. It would require translation back to a supported format before merging, making it unsuitable for quick configuration copies.

  • ✓

    show configuration | display set

    Why this is correct

    The 'display set' option outputs every configuration statement as a standalone 'set' command, representing the absolute path to each leaf value. This format is the native interchange language for Junos configuration and can be directly merged with 'load merge' or used to compare configurations. It is the recommended way to copy configuration snippets between devices because it is unambiguous and portable.

  • ✗

    show configuration | save /var/tmp/config.txt

    Why it's wrong here

    The 'save /var/tmp/config.txt' command writes the current configuration to a file in the default hierarchical curly-brace format, not as set commands. While this file can be loaded later, it does not produce a set-command output that is the standard for merging configuration across devices. To save as set commands, you would need to combine 'save' with 'display set', but the bare 'save' command alone does not do that.

About these practice questions

This JN0-106 question is part of Courseiva's 326-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.