An administrator wants to see the differences between the candidate configuration and the active configuration. Which command should be used?
`show | compare` is the correct Junos CLI command to display the differences between the candidate configuration and the active committed configuration. It outputs a unified diff-style output with `+` for lines added in the candidate and `-` for lines removed, making pending changes immediately visible. If there are no uncommitted changes, the command produces no output, but when changes exist, this is the definitive tool for reviewing them.
Why this answer
The 'show | compare' command displays the differences between the candidate configuration and the active (committed) configuration. This is the standard Junos method for reviewing uncommitted changes before committing them, as it outputs a diff-style output showing lines added, deleted, or modified.
Exam trap
The trap here is that candidates often confuse 'show | compare' with 'show configuration' or 'show | display set', thinking they all show differences, but only 'show | compare' provides the explicit diff output between candidate and active configurations.
How to eliminate wrong answers
Option A is wrong because 'show | display set' reformats the output of the 'show' command into 'set' commands, but does not compare configurations. Option B is wrong because 'run show configuration' is used to display the active configuration on the RE (Routing Engine) from the shell, not to compare candidate and active configurations. Option D is wrong because 'show configuration' displays the entire active configuration, not the differences between candidate and active.