A retail company needs to redesign its IoT ingestion layer. Millions of sensors worldwide will stream small JSON readings every few seconds. The solution must
accept HTTPS pushes with end-to-end latency under 100 ms,
automatically scale without capacity planning,
survive regional outages while retaining undelivered messages for up to 7 days, and
fan-out each event to several independent Dataflow streaming pipelines for further processing. Which service should you recommend as the primary ingestion point?
Upload each JSON reading to Cloud Storage via signed URLs and trigger Cloud Functions that forward data to downstream pipelines.
Post sensor readings to a regional Cloud Run service that writes directly into Cloud Spanner for later processing.
Publish sensor events to a Cloud Pub/Sub standard topic and let each Dataflow pipeline consume from its own subscription.
Deploy an Apache Kafka cluster on Cloud Dataproc to ingest events and have Dataflow read from Kafka topics.
Cloud Pub/Sub is a fully managed, global messaging service that accepts HTTPS or gRPC pushes/pulls, automatically scales to millions of messages per second, replicates data across zones for regional resilience, and guarantees at-least-once delivery with configurable retention up to 7 days. Each downstream application can consume the same events through its own subscription, enabling efficient fan-out to multiple Dataflow pipelines. Self-managed Kafka on Dataproc would require ongoing capacity and availability management. Cloud Storage uploads plus Cloud Functions add high latency and are not optimized for streaming fan-out. Writing directly to Cloud Run and Spanner provides neither built-in buffering nor easy multi-subscriber semantics. Therefore, Pub/Sub best meets all stated requirements.
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 Pub/Sub and why is it suitable for IoT data ingestion?
Open an interactive chat with Bash
How does Pub/Sub ensure message durability and regional resilience?
Open an interactive chat with Bash
What is the role of subscriptions in handling Pub/Sub fan-out for Dataflow pipelines?
Open an interactive chat with Bash
What is Cloud Pub/Sub, and why is it suitable for IoT data ingestion?
Open an interactive chat with Bash
What is the difference between a Pub/Sub topic and a subscription?
Open an interactive chat with Bash
How does Cloud Pub/Sub's message retention work?
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
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .