CV0-002 · Question #204
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 co
The correct answer is A. Orchestrate a job to rotate the logs and upload to external storage.. To minimize future disk full alerts caused by log files while adhering to a 14-day retention policy, the administrator should automate log rotation and offload to external storage.
Question
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?
Options
- AOrchestrate a job to rotate the logs and upload to external storage.
- BDelete any log files in the directory that are larger than 20MB.
- CArchive the existing logs in the directory and upload to external storage.
- DAdd additional storage space to the log directory for the servers.
How the community answered
(31 responses)- A84% (26)
- B3% (1)
- C6% (2)
- D6% (2)
Why each option
To minimize future disk full alerts caused by log files while adhering to a 14-day retention policy, the administrator should automate log rotation and offload to external storage.
Orchestrating a job to rotate logs automatically manages log file sizes by creating new files and archiving older ones, preventing single files from growing indefinitely. Uploading these rotated logs to external storage ensures the 14-day retention policy is met without consuming local disk space, providing a sustainable, automated solution to minimize future alerts.
Deleting log files based on an arbitrary size (20MB) does not guarantee adherence to the 14-day retention policy and may delete essential recent logs or fail to address the overall log growth.
Concept tested: Automated log management and retention
Source: https://linux.die.net/man/8/logrotate
Topics
Community Discussion
No community discussion yet for this question.