You are designing a streaming pipeline that ingests temperature readings from tens of thousands of IoT devices through Pub/Sub and must persist the data in a storage tier that can sustain millions of writes per second while offering sub-10-millisecond read latency for lookups by device-id and event timestamp to power a real-time dashboard. The data is append-only and will not be queried with complex joins or multi-row transactions. Which Google Cloud sink best meets these requirements with minimal operational overhead?
Cloud Pub/Sub Lite topic configured with 7-day message retention
Cloud Spanner table keyed on device-id with a secondary index on timestamp
BigQuery partitioned table using ingestion-time partitioning
Cloud Bigtable with a composite row key of device-id and reversed timestamp
Cloud Bigtable is engineered for very high write throughput and single-row reads in single-digit milliseconds, making it ideal for time-series or sensor data that is appended continuously and retrieved by a well-designed row key such as device-id#timestamp. BigQuery is optimized for analytical scans, not low-latency point reads. Cloud Spanner provides strong relational semantics and distributed transactions, which add cost and complexity unnecessary for this append-only workload. Pub/Sub Lite is a messaging service rather than a serving store and is not intended for low-latency random access queries.
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.
What is Cloud Bigtable, and why is it a good choice for this use case?
Open an interactive chat with Bash
Why isn't BigQuery suitable for low-latency point queries in this scenario?
Open an interactive chat with Bash
What is the limitation of using Cloud Spanner in this scenario?
Open an interactive chat with Bash
How does Cloud Bigtable achieve sub-10-millisecond read latency while handling millions of writes per second?
Open an interactive chat with Bash
Why is a composite row key with device-id and reversed-timestamp recommended in this use case?
Open an interactive chat with Bash
Why is BigQuery not suitable for real-time, low-latency point lookups in this scenario?
Open an interactive chat with Bash
GCP Professional Data Engineer
Ingesting and processing 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 .