Google Associate Cloud EngineerDeploying and implementing a cloud solutionEasy

A data analytics team needs to ingest real-time streaming data from various IoT devices for immediate processing and also for long-term storage in BigQuery. The solution must be highly scalable, durable, and support fan-out to multiple subscribers. Which Google Cloud service should be used for data ingestion?

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

Correct answer: B. Cloud Pub/Sub

Cloud Pub/Sub is a fully managed real-time messaging service designed for ingesting large volumes of events. It supports fan-out to multiple subscribers and provides high scalability and durability, making it ideal for streaming data from IoT devices.

Why the other options are wrong

  • A. Cloud Storage is object storage, not designed for real-time streaming ingestion with fan-out.
  • C. Cloud SQL is a relational database, not suitable for high-volume real-time streaming ingestion.
  • D. Cloud Datastore (now Firestore in Datastore mode) is a NoSQL document database, not a real-time messaging service.

Cloud Pub/Sub

A fully managed, global real-time messaging service that enables you to send and receive messages between independent applications.

  • Decouples senders (publishers) from receivers (subscribers).
  • Supports fan-out to multiple subscribers.
  • Scales automatically to handle large volumes of messages.
  • Durable message storage until acknowledged.

Memory trick: Publish and Subscribe: Pub/Sub gets the message to everyone who needs it, fast!

More Deploying and implementing a cloud solution questions