CompTIA Linux+ XK0-005 Practice Question

A Linux system administrator notices that the journal logs on a production server are not persistent across reboots, which is necessary for troubleshooting ongoing issues that occur after system restarts. What's the BEST step the administrator should take to ensure journal logs are retained after a reboot?

  • Reboot the server to trigger a new instance of systemd-journald, which will then keep the logs.

  • Implement logrotate on /run/log/journal to ensure the logs are preserved after reboots.

  • Modify the 'Storage=' setting in '/etc/systemd/journald.conf' to 'persistent' and reboot the server.

  • Create the /var/log/journal directory and restart the systemd-journald service.

CompTIA Linux+ XK0-005
Troubleshooting
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

SAVE $45
Bash, the Crucial Exams Chat Bot
AI Bot