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 logistics enterprise is designing a data storage architecture on Google Cloud for a real-time fleet management platform. The system ingests high-frequency telemetry metrics from millions of connected vehicles and must support two primary access patterns:
region, fleet_tier, and vehicle_model.You need to design the schema, row keys, and optimization strategies to maximize read/write performance, prevent hotspotting, and optimize query costs.
Which storage and schema configuration should you recommend?
vehicle_id to handle low-latency single-vehicle queries.This option consolidates all operational and analytical workloads into BigQuery and relies on traditional explicit B-tree indexes for point lookups.
BigQuery offered low-latency row indexing engines and all queries were strictly ad-hoc business intelligence aggregations with relaxed latency tolerances.
vehicle_id#reverse_timestamp, and load analytical data into BigQuery partitioned by event_date and clustered by region, fleet_tier, and vehicle_model.This design pairs Cloud Bigtable as a high-throughput NoSQL wide-column database for point and range operational access with BigQuery as an enterprise columnar data warehouse optimized for large-scale analytical scans, leveraging native table partitioning and multi-column clustering.
vehicle_id distributes write traffic evenly across cluster tablet splits (preventing write hotspotting caused by monotonically increasing timestamps). Appending a reverse_timestamp (e.g., Long.MAX_VALUE - timestamp) ensures that the most recent metric events for a specific vehicle appear first in lexicographical order, enabling low-latency sequential range scans.event_date) enables partition pruning, eliminating scanned bytes outside the query's time boundary. Clustering by high-cardinality filtering columns (region, fleet_tier, vehicle_model) sorts data within partitions into collocated storage blocks, accelerating multi-column filtering and aggregations.Cloud Bigtable is purpose-built for single-row and sequential range queries at massive write throughput, whereas BigQuery excels at analytical scans. Combining partitioning with multi-column clustering in BigQuery offers finer-grained sorting than partitioning alone, outperforming unclustered, sharded, or row-based alternatives.
telemetry_YYYYMMDD).This option isolates each vehicle's time-series data into its own dedicated Bigtable table and uses date-sharded tables (telemetry_YYYYMMDD) in BigQuery.
The total number of tracked entities was fewer than 100, and BigQuery table partitioning features were unavailable.
timestamp#vehicle_id, and load analytical data into BigQuery partitioned by vehicle_id with integer-range partitioning.This option places a monotonically increasing timestamp at the beginning of the Bigtable row key and applies integer-range partitioning to BigQuery based on vehicle_id.
Writes were evenly pre-distributed across time and operational lookups routinely scanned all devices across a single point in time rather than querying a specific device's history.
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