Oracle Cloud Infrastructure 2022 Architect Associate — Question 28
You have multiple applications running on a compute instance that generate a large amount of log files. You are required to retain these log files for a total of 60 days; at least 15 days on the boot volume, and an additional 45 days in any location.
Which 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. 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.
- D. 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 the local NVMe storage.
Correct answer: C
Explanation
Option C is the most cost-effective solution as it utilizes Object Storage for long-term retention, adhering to both the 15-day boot volume requirement and the overall 60-day retention. Option A is inefficient as it requires continuous resizing of the boot volume, which can lead to unnecessary costs. Option B fails to meet the requirement for retaining logs in a cost-effective manner, as it involves manual deletion rather than automated lifecycle management. Option D does not address the retention requirements and adds complexity without providing a solution for log management.