
Answer-first summary for fast verification
Answer: Delete archived objects older than 60 days and move objects to Coldline Storage after 366 days if the storage class is Multi-regional.
The correct answer is **D**. The lifecycle configuration specifies two actions: 1. **Delete archived objects older than 60 days**: The `"type":"Delete"` action combined with `"isLive":false` targets archived (non-live) objects. This means only archived objects older than 60 days will be deleted, not all objects. 2. **Move objects to Coldline Storage after 366 days if the storage class is Multi-regional**: The `"type":"SetStorageClass"` action changes the storage class to Coldline for objects that are at least 366 days old and currently in the Multi-regional storage class. Incorrect options: - **A**: The first rule does affect the bucket by deleting archived objects older than 60 days. - **B**: The action is to delete, not archive, archived objects older than 60 days. - **C**: The deletion applies only to archived objects, not all objects older than 60 days. For more details, refer to [Google Cloud's lifecycle management documentation](https://cloud.google.com/storage/docs/managing-lifecycles).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your operations team has set up a lifecycle management rule on a multi-regional bucket with versioning enabled. Given the following lifecycle configuration, which statement is accurate?
{
"rule":[
{
"action":{
"type":"Delete"
},
"condition":{
"age":60,
"isLive":false
}
},
{
"action":{
"type":"SetStorageClass",
"storageClass":"COLDLINE"
},
"condition":{
"age":366,
"matchesStorageClass":"MULTI_REGIONAL"
}
}
]
}
{
"rule":[
{
"action":{
"type":"Delete"
},
"condition":{
"age":60,
"isLive":false
}
},
{
"action":{
"type":"SetStorageClass",
"storageClass":"COLDLINE"
},
"condition":{
"age":366,
"matchesStorageClass":"MULTI_REGIONAL"
}
}
]
}
A
Move objects to Coldline Storage after 366 days if the storage class is Multi-regional. The first rule does not affect the bucket.
B
Archive objects older than 60 days and move objects to Coldline Storage after 366 days if the storage class is Multi-regional.
C
Delete objects older than 60 days and move objects to Coldline Storage after 366 days if the storage class is Multi-regional.
D
Delete archived objects older than 60 days and move objects to Coldline Storage after 366 days if the storage class is Multi-regional.
No comments yet.