Prepare for the CompTIA Cloud+ Certification with a comprehensive practice test. Test your knowledge on cloud architecture, deployment, security, and troubleshooting with detailed questions and answers. Enhance your readiness today!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


What is the best solution to minimize alerts when a log directory is consuming 50% of the disk space?

  1. Orchestrate a job to rotate the logs and upload to external storage.

  2. Delete any log files in the directory that are larger than 20MB.

  3. Archive the existing logs in the directory and upload to external storage.

  4. Add additional storage space to the log directory for the servers.

The correct answer is: Orchestrate a job to rotate the logs and upload to external storage.

Choosing to orchestrate a job to rotate the logs and upload to external storage is an effective solution for managing disk space that is being consumed by log files. This approach allows for regular maintenance of log files by automatically handling their archival or storage when disk space reaches a certain threshold. Log rotation helps in keeping only the most current logs readily accessible while old logs are either compressed and saved or moved to external storage, reducing the overall burden on disk space. By uploading to external storage, you further mitigate the risk of running out of disk space while ensuring that historical data is still available for future reference and analysis. This proactive management strategy not only minimizes the number of alerts triggered by disk space issues but also ensures compliance with data retention policies. Other options may offer temporary relief or solve specific problems, but they do not address the ongoing management of log files as effectively as the chosen solution. For instance, deleting large log files could lead to the loss of valuable data, and simply adding storage may not relieve the underlying issue of log accumulation.