Google Associate Cloud Engineer

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"
         }
      }
   ]
}




Explanation:

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.