CompTIA Linux+ (XK0-005) — Question 287

The systemd logs are disappearing after a restart, even though the free disk space is adequate. Which of the following is the cause of this behavior?

Answer options

Correct answer: A

Explanation

The correct answer is A because setting Storage=volatile in the journald configuration means logs are stored in memory and lost on reboot. Option B is incorrect since the disk space is adequate, and option C is not relevant as the service being masked does not affect log storage in this context. Option D is also incorrect because the issue is specifically related to the volatile storage setting, not the free space in /tmp.