A ride-hailing platform needs to persist GPS pings from about 500 000 vehicles, each pinging once per second. The matching microservice must retrieve the most recent location for any driver within 50 ms to update nearby driver lists, while data engineers run hourly aggregate queries for surge-pricing models. The team wants minimal operational overhead and automatic horizontal scaling. Which Google Cloud storage service should be the system of record for the pings?
Stream each ping directly into partitioned BigQuery tables and query the latest row in real time.
Insert pings into Cloud SQL for PostgreSQL with high-availability and multiple read replicas.
Store the pings in Cloud Bigtable using a composite row key, then export to BigQuery for hourly analytics.
Publish each ping to Cloud Pub/Sub with seven-day retention and let services pull messages when needed.
Cloud Bigtable is designed for very high-throughput, low-latency workloads. With a carefully designed row key such as driverId#timestamp, it delivers single-digit millisecond reads and writes and scales linearly by adding nodes, satisfying the real-time lookup requirement for the matching service. Dataflow or BigQuery can consume the same table periodically for analytical reporting. BigQuery streaming offers fast ingestion but cannot guarantee sub-50 ms per-row retrieval. Pub/Sub is a messaging bus, not a low-latency store, and Cloud SQL cannot horizontally scale to hundreds of thousands of writes per second without significant re-architecture.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
Why is Cloud Bigtable preferred over BigQuery for real-time lookup of GPS pings?
Open an interactive chat with Bash
What is a composite row key in Cloud Bigtable and why is it important for this scenario?
Open an interactive chat with Bash
How does Cloud Bigtable achieve automatic horizontal scaling for workloads?
Open an interactive chat with Bash
What is Cloud Bigtable and why is it suitable for storing GPS pings?
Open an interactive chat with Bash
What is a composite row key and how does it improve data retrieval speed?
Open an interactive chat with Bash
Why is BigQuery not ideal for real-time GPS ping retrieval?
Open an interactive chat with Bash
GCP Professional Data Engineer
Storing the data
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .