CompTIA Cloud+ (CV0-002) — Question 1
A cloud administrator is receiving alerts that the disk on several systems is 90% full. Upon reviewing the systems, the administrator determines that the log directory is using 50% of the disk. The company has a 14-day retention policy for all logs. Which of the following is the BEST solution to implement to minimize future alerts?
Answer options
- A. Orchestrate a job to rotate the logs and upload to external storage.
- B. Delete any log files in the directory that are larger than 20MB.
- C. Archive the existing logs in the directory and upload to external storage.
- D. Add additional storage space to the log directory for the servers.
Correct answer: A
Explanation
The best solution is to orchestrate a job to rotate the logs and upload them to external storage, which ensures that log management aligns with the retention policy while freeing up disk space. Deleting large log files or archiving existing logs may not address ongoing log generation, and simply adding more storage does not resolve the underlying issue of excessive log usage.