LPI 102-500 Practice Test 35
Question 340
An operations handoff identifies this problem: An engineer sees an old critical error and mistakes it for the cause of a current incident because timestamps and boot IDs were ignored. Which TWO complementary steps provide the best corrective action and its most direct diagnostic verification? Select TWO answers.
- Inspect `journalctl -u name.service --since ...`, `-p` selections, boot switches and the original message fields.
- Run `logrotate -d` or a controlled forced rotation, inspect the daemon's file handles, timestamps and retained compressed archives.
- Use journalctl unit, boot, time-window and priority filters to isolate the incident while preserving its surrounding context.
- Set appropriate system time with timedatectl, maintain UTC-based hardware RTC where supported, and keep the displayed timezone separate from clock synchronization.
- Conclude every error ever printed by journalctl happened in the current boot and avoid unit or timestamp constraints during troubleshooting.
Explanation
Correct Answers
A:Most direct verification evidence: Inspect `journalctl -u name.service --since .`, `-p` selections, boot switches and the original message fields. Linux principle: The systemd journal records structured metadata such as unit, boot identifier, severity and timestamps that support targeted evidence retrieval.
C:Recommended administrative action: Use journalctl unit, boot, time-window and priority filters to isolate the incident while preserving its surrounding context. Linux principle: The systemd journal records structured metadata such as unit, boot identifier, severity and timestamps that support targeted evidence retrieval.
Incorrect Answers
B:That option would run `logrotate -d` or a controlled forced rotation, inspect the daemon's file handles, timestamps and retained compressed archives, but it addresses a different concern. The systemd journal records structured metadata such as unit, boot identifier, severity and timestamps that support targeted evidence retrieval.
D:That option would set appropriate system time with timedatectl, maintain UTC-based hardware RTC where supported, and keep the displayed timezone separate from clock synchronization, but it addresses a different concern. The systemd journal records structured metadata such as unit, boot identifier, severity and timestamps that support targeted evidence retrieval.
E:This shortcut is unsafe for the present Linux issue: Conclude every error ever printed by journalctl happened in the current boot and avoid unit or timestamp constraints during troubleshooting. The systemd journal records structured metadata such as unit, boot identifier, severity and timestamps that support targeted evidence retrieval.
Question 341
A team maintaining a Linux host reports: A host writes authentication events to the wrong destination because an rsyslog facility selector was copied from a kernel-only rule. Which administrative step is the MOST appropriate way to resolve this issue? Select ONE best answer.
- Identify the installed mail transport agent and use its supported aliases, forward and submission interface while limiting work to the basic client objectives.
- Assume every facility label means the same thing and that writing a remote hostname in rsyslog.conf guarantees delivery despite transport failures.
- Configure a facility-and-priority selector with the intended action and a supported remote target, then test message routing and transport.
- Apply supported journal size or age retention and `journalctl --vacuum-*` controls; use `journalctl --directory` or `--file` to inspect saved journals.
Explanation
Correct Answer
C:Recommended administrative action: Configure a facility-and-priority selector with the intended action and a supported remote target, then test message routing and transport.
Incorrect Answers
A:That option would identify the installed mail transport agent and use its supported aliases, forward and submission interface while limiting work to the basic client objectives, but it addresses a different concern. Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport.
B:That option would assume every facility label means the same thing and that writing a remote hostname in rsyslog.conf guarantees delivery despite transport failures, but it addresses a different concern. Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport.
D:That option would apply supported journal size or age retention and `journalctl --vacuum-*` controls; use `journalctl --directory` or `--file` to inspect saved journals, but it addresses a different concern. Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport.
Question 342
While verifying a Linux change request, an engineer finds: A host writes authentication events to the wrong destination because an rsyslog facility selector was copied from a kernel-only rule. Which Linux behavior or technical principle BEST explains why the issue occurs? Select ONE best answer.
- Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport.
- Submitting a message to an MTA queue is not proof of final recipient delivery; queue status and remote response determine disposition.
- Printing systems maintain spooled job identities separately from source documents; deleting the original file does not reliably cancel a submitted print job.
- Assume every facility label means the same thing and that writing a remote hostname in rsyslog.conf guarantees delivery despite transport failures.
Explanation
Correct Answer
A:Relevant Linux operating principle: Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport.
Incorrect Answers
B:This alternative addresses Mail queue inspection and resend decisions, not the specific issue of Rsyslog facility priority and central forwarding: Submitting a message to an MTA queue is not proof of final recipient delivery; queue status and remote response determine disposition. Linux principle: Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport. Appropriate response: Configure a facility-and-priority selector with the intended action and a supported remote target, then test message routing and transport. Root-cause evidence: Inspect /etc/rsyslog.conf rules, generated `logger` messages, receiver logs and network or TLS transport state. Independent acceptance: A test event of the selected class appears at the required local or remote destination without unrelated messages being silently dropped.
C:This alternative addresses CUPS queue inspection and selective cancellation, not the specific issue of Rsyslog facility priority and central forwarding: Printing systems maintain spooled job identities separately from source documents; deleting the original file does not reliably cancel a submitted print job. Linux principle: Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport. Appropriate response: Configure a facility-and-priority selector with the intended action and a supported remote target, then test message routing and transport. Root-cause evidence: Inspect /etc/rsyslog.conf rules, generated `logger` messages, receiver logs and network or TLS transport state. Independent acceptance: A test event of the selected class appears at the required local or remote destination without unrelated messages being silently dropped.
D:That option would assume every facility label means the same thing and that writing a remote hostname in rsyslog.conf guarantees delivery despite transport failures, but it addresses a different concern. Independent acceptance: A test event of the selected class appears at the required local or remote destination without unrelated messages being silently dropped.
Question 343
A Linux administrator investigates the following system incident: A host writes authentication events to the wrong destination because an rsyslog facility selector was copied from a kernel-only rule. Which evidence or command result MOST directly tests the suspected root cause? Select ONE best answer.
- Assume every facility label means the same thing and that writing a remote hostname in rsyslog.conf guarantees delivery despite transport failures.
- Inspect `chronyc tracking`, `chronyc sources -v`, configured servers or pools, network reachability and timedatectl synchronization status.
- Inspect /etc/rsyslog.conf rules, generated `logger` messages, receiver logs and network or TLS transport state.
- Inspect installed service packages, process or systemd state, sendmail-compatible binary ownership and a simple local mail delivery test.
Explanation
Correct Answer
C:Most direct verification evidence: Inspect /etc/rsyslog.conf rules, generated `logger` messages, receiver logs and network or TLS transport state.
Incorrect Answers
A:This shortcut is unsafe for the present Linux issue: Assume every facility label means the same thing and that writing a remote hostname in rsyslog.conf guarantees delivery despite transport failures. It cannot establish a safe correction.
B:That option would inspect `chronyc tracking`, `chronyc sources -v`, configured servers or pools, network reachability and timedatectl synchronization status, but it addresses a different concern. Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport.
D:That option would inspect installed service packages, process or systemd state, sendmail-compatible binary ownership and a simple local mail delivery test, but it addresses a different concern. Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport.
Question 344
On a production Linux workstation or server, a technician observes: A host writes authentication events to the wrong destination because an rsyslog facility selector was copied from a kernel-only rule. Which observed outcome BEST confirms a successful and properly scoped correction? Select ONE best answer.
- New entries flow to the active logfile after rotation and archived logs meet retention and space limits without losing needed audit evidence.
- The host tracks an approved source with acceptable measured offset and remains time-synchronized under representative network conditions.
- A test event of the selected class appears at the required local or remote destination without unrelated messages being silently dropped.
- Assume every facility label means the same thing and that writing a remote hostname in rsyslog.conf guarantees delivery despite transport failures.
Explanation
Correct Answer
C:Observable acceptance criterion: A test event of the selected class appears at the required local or remote destination without unrelated messages being silently dropped.
Incorrect Answers
A:This alternative addresses Logrotate retention, compression and daemon reopen, not the specific issue of Rsyslog facility priority and central forwarding: New entries flow to the active logfile after rotation and archived logs meet retention and space limits without losing needed audit evidence. Linux principle: Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport. Appropriate response: Configure a facility-and-priority selector with the intended action and a supported remote target, then test message routing and transport. Root-cause evidence: Inspect /etc/rsyslog.conf rules, generated `logger` messages, receiver logs and network or TLS transport state. Independent acceptance: A test event of the selected class appears at the required local or remote destination without unrelated messages being silently dropped.
B:This alternative addresses Chrony synchronization and source state, not the specific issue of Rsyslog facility priority and central forwarding: The host tracks an approved source with acceptable measured offset and remains time-synchronized under representative network conditions. Linux principle: Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport. Appropriate response: Configure a facility-and-priority selector with the intended action and a supported remote target, then test message routing and transport. Root-cause evidence: Inspect /etc/rsyslog.conf rules, generated `logger` messages, receiver logs and network or TLS transport state. Independent acceptance: A test event of the selected class appears at the required local or remote destination without unrelated messages being silently dropped.
D:This shortcut is unsafe for the present Linux issue: Assume every facility label means the same thing and that writing a remote hostname in rsyslog.conf guarantees delivery despite transport failures. Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport.
Question 345
During an LPIC-1 practice lab, the operator encounters this condition: A host writes authentication events to the wrong destination because an rsyslog facility selector was copied from a kernel-only rule. Which misleading assumption MOST directly contributes to this failure and should be rejected? Select ONE best answer.
- Assume starting chronyd guarantees accurate time even when all configured NTP peers are unreachable or unselected.
- Assume changing a log filename automatically redirects every process's open descriptor and that logrotate compresses logs even with no active rule.
- Assume every facility label means the same thing and that writing a remote hostname in rsyslog.conf guarantees delivery despite transport failures.
- Assume saving /etc/aliases updates every running MTA's alias map immediately and that no delivery test is necessary.
Explanation
Correct Answer
C:Reject this specific misconception: Assume every facility label means the same thing and that writing a remote hostname in rsyslog.conf guarantees delivery despite transport failures. It incorrectly assumes behavior that conflicts with the observed Linux conditions.
Incorrect Answers
A:That option would assume starting chronyd guarantees accurate time even when all configured NTP peers are unreachable or unselected, but it addresses a different concern. Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport.
B:That option would assume changing a log filename automatically redirects every process's open descriptor and that logrotate compresses logs even with no active rule, but it addresses a different concern. Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport.
D:That option would assume saving /etc/aliases updates every running MTA's alias map immediately and that no delivery test is necessary, but it addresses a different concern. Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport.
Question 346
A helpdesk escalation describes this Linux behavior: A central syslog collector receives no messages after a firewall change although the sender still logs locally. Which administrative step is the MOST appropriate way to resolve this issue? Select ONE best answer.
- Configure a facility-and-priority selector with the intended action and a supported remote target, then test message routing and transport.
- Configure a supported per-user ~/.forward destination and validate permissions and loop prevention, or select an approved server-side forwarding mechanism.
- Identify the installed mail transport agent and use its supported aliases, forward and submission interface while limiting work to the basic client objectives.
- Assume every facility label means the same thing and that writing a remote hostname in rsyslog.conf guarantees delivery despite transport failures.
Explanation
Correct Answer
A:Recommended administrative action: Configure a facility-and-priority selector with the intended action and a supported remote target, then test message routing and transport.
Incorrect Answers
B:That option would configure a supported per-user ~/.forward destination and validate permissions and loop prevention, or select an approved server-side forwarding mechanism, but it addresses a different concern. Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport.
C:This alternative addresses MTA implementation recognition and basic client scope, not the specific issue of Rsyslog facility priority and central forwarding: Identify the installed mail transport agent and use its supported aliases, forward and submission interface while limiting work to the basic client objectives.
D:This shortcut is unsafe for the present Linux issue: Assume every facility label means the same thing and that writing a remote hostname in rsyslog.conf guarantees delivery despite transport failures. It cannot establish a safe correction.
Question 347
An operations handoff identifies this problem: A central syslog collector receives no messages after a firewall change although the sender still logs locally. Which Linux behavior or technical principle BEST explains why the issue occurs? Select ONE best answer.
- Printing systems maintain spooled job identities separately from source documents; deleting the original file does not reliably cancel a submitted print job.
- Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport.
- Linux distinguishes its running system clock from the hardware real-time clock, while the timezone transforms the displayed civil time without changing the UTC instant.
- Assume every facility label means the same thing and that writing a remote hostname in rsyslog.conf guarantees delivery despite transport failures.
Explanation
Correct Answer
B:Relevant Linux operating principle: Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport.
Incorrect Answers
A:This alternative addresses CUPS queue inspection and selective cancellation, not the specific issue of Rsyslog facility priority and central forwarding: Printing systems maintain spooled job identities separately from source documents; deleting the original file does not reliably cancel a submitted print job. Linux principle: Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport. Appropriate response: Configure a facility-and-priority selector with the intended action and a supported remote target, then test message routing and transport. Root-cause evidence: Inspect /etc/rsyslog.conf rules, generated `logger` messages, receiver logs and network or TLS transport state. Independent acceptance: A test event of the selected class appears at the required local or remote destination without unrelated messages being silently dropped.
C:This alternative addresses System clock versus real-time clock and UTC policy, not the specific issue of Rsyslog facility priority and central forwarding: Linux distinguishes its running system clock from the hardware real-time clock, while the timezone transforms the displayed civil time without changing the UTC instant. Linux principle: Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport. Appropriate response: Configure a facility-and-priority selector with the intended action and a supported remote target, then test message routing and transport. Root-cause evidence: Inspect /etc/rsyslog.conf rules, generated `logger` messages, receiver logs and network or TLS transport state. Independent acceptance: A test event of the selected class appears at the required local or remote destination without unrelated messages being silently dropped.
D:This shortcut is unsafe for the present Linux issue: Assume every facility label means the same thing and that writing a remote hostname in rsyslog.conf guarantees delivery despite transport failures. It cannot establish a safe correction. Linux principle: Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport.
Question 348
A team maintaining a Linux host reports: A central syslog collector receives no messages after a firewall change although the sender still logs locally. Which evidence or command result MOST directly tests the suspected root cause? Select ONE best answer.
- Assume every facility label means the same thing and that writing a remote hostname in rsyslog.conf guarantees delivery despite transport failures.
- Compare `timedatectl status`, `hwclock --show` and `date -u`, and inspect whether NTP synchronization and local-RTC policies align.
- Inspect installed service packages, process or systemd state, sendmail-compatible binary ownership and a simple local mail delivery test.
- Inspect /etc/rsyslog.conf rules, generated `logger` messages, receiver logs and network or TLS transport state.
Explanation
Correct Answer
D:Most direct verification evidence: Inspect /etc/rsyslog.conf rules, generated `logger` messages, receiver logs and network or TLS transport state.
Incorrect Answers
A:This shortcut is unsafe for the present Linux issue: Assume every facility label means the same thing and that writing a remote hostname in rsyslog.conf guarantees delivery despite transport failures. It cannot establish a safe correction. Linux principle: Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport. Appropriate response: Configure a facility-and-priority selector with the intended action and a supported remote target, then test message routing and transport. Root-cause evidence: Inspect /etc/rsyslog.conf rules, generated `logger` messages, receiver logs and network or TLS transport state. Independent acceptance: A test event of the selected class appears at the required local or remote destination without unrelated messages being silently dropped.
B:That option would compare `timedatectl status`, `hwclock --show` and `date -u`, and inspect whether NTP synchronization and local-RTC policies align, but it addresses a different concern. Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport.
C:This alternative addresses MTA implementation recognition and basic client scope, not the specific issue of Rsyslog facility priority and central forwarding: Inspect installed service packages, process or systemd state, sendmail-compatible binary ownership and a simple local mail delivery test.
Question 349
While verifying a Linux change request, an engineer finds: A central syslog collector receives no messages after a firewall change although the sender still logs locally. Which observed outcome BEST confirms a successful and properly scoped correction? Select ONE best answer.
- Clock values stay consistent over a controlled reboot and displayed local time matches the configured zone while UTC remains stable.
- Retained journal data stays readable within approved storage limits and recovered records can be analyzed from their copied location.
- A test event of the selected class appears at the required local or remote destination without unrelated messages being silently dropped.
- Assume every facility label means the same thing and that writing a remote hostname in rsyslog.conf guarantees delivery despite transport failures.
Explanation
Correct Answer
C:Observable acceptance criterion: A test event of the selected class appears at the required local or remote destination without unrelated messages being silently dropped.
Incorrect Answers
A:This alternative addresses System clock versus real-time clock and UTC policy, not the specific issue of Rsyslog facility priority and central forwarding: Clock values stay consistent over a controlled reboot and displayed local time matches the configured zone while UTC remains stable. Linux principle: Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport. Appropriate response: Configure a facility-and-priority selector with the intended action and a supported remote target, then test message routing and transport. Root-cause evidence: Inspect /etc/rsyslog.conf rules, generated `logger` messages, receiver logs and network or TLS transport state. Independent acceptance: A test event of the selected class appears at the required local or remote destination without unrelated messages being silently dropped.
B:This alternative addresses Journal vacuuming and offline rescue analysis, not the specific issue of Rsyslog facility priority and central forwarding: Retained journal data stays readable within approved storage limits and recovered records can be analyzed from their copied location. Linux principle: Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport. Appropriate response: Configure a facility-and-priority selector with the intended action and a supported remote target, then test message routing and transport. Root-cause evidence: Inspect /etc/rsyslog.conf rules, generated `logger` messages, receiver logs and network or TLS transport state. Independent acceptance: A test event of the selected class appears at the required local or remote destination without unrelated messages being silently dropped.
D:This shortcut is unsafe for the present Linux issue: Assume every facility label means the same thing and that writing a remote hostname in rsyslog.conf guarantees delivery despite transport failures. Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport.
Question 350
A Linux administrator investigates the following system incident: A central syslog collector receives no messages after a firewall change although the sender still logs locally. Which TWO complementary steps provide the best corrective action and its most direct diagnostic verification? Select TWO answers.
- Review queue IDs, delivery attempts, logs, DNS or transport errors and results after a controlled retry.
- Assume every facility label means the same thing and that writing a remote hostname in rsyslog.conf guarantees delivery despite transport failures.
- Configure a facility-and-priority selector with the intended action and a supported remote target, then test message routing and transport.
- Identify the installed mail transport agent and use its supported aliases, forward and submission interface while limiting work to the basic client objectives.
- Inspect /etc/rsyslog.conf rules, generated `logger` messages, receiver logs and network or TLS transport state.
Explanation
Correct Answers
C:Recommended administrative action: Configure a facility-and-priority selector with the intended action and a supported remote target, then test message routing and transport. Linux principle: Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport.
E:Most direct verification evidence: Inspect /etc/rsyslog.conf rules, generated `logger` messages, receiver logs and network or TLS transport state. Linux principle: Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport.
Incorrect Answers
A:That option would review queue IDs, delivery attempts, logs, DNS or transport errors and results after a controlled retry, but it addresses a different concern. Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport.
B:This shortcut is unsafe for the present Linux issue: Assume every facility label means the same thing and that writing a remote hostname in rsyslog.conf guarantees delivery despite transport failures. Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport.
D:This alternative addresses MTA implementation recognition and basic client scope, not the specific issue of Rsyslog facility priority and central forwarding: Identify the installed mail transport agent and use its supported aliases, forward and submission interface while limiting work to the basic client objectives. Linux principle: Rsyslog rules match syslog facilities and severities, and remote forwarding depends on correct action syntax and reachable transport.