Google Associate Cloud EngineerDeploying and implementing a cloud solutionEasy
A data engineering team is building a real-time data ingestion pipeline. They need a messaging service that can reliably ingest millions of events per second from various sources, decouple producers and consumers, and provide at-least-once message delivery. Which Google Cloud service should they use?
- ACloud SQL
- BCloud Tasks
- CCloud Storage
- DCloud Pub/Sub
Show answer & explanationAnswer & explanation
Correct answer: D. Cloud Pub/Sub
Cloud Pub/Sub is a real-time messaging service designed for high throughput, low latency, and decoupling producers from consumers, offering at-least-once message delivery.
Why the other options are wrong
- A. Cloud SQL is a relational database service, not a messaging service for event streaming.
- B. Cloud Tasks is for asynchronous task execution and queue management, not designed for real-time, high-volume event streaming.
- C. Cloud Storage is an object storage service, not a messaging service for real-time event ingestion.
Cloud Pub/Sub
A global, real-time messaging service that enables asynchronous communication between independent applications.
- Supports high-volume event ingestion and delivery.
- Decouples senders (publishers) from receivers (subscribers).
- Offers at-least-once message delivery guarantee.
Memory trick: Pub/Sub for real-time streams, Tasks for queues, Storage for files.