Google Cloud Digital LeaderSecurity and operations with Google CloudMedium
A global manufacturing company needs to collect operational data from thousands of IoT devices deployed across various factory floors. This data needs to be ingested in real-time, processed, and then stored for analytics. They require a highly scalable, low-latency messaging service that can handle unpredictable bursts of data. Which Google Cloud service is best suited for ingesting this data?
- ACloud Pub/Sub
- BCloud Storage
- CCloud SQL
- DCloud Functions
Show answer & explanationAnswer & explanation
Correct answer: A. Cloud Pub/Sub
Cloud Pub/Sub is a highly scalable, asynchronous messaging service designed for real-time data ingestion and processing, making it ideal for handling large volumes of IoT data with unpredictable bursts.
Why the other options are wrong
- B. Cloud Storage is primarily for storing large objects, not for real-time messaging and ingestion.
- C. Cloud SQL is a relational database and is not designed for high-throughput, real-time message ingestion from thousands of devices.
- D. Cloud Functions are serverless compute services for executing code in response to events; they can process Pub/Sub messages but are not the ingestion service itself.
Cloud Pub/Sub
Cloud Pub/Sub is a global, real-time messaging service that allows you to send and receive messages between independent applications.
- Decouples senders (publishers) from receivers (subscribers).
- Highly scalable, handles millions of events per second.
- Low-latency and durable message delivery.
- Often used for event-driven architectures, IoT, and data ingestion.
Memory trick: Pub/Sub is the post office for your data streams.