CompTIA Linux+ (XK0-005) — Question 37

A development team asks an engineer to guarantee the persistency of journal log files across system reboots. Which of the following commands would accomplish this task?

Answer options

Correct answer: C

Explanation

The correct answer is C because it modifies the journald configuration file to set the journal to persistent storage by replacing 'auto' with 'persistent'. The other options do not change the configuration to ensure persistence; option A restarts the service without modifying settings, option B does not alter the configuration at all, and option D only lists boots and restarts the service without ensuring logs are persisted.