Skip to content

Expiring old data automatically so it stops costing money

Google Cloud offers automated, policy-based mechanisms to delete or archive stale data without manual intervention, helping control storage costs. Cloud Storage uses Object Lifecycle Management rules on buckets, while BigQuery uses table and partition expiration settings. Both are configured declaratively and enforced by the service in the background.

Must-know

  • Cloud Storage Object Lifecycle Management rules are defined per bucket using conditions (e.g., Age, CreatedBefore, NumNewerVersions, IsLive) paired with actions like Delete or SetStorageClass; the rule scans run asynchronously and deletions may take up to 24 hours to execute after conditions are met.
  • In BigQuery, you can set a default table expiration at the dataset level or an explicit expirationTime on individual tables; once expired, BigQuery automatically deletes the table and its data with no recovery option beyond time travel/snapshot windows.
  • BigQuery also supports partition expiration on partitioned tables, letting individual partitions age out and be deleted independently of the whole table, which is ideal for time-series or log data retention.
  • Lifecycle/expiration deletions are permanent (subject to any configured soft-delete or time-travel retention window), so rules should be tested carefully before applying to production data.
  • Combining Cloud Storage lifecycle rules with storage class transitions (e.g., moving to Nearline/Coldline/Archive before eventual deletion) is a common cost-optimization pattern rather than deleting immediately.
  • These features require no extra compute or scheduling jobs from the user: both Cloud Storage and BigQuery natively enforce the configured rules as part of the managed service.
Check this objectiveFree · always available

A data practitioner manages a Cloud Storage bucket that accumulates log files. To reduce storage costs, they want objects to be automatically deleted once they reach 90 days old, without any manual intervention. What should they configure?

Your objective map0 tried · 0 right · 41 untouched

What you have tried across GCP ADP's objectives, not a readiness score.

Coverage checked against the published exam guide on Aug 12, 2026.

These are independent practice questions, written against this certification's published exam guide. They are not the certification vendor's own questions, and not the real exam.