1Z0-1072-25 Question 220
Select 2You have a bucket in Oracle Cloud Infrastructure (OCI) Object Storage that stores two types of data: daily database backups and application logs. You want to automatically transition any backup file older than 30 days to Archive Storage to reduce costs. However, you need the application logs to remain in the Standard tier for at least 90 days for compliance before being archived. Which two actions must you take to meet these requirements?
- A
A. Enable versioning on the bucket so older backups are automatically moved to Archive Storage on their 30th day.
- B
B. Configure a lifecycle policy to transition older backups (determined by a specific object naming pattern or prefix) to Archive Storage after 30 days.
- C
C. Create a single lifecycle policy that applies to all objects in the bucket and transitions data to Archive Storage after 30 days.
- D
D. Configure a lifecycle policy rule that excludes logs from transitioning before 90 days by matching their unique object name pattern.
Show answer and explanation
Correct answers: B, D
Explanation
To meet different retention requirements for backups and logs, you must configure lifecycle policies that target each type of object separately. In OCI Object Storage, lifecycle policies allow you to define specific rules based on object names or prefixes. For more information, refer to the Oracle Cloud Infrastructure documentation on creating and managing lifecycle policies, which outlines best practices for automating transitions between storage tiers and ensuring compliance with data retention policies.
- A. Incorrect.
A. Incorrect. Enabling versioning alone does not control when or how objects are moved to Archive Storage. Versioning preserves previous versions of objects, but does not provide automatic transitions based on age.
- B. Correct.
B. Correct. You must create a lifecycle rule specifically targeting the backup files (often using a prefix like 'backups/' or another identifying pattern) to move them to Archive Storage after 30 days.
- C. Incorrect.
C. Incorrect. If you create a single lifecycle policy for all objects, it will transition logs and backups together, ignoring the different retention requirements. You need separate policies or conditions for each object type.
- D. Correct.
D. Correct. You need a specific lifecycle policy or rule that excludes application logs from archiving until they have reached the required 90 days, usually by matching their unique naming pattern (e.g., 'logs/').