CompTIA Server+ SK0-005 Practice Question

A systems administrator is alerted that a critical Linux application server is running low on disk space on the root partition. Upon investigation, the administrator finds that a single log file, /var/log/app/application.log, has grown to over 100 GB. The administrator needs to implement a long-term, automated solution to prevent this from recurring while preserving recent log data for troubleshooting. Which of the following is the MOST effective solution?

  • Modify the application's configuration to send all log output to /dev/null.

  • Write a cron job that runs a script nightly to delete the application.log file.

  • Configure a log rotation utility to schedule the regular archiving and compression of the log file.

  • Provision a larger disk for the server and move the /var/log directory to the new partition.

CompTIA Server+ SK0-005
Server Administration
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 $47
$390.00 $343.00
SAVE $53
CompTIA Server+ Voucher with Retake
v5 / SK0-005
Includes Retake
$439.00 $386.00
Bash, the Crucial Exams Chat Bot
AI Bot