Cloud Digital Leader Google Cloud Products and Services Practice Question
A data engineer needs to process streaming clickstream data in real-time, apply transformations, and write the output to BigQuery. Which Google Cloud service is built for this use case?
⚠ Common exam trap
The trap is selecting Pub/Sub because it is the ingestion layer for streaming data, but the question asks for the service that processes and transforms the stream and writes to BigQuery — that is Dataflow, not Pub/Sub.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Cloud Dataflow
Cloud Dataflow is Google Cloud's fully managed, serverless service for both batch and stream processing, built on Apache Beam. It natively supports reading from Pub/Sub, applying transformations, and writing to BigQuery, making it the correct choice for real-time clickstream processing. Its autoscaling and exactly-once processing capabilities are designed for streaming pipelines like this.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Cloud Dataproc
Why it's wrong here
Cloud Dataproc is a managed Apache Hadoop/Spark service designed primarily for batch jobs over bounded datasets. Although Spark Structured Streaming can consume from Pub/Sub and write to BigQuery, Dataproc requires you to provision, manage, and size clusters manually, and its autoscaling lags behind the millisecond-level elasticity of a serverless stream processor. For a continuous clickstream pipeline with unpredictable spikes, the operational overhead and cold-start delays make it less streamlined for real-time BigQuery ingestion than Dataflow.
- ✓
Cloud Dataflow
Why this is correct
Cloud Dataflow is the correct choice because it is a fully managed, serverless service for both stream and batch processing, built on the Apache Beam model. It provides native, optimized BigQuery I/O with exactly-once processing semantics, event-time windowing, and automatic scaling to handle unbounded clickstream data from Pub/Sub. Dataflow's built-in support for watermarks, triggers, and stateful transformations makes it ideal for running low-latency, continuous ETL pipelines that land directly in BigQuery.
- ✗
Cloud Pub/Sub
Why it's wrong here
Cloud Pub/Sub is an asynchronous messaging service that ingests and delivers event streams, but it does not perform data transformation, aggregation, or enrichment. It acts merely as the ingestion layer in a streaming pipeline: producers publish click events to topics, and consumers subscribe to receive them. Without a separate processing engine like Dataflow, Pub/Sub cannot window, join, or clean the data, nor write directly to BigQuery in a transformed format, so it is not sufficient by itself for this use case.
- ✗
Cloud Functions
Why it's wrong here
Cloud Functions is designed for short-running, event-driven code triggered by discrete events, with execution timeouts (currently up to 540 seconds) and no built-in support for stateful stream processing or backpressure. It would require you to run separate invocations for each message or micro-batch, making it impractical for high-throughput clickstream transformations that need sliding windows, joins, and exactly-once writes to BigQuery. For sustained streaming workloads, Dataflow's auto-scaling pipeline model is far more appropriate than the haphazard composition of serverless functions.
Quick reference
Cloud Service Model Comparison
| Model | You Manage | Provider Manages | Examples |
|---|---|---|---|
| IaaS | OS, runtime, apps, data | Hardware, hypervisor, networking | EC2, Azure VMs, GCP Compute Engine |
| PaaS | Apps and data | OS, runtime, middleware, hardware | Elastic Beanstalk, Azure App Service |
| SaaS | Data and settings only | Everything else | Microsoft 365, Salesforce, Workday |
| FaaS / Serverless | Function code only | Infra, scaling, runtime | Lambda, Azure Functions, Cloud Run |
| CaaS | Containers and apps | Kubernetes, OS, hardware | EKS, AKS, GKE |
Go deeper
Related to this question
Learn chapter
Building a Cloud ROI Business Case
Key term
Dataflow
Dataflow is a Google Cloud managed service that processes and transforms data in real-time or batch mode using Apache Beam pipelines.
Key term
Stream processing
Stream processing is a data processing method that continuously analyzes and acts on data in real time as it arrives, rather than storing it first and processing it later.
About these practice questions
Courseiva writes every GCDL question from scratch — 848 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Google Cloud exam blueprint
This GCDL practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the GCDL exam.