Oracle Cloud Infrastructure 2021 Architect Associate — Question 41
You have multiple applications running on a compute instance that generate a large amount of log files. You have requirements for these log files to be retained for a total of 60 days: at least 15 days on the boot volume, and then an additional 45 days in any location.
What is the most cost-effective way to meet the 15-day boot volume retention requirement, and the 60-day total retention requirement?
Answer options
- A. Do not delete any logs but resize the boot volume of the instance every time additional space is needed.
- B. Attach a block volume and use a script that moves log files older than 15 days to the new volume and deletes them completely after 60 days.
- C. Terminate the instance while preserving the boot volume. Create a new instance from the boot volume and select a DenseIO shape to take advantage of local NVMe storage.
- D. Create an object storage bucket and use a script that runs daily to move log files older than 15 days from the boot volume to the bucket. Create a lifecycle rule for the bucket to delete any logs over 60 days old.
Correct answer: D
Explanation
Option D is the most cost-effective approach as it meets both retention requirements by using an object storage bucket and a script for automated log management. Option A is not sustainable as it involves continuously resizing the boot volume, which incurs extra costs. Option B introduces complexity with moving and deleting logs but does not utilize cost-effective storage solutions, and option C involves unnecessary instance management that does not address the retention requirements effectively.