Google Associate Cloud EngineerDeploying and implementing a cloud solutionEasy

A data analytics team needs to ingest real-time streaming data from various sources (e.g., IoT devices, application logs) and then process it for immediate insights. The solution must be highly scalable, durable, and support multiple independent consumers. Which Google Cloud service is best suited for this ingestion and messaging requirement?

  1. ACloud Storage
  2. BCloud Pub/Sub
  3. CCloud SQL
  4. DCloud Spanner
Show answer & explanation

Correct answer: B. Cloud Pub/Sub

Cloud Pub/Sub is a fully managed real-time messaging service designed for ingesting and delivering streaming data. It offers high scalability, durability, and a publish-subscribe model that supports multiple independent consumers.

Why the other options are wrong

  • A. Cloud Storage is object storage, suitable for batch processing or storing raw data, but not for real-time streaming ingestion and messaging.
  • C. Cloud SQL is a regional relational database, also not suitable for real-time streaming ingestion and fan-out messaging.
  • D. Cloud Spanner is a globally distributed relational database, not a messaging service for streaming data ingestion.

Google Cloud Pub/Sub

A fully managed asynchronous messaging service that decouples senders and receivers, ideal for streaming analytics and event-driven architectures.

  • Supports publish/subscribe model for message delivery.
  • Highly scalable, durable, and available.
  • Used for real-time data ingestion, event streams, and distributed systems.

Memory trick: Pub/Sub is the 'public' way to 'subscribe' to data streams.

More Deploying and implementing a cloud solution questions