Unlock the power of your data in the cloud! Get hands-on with Google Cloud's core data services like BigQuery and Looker to validate your practical skills in data ingestion, analysis, and management, and earn your Associate Data Practitioner certification!
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
Last updated
A financial analytics company stores transaction export files in a Cloud Storage bucket with the Standard storage class. To optimize storage costs and adhere to company retention guidelines, the data engineering team must implement an Object Lifecycle Management policy that meets the following requirements:
Which lifecycle management configuration correctly satisfies these requirements?
Configure three lifecycle rules: Rule 1 with action 'Delete' where age is 30; Rule 2 with action 'Delete' where age is 90; Rule 3 with action 'Delete' where age is 365.
Configure three lifecycle rules: Rule 1 with action 'SetStorageClass' to NEARLINE where age is 30 and matchesStorageClass is STANDARD; Rule 2 with action 'SetStorageClass' to COLDLINE where age is 90 and matchesStorageClass is NEARLINE; Rule 3 with action 'Delete' where age is 365.
Configure two lifecycle rules: Rule 1 with action 'SetStorageClass' to COLDLINE where age is 90 and matchesStorageClass is STANDARD; Rule 2 with action 'Delete' where age is 365 and matchesStorageClass is COLDLINE.
Configure three lifecycle rules: Rule 1 with action 'SetStorageClass' to STANDARD where age is 30; Rule 2 with action 'SetStorageClass' to NEARLINE where age is 90; Rule 3 with action 'SetStorageClass' to COLDLINE where age is 365.
Configure three lifecycle rules: Rule 1 with action 'Delete' where age is 30; Rule 2 with action 'Delete' where age is 90; Rule 3 with action 'Delete' where age is 365.
Configure three lifecycle rules: Rule 1 with action 'SetStorageClass' to NEARLINE where age is 30 and matchesStorageClass is STANDARD; Rule 2 with action 'SetStorageClass' to COLDLINE where age is 90 and matchesStorageClass is NEARLINE; Rule 3 with action 'Delete' where age is 365.
Object Lifecycle Management is a built-in feature of Google Cloud Storage that automates the transition of objects to colder storage classes or deletes them when predefined conditions are met. Rules are assigned at the bucket level and evaluated asynchronously by Google Cloud Storage.
SetStorageClass action set to NEARLINE, paired with the age condition of 30 days and matchesStorageClass set to STANDARD. When a Standard object reaches 30 days of age, Cloud Storage transitions it to Nearline storage without rewriting the data.SetStorageClass action set to COLDLINE, paired with the age condition of 90 days and matchesStorageClass set to NEARLINE. This ensures that objects already in Nearline transition to Coldline once their overall age reaches 90 days.Delete action with an age condition of 365 days, removing objects that have reached the end of their 1-year retention lifecycle regardless of their current storage class.SetStorageClass does not rewrite the object data or incur retrieval fees or early deletion penalties during transition.This configuration cleanly separates the transition and deletion criteria into discrete, standard lifecycle rules using the native SetStorageClass and Delete actions. It avoids common misconfigurations by explicitly specifying both the target age and the current matchesStorageClass condition for each tier.
Configure two lifecycle rules: Rule 1 with action 'SetStorageClass' to COLDLINE where age is 90 and matchesStorageClass is STANDARD; Rule 2 with action 'Delete' where age is 365 and matchesStorageClass is COLDLINE.
Configure three lifecycle rules: Rule 1 with action 'SetStorageClass' to STANDARD where age is 30; Rule 2 with action 'SetStorageClass' to NEARLINE where age is 90; Rule 3 with action 'SetStorageClass' to COLDLINE where age is 365.