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.
An enterprise analytics team is designing a BigQuery data architecture for high-volume streaming telemetry events. The design must meet the following technical and compliance requirements:
event_type and filter on specific user_id values over varying daily date ranges.How should you configure the base table and materialized view architecture to meet these requirements?
Partitioned tables in BigQuery physically segment data into distinct storage blocks based on time-unit columns, ingestion time, or integer ranges. When paired with clustered columns, BigQuery co-locates related data based on user-defined sort properties. A materialized view is a precomputed, cached result of a query that automatically stays synchronized with base table modifications and accelerates read performance via smart query rewrites.
DELETE DML queries, avoiding query compute charges.user_id allows the query engine to prune unrelated storage blocks when filtering for specific users. Aggregating by event_type in the precomputed view satisfies frequent dashboard calculations.user_id provides dual-layer data skipping during analytical query execution.This architecture leverages native BigQuery storage features to enforce governance and compliance while maximizing query speed and minimizing query processing costs. Aligning the partition schemes between the base table and the materialized view is the only architecture that preserves materialized view cache stability under partition expiration policies.
This approach configures the underlying base table with daily partitioning and 90-day partition expiration, but creates a non-partitioned materialized view while attempting to configure an explicit partition expiration policy on the view itself.
This design would be valid only if BigQuery supported independent partition expiration configurations on unpartitioned views and did not invalidate non-partitioned views upon underlying base partition deletion.
To benefit from partition expiration in environments utilizing materialized views, engineers must ensure the view DDL explicitly contains the PARTITION BY clause matching the base table schema.
This option builds an unpartitioned standard table that relies on daily scheduled DELETE DML queries to enforce the 90-day retention requirement and provides user access through a standard logical view.
DELETE statement requires BigQuery slots to scan and rewrite table data blocks, incurring ongoing analysis costs and compute consumption compared to free partition deletion.The table size was extremely small (less than 10 GB), where partitioning overhead outweighs pruning benefits, and caching precomputed results was not required.
In BigQuery governance architectures, automated partition expiration should always be preferred over recurring DELETE DML scripts for lifecycle management due to cost, reliability, and operational simplicity.
This approach uses a non-BigLake external table backed by Cloud Storage files formatted as Parquet, delegating data lifecycle management to Cloud Storage Object Lifecycle Management rules and querying through an unpartitioned materialized view.
The workload specifically required keeping the data in open formats directly on Cloud Storage for external multi-cloud engines, and did not require fine-grained governance or native BigQuery partition expiration mechanics.
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