Associate Data Practitioner · Free Practice Question Medium
Question 5
A company wants to automatically delete log files in Cloud Storage after 90 days to minimize storage costs. Which feature should they use?
-
A
Bucket lifecycle rules
-
B
Object holds
-
C
Retention policies
-
D
IAM conditions
Reveal correct answer
Correct answer: A
Explanation
Option A is CORRECT. Bucket lifecycle rules in Cloud Storage allow you to automatically delete objects based on their age or other criteria. By creating a lifecycle rule that deletes objects older than 90 days, the company can automatically manage log file retention without manual intervention. This approach ensures consistent application of the retention policy, minimizes storage costs by removing unnecessary logs, and reduces administrative overhead through automation.
Option B is INCORRECT. Object holds prevent deletion of objects regardless of lifecycle rules or manual deletion attempts. They're used to ensure objects are not deleted before a certain time, which is the opposite of what's needed here. Holds would actually prevent the automatic deletion required to minimize storage costs.
Option C is INCORRECT. Retention policies in Cloud Storage specify minimum retention periods, preventing deletion before that time. While they could ensure logs aren't deleted before 90 days, they don't automatically delete objects after the retention period expires. You would still need lifecycle rules to handle the automatic deletion.
Option D is INCORRECT. IAM conditions allow for dynamic access control based on attributes like time or resource properties but don't provide mechanisms for automatic object deletion. They control who can access or modify resources rather than implementing data lifecycle management.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
