Professional Cloud ArchitectAnalyze and optimize technical and business processesMedium

A global media company is building a new data analytics platform on Google Cloud. They need to ingest massive volumes of real-time streaming data from various sources (e.g., social media feeds, IoT devices, website clicks) and process it for immediate dashboards, anomaly detection, and long-term archival. The data ingestion must be highly scalable, fault-tolerant, and support heterogeneous data formats. Which Google Cloud service should be used as the primary ingestion layer?

  1. ACloud Storage buckets for direct file uploads.
  2. BCloud Pub/Sub for its scalable messaging queue capabilities.
  3. CCloud SQL instances with high-throughput write configurations.
  4. DBigQuery for direct streaming inserts into tables.
Show answer & explanation

Correct answer: B. Cloud Pub/Sub for its scalable messaging queue capabilities.

Cloud Pub/Sub is a highly scalable, fault-tolerant, and globally distributed messaging service designed for ingesting and delivering millions of events per second. It acts as a decoupling layer between data producers and consumers, making it ideal for heterogeneous real-time streaming data ingestion before further processing or storage.

Why the other options are wrong

  • A. Cloud Storage is for object storage and batch uploads, not optimized for real-time streaming ingestion and immediate processing of millions of individual events.
  • C. Cloud SQL is a relational database and is not designed for the extreme scale and throughput required for ingesting massive volumes of real-time streaming data.
  • D. While BigQuery supports streaming inserts, it's typically a data warehouse for analytics. Pub/Sub acts as a more flexible and scalable ingestion buffer before data lands in BigQuery or other processing layers, especially for heterogeneous sources and real-time processing needs.

Cloud Pub/Sub

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

  • Globally distributed and highly scalable.
  • Acts as a decoupling layer for asynchronous communication.
  • Supports both pull and push subscriptions.
  • Often used as an ingestion layer for streaming analytics pipelines.

Memory trick: Publish and Subscribe, for massive streams, no strife!

More Analyze and optimize technical and business processes questions