Prepare and test your skills

Prepare and test your skills

Free sample question, answered and explained below. The Professional Data Engineer practice bank has 1,353 more like it. Try 10 free: instant score, no account.
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 attempts to configure both a default table expiration (table TTL) and a default partition expiration (partition TTL) simultaneously at the dataset level.
default_table_expiration_ms to 60 days at the dataset level causes every newly created non-partitioned lookup table to be permanently deleted 60 days after creation.This option would be appropriate if all tables across the entire dataset—both partitioned event tables and standard tables—were intended to be completely destroyed after 60 days.
This approach uses an external transformation workflow (Dataform) to issue periodic SQL DELETE operations on partitioned tables and manually exports stale data to Cloud Storage Coldline.
DELETE statements consumes BigQuery slots or on-demand query bytes, whereas BigQuery built-in partition expiration deletes expired partitions automatically in the background at zero analysis compute cost.Data needed to be archived outside of BigQuery into raw object storage for cold compliance retention without requiring interactive SQL querying via BigQuery compute engines.
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.
This option alters the dataset's storage billing model to physical compressed bytes, reduces the time travel window to 48 hours (2 days), and relies on manual table snapshots for historical retention.
storage_billing_model and max_time_travel_hours settings govern how BigQuery bills physical compressed bytes and how long historical states are preserved for point-in-time queries; they do not purge or expire partition data after 60 days.The organization specifically wanted to optimize physical storage billing overhead from recent bulk deletions and required the minimum allowable fail-safe and time travel recovery window.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated Validated