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 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?
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.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.