Professional Cloud ArchitectAnalyze and optimize technical and business processesEasy
A global ride-sharing company is building a new real-time analytics platform on Google Cloud. They need to ingest millions of events per second (e.g., driver location updates, ride requests, payment confirmations) from various mobile applications and IoT devices. This data must be immediately available for stream processing to detect anomalies, update real-time dashboards, and feed into machine learning models. The solution requires extremely high throughput, low latency, and automatic scalability to handle unpredictable spikes in event volume. Which Google Cloud service is MOST suitable for ingesting this real-time event stream?
- ACloud Dataproc
- BCloud SQL
- CCloud Storage
- DCloud Pub/Sub
Show answer & explanationAnswer & explanation
Correct answer: D. Cloud Pub/Sub
Cloud Pub/Sub is a fully managed, globally distributed messaging service designed for ingesting large volumes of events with high throughput and low latency. It automatically scales to handle unpredictable spikes and reliably delivers messages for real-time stream processing, making it ideal for this scenario.
Why the other options are wrong
- A. Cloud Dataproc is a managed service for Apache Hadoop and Spark, primarily used for batch or stream processing, not as the primary ingestion mechanism for raw events.
- B. Cloud SQL is a relational database service, not optimized for ingesting millions of disparate, real-time events per second at scale.
- C. Cloud Storage is an object storage service, suitable for batch data loading or long-term storage, but not for real-time, high-throughput event ingestion with low latency.
Cloud Pub/Sub
Cloud Pub/Sub is a fully managed, real-time messaging service that allows you to send and receive messages between independent applications, enabling scalable event-driven architectures and streaming analytics.
- Globally distributed, high-throughput, low-latency messaging.
- Decouples publishers from subscribers.
- Automatically scales to handle unpredictable workloads.
- Supports push and pull delivery mechanisms.
Memory trick: Publish and Subscribe: Events Arrive.