You have a Google Cloud Storage bucket with this lifecycle rule:
{"rule": [{"action": {"type": "Delete"}, "condition": {"age": 30}}]}What happens to objects in this bucket?
Think about what the 'Delete' action means in lifecycle rules.
The lifecycle rule specifies that objects older than 30 days are deleted automatically. Other actions like archiving or encryption are not specified here.
Which lifecycle rule configuration archives objects to Coldline storage after 60 days?
Look for the action type that changes storage class and the correct target class.
To archive objects to Coldline storage after 60 days, the action must be 'SetStorageClass' with 'COLDLINE' and condition age 60.
You want to design lifecycle rules for a bucket storing logs. Logs should be stored in Standard storage for 7 days, then moved to Nearline for 30 days, then to Coldline for 90 days, and finally deleted after 365 days. Which lifecycle rule set achieves this?
Calculate cumulative days for each storage class transition.
Objects stay 7 days in Standard, then 30 days in Nearline (7+30=37), then to Coldline at 37 days. The delete action is after 365 days. Option A sets Coldline transition at 97 days, which is incorrect. The correct cumulative day for Coldline transition is 37 days, so option A is correct.
A bucket has object versioning enabled. It has this lifecycle rule:
{"rule": [{"action": {"type": "Delete"}, "condition": {"isLive": false, "age": 30}}]}What happens to noncurrent object versions?
Check the condition 'isLive': false and what it means.
The condition 'isLive': false targets noncurrent versions. The rule deletes noncurrent versions older than 30 days. Live versions are unaffected.
Your company must retain data for 7 years for compliance. Data should be stored cost-effectively after 1 year. Which lifecycle rule strategy meets compliance and cost goals?
Think about when to move data to cheaper storage and when to delete it.
To meet compliance, data must be kept 7 years. To save cost, move data to cheaper Coldline storage after 1 year. Then delete after 7 years. Option B correctly implements this.