professional-cloud-data-engineer
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 lead data engineer is designing a data lifecycle and cost-optimization architecture for an enterprise BigQuery data warehouse. The requirements are:
telemetry_events dataset must automatically delete individual daily partitions once they are older than 60 days, while retaining the base table structure for ongoing streaming ingestion.Which configuration should the data engineer implement?
This configuration applies automatic partition expiration at the BigQuery dataset level via SQL DDL (ALTER SCHEMA SET OPTIONS) while allowing table-level overrides and relying on BigQuery's native, zero-maintenance long-term storage pricing model.
default_partition_expiration_days = 60 on the dataset ensures every newly created partitioned table inherits a 60-day Time-To-Live (TTL) for each individual partition without dropping the table itself or interrupting streaming writes.default_table_expiration_ms) unset guarantees that standard, non-partitioned tables never expire. When any table or partition in BigQuery is left unedited for 90 consecutive days, BigQuery automatically transitions that data to long-term storage, reducing the storage price by approximately 50% with zero read performance degradation.partition_expiration_days = 180 in the OPTIONS clause during table creation explicitly overrides the dataset-level default for those specific tables.bq CLI, Terraform, or client libraries.This approach leverages native BigQuery metadata lifecycle policies and automated storage tiering, requiring zero scheduled queries, external workflow triggers, or Cloud Storage export processes.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.