Courseiva
User Interfaces →hardMultiple Choice

JN0-106 User Interfaces Practice Question

A junior admin tries to commit a configuration but receives a 'commit error: syntax error' message. They suspect a missing closing brace. Which CLI command helps identify the exact line with the error?

⚠ Common exam trap

Watch out — candidates often confuse 'show configuration' with a validation tool, not realizing it only displays the configuration text without any syntax checking, whereas 'commit check' is the dedicated command for identifying syntax errors before commit.

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

✓

commit check

The 'commit check' command validates the candidate configuration for syntax errors without committing it. When a syntax error like a missing closing brace is present, commit check outputs the exact line number and file where the error occurs, allowing the admin to locate and fix the issue before attempting a commit again.

Answer analysis

Option-by-option breakdown

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

  • ✓

    commit check

    Why this is correct

    Commit check is the correct command because it validates the candidate configuration against the Junos schema without committing it. It reports syntax errors with exact line numbers and hierarchy paths, allowing you to identify and fix the problematic statement. This dry-run validation is the safest first step because it never impacts active services and pinpoints the exact source of the failure.

  • ✗

    rollback 0

    Why it's wrong here

    Rollback 0 immediately reverts the candidate configuration to the currently active, last-committed configuration. While this is a useful recovery step if you want to abandon changes, it does not reveal what is wrong or validate anything; it simply discards the uncommitted edits that caused the error. If the error was in your new changes, rollback 0 will also remove those changes, so it is not a diagnostic tool.

  • ✗

    load merge

    Why it's wrong here

    Load merge loads a configuration file or terminal input and merges it into the existing candidate configuration, but it performs no syntax checking. It can introduce additional errors or leave the candidate in an inconsistent state, making it harder to find the original problem. The proper way to validate after a load is to run commit check, so load merge alone is not the answer.

  • ✗

    show configuration

    Why it's wrong here

    Show configuration displays the current candidate configuration in either text (hierarchical) or set format, giving you a readable view of the settings. However, it is purely a display command and does not parse or validate the statements against the Junos schema, so it will not report syntax errors or provide line numbers. It can help you manually spot obvious typos, but it cannot identify the specific error that caused the commit failure.

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 →

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.