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.
A data engineering team manages a daily-partitioned BigQuery table named telemetry_logs. To optimize storage costs and adhere to data retention guidelines, the team needs to ensure that individual partitions are automatically deleted 60 days after their partition date, while keeping the table definition and more recent partitions intact.
Which SQL statement should the team execute to configure this automated retention rule?
partition_expiration_days is:In Google BigQuery, partition_expiration_days is a table-level option that defines the lifetime of individual partitions within a partitioned table. When configured, BigQuery automatically tracks the date or timestamp associated with each partition and deletes partitions that exceed the defined age limit.
partition_expiration_days = 60 ensures that BigQuery automatically removes partition slices older than 60 days without requiring scheduled manual DELETE jobs or custom scripts.ALTER TABLE ... SET OPTIONS syntax.Modifying the table options via SQL DDL provides a native, serverless, and declarative approach to lifecycle management. It eliminates the computational costs of running daily deletion queries and ensures reliable enforcement of organizational retention policies.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.