Professional Cloud ArchitectManage implementationEasy
A global IoT company needs to ingest billions of sensor data points per day from devices located worldwide. This data must be processed in real time to detect anomalies and trigger alerts. The solution needs to be highly scalable, durable, and capable of handling bursts of traffic without data loss. Which Google Cloud service should you recommend as the primary ingestion and messaging layer?
- ACloud SQL for relational database storage.
- BBigQuery for analyzing large datasets.
- CCloud Pub/Sub for real-time messaging and event ingestion.
- DCloud Storage for storing raw sensor data.
Show answer & explanationAnswer & explanation
Correct answer: C. Cloud Pub/Sub for real-time messaging and event ingestion.
Cloud Pub/Sub is a highly scalable, global, and durable real-time messaging service designed for ingesting massive streams of event data, making it ideal for the IoT scenario with billions of sensor data points and burst traffic.
Why the other options are wrong
- A. Cloud SQL is a relational database and not suitable for ingesting billions of real-time sensor data points due to its transactional nature and scaling limitations for such throughput.
- B. BigQuery is a data warehouse for analytics, not an ingestion or messaging service.
- D. Cloud Storage is for object storage, not a real-time messaging or ingestion layer.
Cloud Pub/Sub
Cloud Pub/Sub is a fully managed asynchronous messaging service that decouples senders and receivers, allowing for highly scalable and reliable communication between independently written applications.
- Global service with low-latency delivery.
- Guaranteed at-least-once message delivery.
- Automatically scales to handle massive message volumes.
Memory trick: IoT sensors are like many tiny voices, and Pub/Sub is the loudspeaker that catches every single word, even when they all shout at once.