Courseiva
hardMultiple ChoiceObjective-mapped

XK0-006 Practice Question: Refer to the exhibit

Network Topology
-rw-rr# df -h /var/log# ls -la /var/log/messages*# cat /etc/logrotate.d/syslog/var/log/messagesrotate 4size 100Mmissingokcompresspostrotate/usr/bin/systemctl restart syslog.serviceendscript

Refer to the exhibit. A system administrator notices that /var/log is nearly full. Which configuration change would resolve the issue and prevent recurrence?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Decrease the size threshold from 100M to 50M.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Decrease the size threshold from 100M to 50M.

    Why this is correct

    Smaller size triggers rotation sooner, keeping log files smaller and freeing space.

  • Add the 'delaycompress' option to the logrotate config.

    Why it's wrong here

    Delaycompress does not reduce disk usage; it delays compression.

  • Remove the postrotate script to avoid restarting syslog.

    Why it's wrong here

    Removing the script would not free space; logs would still accumulate.

  • Increase the rotate count from 4 to 7.

    Why it's wrong here

    Rotating more files would increase disk usage, not reduce it.

Visual reference

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

About these practice questions

Courseiva writes every XK0-006 question from scratch — 979 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This XK0-006 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the XK0-006 exam.