Question 330
The action Enable persistent journal storage through Storage=persistent and a suitable /var/log/journal configuration. was applied for this goal: A host loses systemd journal records across a reboot because storage is volatile. Which observation provides the most direct acceptance evidence?
- journalctl --disk-usage stays within expected limits after journal rotation/maintenance.
- journalctl -b -1 can show records from the previous boot when records exist and storage persists.
- journalctl --disk-usage reports reduced use while recent required records remain accessible.
- The resulting output includes the target service errors and excludes unrelated services.
Explanation
Correct Answer
B:journalctl -b -1 can show records from the previous boot when records exist and storage persists. This checks the effect of Enable persistent journal storage through Storage=persistent and a suitable /var/log/journal configuration. against the stated operational goal.
Incorrect Answers
A:That observation checks A host must limit the space that persistent systemd journal files can occupy. In this scenario it does not demonstrate Enable persistent journal storage through Storage=persistent and a suitable /var/log/journal configuration.; the relevant evidence must establish journalctl -b -1 can show records from the previous boot when records exist and storage persists.
C:That observation checks A systemd journal fills its configured disk quota and old archived journal data should be pruned. In this scenario it does not demonstrate Enable persistent journal storage through Storage=persistent and a suitable /var/log/journal configuration.; the relevant evidence must establish journalctl -b -1 can show records from the previous boot when records exist and storage persists.
D:That observation checks A service fails at startup and the admin needs only its systemd journal messages. In this scenario it does not demonstrate Enable persistent journal storage through Storage=persistent and a suitable /var/log/journal configuration.; the relevant evidence must establish journalctl -b -1 can show records from the previous boot when records exist and storage persists.
Question 331
A team is validating its implementation of this requirement: A host loses systemd journal records across a reboot because storage is volatile. Which observed mistake most specifically identifies that the intended system logging behavior has NOT been met?
- The operator greps for the word error and misses critical messages with other text.
- The script uses echo, so no message reaches the configured log collector.
- Only current-boot logs are visible after every reboot despite an incident-retention requirement.
- A full journal dump hides the failure among unrelated application messages.
Explanation
Correct Answer
C:Only current-boot logs are visible after every reboot despite an incident-retention requirement. This shows the requested behavior is absent, so the deployment needs the correction: Enable persistent storage and confirm disk-backed journals and disk space.
Incorrect Answers
A:That symptom concerns An incident responder needs journal records at warning severity or higher but not informational noise. This concerns a separate requirement, not the one being tested. The relevant failure is Only current-boot logs are visible after every reboot despite an incident-retention requirement. The current requirement calls for a different check.
B:That symptom concerns A script should emit a tagged diagnostic entry through the system's logging facility rather than merely printing to stdout. This concerns a separate requirement, not the one being tested. The relevant failure is Only current-boot logs are visible after every reboot despite an incident-retention requirement. The current requirement calls for a different check.
D:That symptom concerns A service fails at startup and the admin needs only its systemd journal messages. This concerns a separate requirement, not the one being tested. The relevant failure is Only current-boot logs are visible after every reboot despite an incident-retention requirement. The current requirement calls for a different check.
Question 332
During validation, this problem was found: Only current-boot logs are visible after every reboot despite an incident-retention requirement. The original goal was: A host loses systemd journal records across a reboot because storage is volatile. Which targeted correction best resolves it?
- Set journald's own storage limit and verify the daemon picks up the setting.
- Use logger with an appropriate tag/priority and validate the configured routing.
- Filter journal entries by the failing systemd unit.
- Enable persistent storage and confirm disk-backed journals and disk space.
Explanation
Correct Answer
D:Enable persistent storage and confirm disk-backed journals and disk space. It directly addresses the observed symptom: Only current-boot logs are visible after every reboot despite an incident-retention requirement. The relevant mechanism is Persistent journald storage retains records on disk, while volatile storage under /run is lost at reboot.
Incorrect Answers
A:This fix is aimed at A journald setting is placed in /etc/logrotate.conf, so the journal quota does not change. and would be relevant if A host must limit the space that persistent systemd journal files can occupy. The incident instead states Only current-boot logs are visible after every reboot despite an incident-retention requirement. and needs Enable persistent storage and confirm disk-backed journals and disk space.
B:This fix is aimed at The script uses echo, so no message reaches the configured log collector. and would be relevant if A script should emit a tagged diagnostic entry through the system's logging facility rather than merely printing to stdout. The incident instead states Only current-boot logs are visible after every reboot despite an incident-retention requirement. and needs Enable persistent storage and confirm disk-backed journals and disk space.
C:This fix is aimed at A full journal dump hides the failure among unrelated application messages. and would be relevant if A service fails at startup and the admin needs only its systemd journal messages. The incident instead states Only current-boot logs are visible after every reboot despite an incident-retention requirement. and needs Enable persistent storage and confirm disk-backed journals and disk space.
Question 333
A Linux administrator faces this requirement: A systemd journal fills its configured disk quota and old archived journal data should be pruned. Which specific action is the best direct solution?
- Use journalctl --vacuum-time=7d or --vacuum-size=... on archived journal files, as policy permits.
- Add a suitable logrotate policy under /etc/logrotate.d/ and test its configuration.
- Use journalctl --directory=/mnt/recovered-journal with an appropriate exported journal directory.
- Use journalctl -p warning (or an equivalent explicit priority range).
Explanation
Correct Answer
A:Use journalctl --vacuum-time=7d or --vacuum-size=... on archived journal files, as policy permits. The mechanism is: Journal vacuum operations remove eligible archived files; active files may require rotation first.
Incorrect Answers
B:Add a suitable logrotate policy under /etc/logrotate.d/ and test its configuration. That operation is designed for the different case: A web server's large log file needs periodic rotation, compression and retention. It does not perform the specific action required here: Use journalctl --vacuum-time=7d or --vacuum-size=... on archived journal files, as policy permits.
C:Use journalctl --directory=/mnt/recovered-journal with an appropriate exported journal directory. That operation is designed for the different case: A responder has an offline copy of a host's journal directory and wants to inspect it without booting that host. It does not perform the specific action required here: Use journalctl --vacuum-time=7d or --vacuum-size=... on archived journal files, as policy permits.
D:Use journalctl -p warning (or an equivalent explicit priority range). That operation is designed for the different case: An incident responder needs journal records at warning severity or higher but not informational noise. It does not perform the specific action required here: Use journalctl --vacuum-time=7d or --vacuum-size=... on archived journal files, as policy permits.
Question 334
The engineer proposes this implementation: Use journalctl --vacuum-time=7d or --vacuum-size=... on archived journal files, as policy permits. The requirement is: A systemd journal fills its configured disk quota and old archived journal data should be pruned. Which technical explanation best supports the proposed action?
- logger submits entries to the system logging infrastructure, where tags and priorities can be routed or filtered.
- Journal vacuum operations remove eligible archived files; active files may require rotation first.
- The -u filter selects records linked to a unit rather than dumping all journal activity.
- logrotate applies per-log size/time rules, rotates files and can compress retained copies.
Explanation
Correct Answer
B:Journal vacuum operations remove eligible archived files; active files may require rotation first. It specifically supports the proposed action of Use journalctl --vacuum-time=7d or --vacuum-size=... on archived journal files, as policy permits. for the requirement described.
Incorrect Answers
A:This explains another Linux operation, namely Run logger -t appcheck 'message' or use an equivalent syslog API., where logger submits entries to the system logging infrastructure, where tags and priorities can be routed or filtered. It does not explain why Use journalctl --vacuum-time=7d or --vacuum-size=... on archived journal files, as policy permits. satisfies the stated condition.
C:This explains another Linux operation, namely Run journalctl -u service-name with the exact systemd unit name., where The -u filter selects records linked to a unit rather than dumping all journal activity. It does not explain why Use journalctl --vacuum-time=7d or --vacuum-size=... on archived journal files, as policy permits. satisfies the stated condition.
D:This explains another Linux operation, namely Add a suitable logrotate policy under /etc/logrotate.d/ and test its configuration., where logrotate applies per-log size/time rules, rotates files and can compress retained copies. It does not explain why Use journalctl --vacuum-time=7d or --vacuum-size=... on archived journal files, as policy permits. satisfies the stated condition.
Question 335
The action Use journalctl --vacuum-time=7d or --vacuum-size=... on archived journal files, as policy permits. was applied for this goal: A systemd journal fills its configured disk quota and old archived journal data should be pruned. Which observation provides the most direct acceptance evidence?
- journalctl -b -1 can show records from the previous boot when records exist and storage persists.
- The output starts at the chosen boundary and excludes earlier events.
- journalctl --disk-usage reports reduced use while recent required records remain accessible.
- The resulting output includes the target service errors and excludes unrelated services.
Explanation
Correct Answer
C:journalctl --disk-usage reports reduced use while recent required records remain accessible. This checks the effect of Use journalctl --vacuum-time=7d or --vacuum-size=... on archived journal files, as policy permits. against the stated operational goal.
Incorrect Answers
A:That observation checks A host loses systemd journal records across a reboot because storage is volatile. In this scenario it does not demonstrate Use journalctl --vacuum-time=7d or --vacuum-size=... on archived journal files, as policy permits.; the relevant evidence must establish journalctl --disk-usage reports reduced use while recent required records remain accessible.
B:That observation checks An admin must inspect log activity only since yesterday at 18:00. In this scenario it does not demonstrate Use journalctl --vacuum-time=7d or --vacuum-size=... on archived journal files, as policy permits.; the relevant evidence must establish journalctl --disk-usage reports reduced use while recent required records remain accessible.
D:That observation checks A service fails at startup and the admin needs only its systemd journal messages. In this scenario it does not demonstrate Use journalctl --vacuum-time=7d or --vacuum-size=... on archived journal files, as policy permits.; the relevant evidence must establish journalctl --disk-usage reports reduced use while recent required records remain accessible.
Question 336
A team is validating its implementation of this requirement: A systemd journal fills its configured disk quota and old archived journal data should be pruned. Which observed mistake most specifically identifies that the intended system logging behavior has NOT been met?
- The administrator only truncates the active log and loses retention or breaks file handling.
- Only current-boot logs are visible after every reboot despite an incident-retention requirement.
- The script uses echo, so no message reaches the configured log collector.
- The operator deletes active journal files manually, risking integrity and service disruption.
Explanation
Correct Answer
D:The operator deletes active journal files manually, risking integrity and service disruption. This shows the requested behavior is absent, so the deployment needs the correction: Rotate if needed and apply journalctl vacuum within the retention policy.
Incorrect Answers
A:That symptom concerns A web server's large log file needs periodic rotation, compression and retention. This concerns a separate requirement, not the one being tested. The relevant failure is The operator deletes active journal files manually, risking integrity and service disruption. The current requirement calls for a different check.
B:That symptom concerns A host loses systemd journal records across a reboot because storage is volatile. This concerns a separate requirement, not the one being tested. The relevant failure is The operator deletes active journal files manually, risking integrity and service disruption. The current requirement calls for a different check.
C:That symptom concerns A script should emit a tagged diagnostic entry through the system's logging facility rather than merely printing to stdout. This concerns a separate requirement, not the one being tested. The relevant failure is The operator deletes active journal files manually, risking integrity and service disruption. The current requirement calls for a different check.
Question 337
During validation, this problem was found: The operator deletes active journal files manually, risking integrity and service disruption. The original goal was: A systemd journal fills its configured disk quota and old archived journal data should be pruned. Which targeted correction best resolves it?
- Rotate if needed and apply journalctl vacuum within the retention policy.
- Use logger with an appropriate tag/priority and validate the configured routing.
- Change the rsyslog action to TCP forwarding and verify transport reachability.
- Filter journal entries by the failing systemd unit.
Explanation
Correct Answer
A:Rotate if needed and apply journalctl vacuum within the retention policy. It directly addresses the observed symptom: The operator deletes active journal files manually, risking integrity and service disruption. The relevant mechanism is Journal vacuum operations remove eligible archived files; active files may require rotation first.
Incorrect Answers
B:This fix is aimed at The script uses echo, so no message reaches the configured log collector. and would be relevant if A script should emit a tagged diagnostic entry through the system's logging facility rather than merely printing to stdout. The incident instead states The operator deletes active journal files manually, risking integrity and service disruption. and needs Rotate if needed and apply journalctl vacuum within the retention policy.
C:This fix is aimed at The admin uses single-at forwarding and the collector listens only for TCP messages. and would be relevant if A syslog administrator must send local rsyslog messages to a central collector over TCP rather than UDP. The incident instead states The operator deletes active journal files manually, risking integrity and service disruption. and needs Rotate if needed and apply journalctl vacuum within the retention policy.
D:This fix is aimed at A full journal dump hides the failure among unrelated application messages. and would be relevant if A service fails at startup and the admin needs only its systemd journal messages. The incident instead states The operator deletes active journal files manually, risking integrity and service disruption. and needs Rotate if needed and apply journalctl vacuum within the retention policy.
Question 338
A Linux administrator faces this requirement: A responder has an offline copy of a host's journal directory and wants to inspect it without booting that host. Which specific action is the best direct solution?
- Set SystemMaxUse in the active journald.conf storage configuration.
- Use journalctl --directory=/mnt/recovered-journal with an appropriate exported journal directory.
- Enable persistent journal storage through Storage=persistent and a suitable /var/log/journal configuration.
- Run journalctl -u service-name with the exact systemd unit name.
Explanation
Correct Answer
B:Use journalctl --directory=/mnt/recovered-journal with an appropriate exported journal directory. The mechanism is: journalctl can read a specified journal directory rather than only the current host's default store.
Incorrect Answers
A:Set SystemMaxUse in the active journald.conf storage configuration. That operation is designed for the different case: A host must limit the space that persistent systemd journal files can occupy. It does not perform the specific action required here: Use journalctl --directory=/mnt/recovered-journal with an appropriate exported journal directory.
C:Enable persistent journal storage through Storage=persistent and a suitable /var/log/journal configuration. That operation is designed for the different case: A host loses systemd journal records across a reboot because storage is volatile. It does not perform the specific action required here: Use journalctl --directory=/mnt/recovered-journal with an appropriate exported journal directory.
D:Run journalctl -u service-name with the exact systemd unit name. That operation is designed for the different case: A service fails at startup and the admin needs only its systemd journal messages. It does not perform the specific action required here: Use journalctl --directory=/mnt/recovered-journal with an appropriate exported journal directory.
Question 339
The engineer proposes this implementation: Use journalctl --directory=/mnt/recovered-journal with an appropriate exported journal directory. The requirement is: A responder has an offline copy of a host's journal directory and wants to inspect it without booting that host. Which technical explanation best supports the proposed action?
- Journal vacuum operations remove eligible archived files; active files may require rotation first.
- journald quota settings bound disk usage for persistent journals rather than relying on application logrotate.
- journalctl can read a specified journal directory rather than only the current host's default store.
- Persistent journald storage retains records on disk, while volatile storage under /run is lost at reboot.
Explanation
Correct Answer
C:journalctl can read a specified journal directory rather than only the current host's default store. It specifically supports the proposed action of Use journalctl --directory=/mnt/recovered-journal with an appropriate exported journal directory. for the requirement described.
Incorrect Answers
A:This explains another Linux operation, namely Use journalctl --vacuum-time=7d or --vacuum-size=... on archived journal files, as policy permits., where Journal vacuum operations remove eligible archived files; active files may require rotation first. It does not explain why Use journalctl --directory=/mnt/recovered-journal with an appropriate exported journal directory. satisfies the stated condition.
B:This explains another Linux operation, namely Set SystemMaxUse in the active journald.conf storage configuration., where journald quota settings bound disk usage for persistent journals rather than relying on application logrotate. It does not explain why Use journalctl --directory=/mnt/recovered-journal with an appropriate exported journal directory. satisfies the stated condition.
D:This explains another Linux operation, namely Enable persistent journal storage through Storage=persistent and a suitable /var/log/journal configuration., where Persistent journald storage retains records on disk, while volatile storage under /run is lost at reboot. It does not explain why Use journalctl --directory=/mnt/recovered-journal with an appropriate exported journal directory. satisfies the stated condition.
Question 340
The action Use journalctl --directory=/mnt/recovered-journal with an appropriate exported journal directory. was applied for this goal: A responder has an offline copy of a host's journal directory and wants to inspect it without booting that host. Which observation provides the most direct acceptance evidence?
- The resulting output includes the target service errors and excludes unrelated services.
- journalctl --disk-usage stays within expected limits after journal rotation/maintenance.
- The output starts at the chosen boundary and excludes earlier events.
- The recovered entries appear without changing the live host's journal configuration.
Explanation
Correct Answer
D:The recovered entries appear without changing the live host's journal configuration. This checks the effect of Use journalctl --directory=/mnt/recovered-journal with an appropriate exported journal directory. against the stated operational goal.
Incorrect Answers
A:That observation checks A service fails at startup and the admin needs only its systemd journal messages. In this scenario it does not demonstrate Use journalctl --directory=/mnt/recovered-journal with an appropriate exported journal directory.; the relevant evidence must establish The recovered entries appear without changing the live host's journal configuration.
B:That observation checks A host must limit the space that persistent systemd journal files can occupy. In this scenario it does not demonstrate Use journalctl --directory=/mnt/recovered-journal with an appropriate exported journal directory.; the relevant evidence must establish The recovered entries appear without changing the live host's journal configuration.
C:That observation checks An admin must inspect log activity only since yesterday at 18:00. In this scenario it does not demonstrate Use journalctl --directory=/mnt/recovered-journal with an appropriate exported journal directory.; the relevant evidence must establish The recovered entries appear without changing the live host's journal configuration.
LPI Level 1 (102-500) Practice Tests