JN0-106 User Interfaces Practice Question
Exhibit
system {
syslog {
console {
any warning;
}
file messages {
any any;
}
host 192.168.1.1 {
any critical;
}
}
}Refer to the exhibit. An administrator needs to ensure that all emergency (emerg) messages are logged to the console. Based on the configuration shown, which statement is correct?
⚠ Common exam trap
A common mix-up: candidates assume that configuring 'emerg' for a specific destination limits logging to that destination, but in JUNOS, the severity level applies independently to each destination, and all destinations with that severity configured will receive the messages.
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
✓
Emergency messages are logged to all destinations.
The configuration shown includes the 'any' facility and 'emerg' severity for the console, file, and remote host destinations. In JUNOS, when a severity level is set for a syslog destination, all messages of that severity and higher are logged. Since 'emerg' is the highest severity, it applies to all configured destinations, not just one.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Emergency messages are logged to the console only.
Why it's wrong here
The console is configured to receive messages at severity 'warning' or higher, and since 'emerg' is the most severe severity (level 0), it is included in that threshold. Therefore, emergency messages are logged to the console, but they are not restricted to the console: the file 'messages' uses 'any any' to capture all severities, and the remote host uses 'any critical' which also includes 'emerg'. Thus, saying 'console only' is false because all three destinations receive emergency messages.
- ✓
Emergency messages are logged to all destinations.
Why this is correct
Emergency messages are indeed logged to all destinations because each configured syslog target has a severity threshold that includes 'emerg'. The console's 'any warning' means it logs warning and everything more severe (emerg, alert, crit, err), the file 'messages' with 'any any' logs every severity including emerg, and the remote host with 'any critical' logs critical and above, which again includes emerg. Since all thresholds capture severity level 0, every destination receives emergency messages, making this the correct statement.
- ✗
Emergency messages are logged only to the file 'messages'.
Why it's wrong here
While it is true that the file 'messages' logs emergency messages because its severity is 'any' (all levels), the file is not the sole destination. The console's 'warning' severity threshold also captures emerg, and the remote host's 'critical' threshold does as well. Therefore, stating that emergency messages are logged 'only' to the file is incorrect, as they are also sent to the console and the remote host.
- ✗
Emergency messages are logged only to the remote host.
Why it's wrong here
The remote host does receive emergency messages because its severity level 'critical' includes more severe levels (emerg and alert), so emerg is within that range. However, the remote host is not an exclusive destination; the console with 'warning' threshold and the file with 'any' threshold both also log emergency messages. Consequently, the claim that emergency messages are logged only to the remote host is false, as they are also logged locally to the console and to the 'messages' file.
Go deeper
Related to this question
About these practice questions
This JN0-106 question is part of Courseiva's 156-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 →
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.