
Google Associate Cloud Engineer
Get started today
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"
}
}
]
}
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"
}
}
]
}
Real Exam
Explanation:
The correct answer is D. The lifecycle configuration specifies two actions:
- 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. - 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.