Compare / Dataflow vs Dataproc
Dataflow vs Dataproc
Choose Dataflow for Apache Beam batch or streaming pipelines, especially when event-time processing and late data matter. Choose Dataproc for existing Spark or Hadoop workloads that you want to run without rewriting for Beam. Both have managed execution options; the programming model and migration effort matter more than the word serverless.
In 49 practice questions across 8 practice banks
Your company is migrating their 30-node Apache Hadoop cluster to the cloud. They want to re-use Hadoop jobs they have already created and minimize the management of the cluster as much as possible. They also want to be able to persist data beyond the life of the cluster. What should you do?
-
Dataflow would require rewriting the Hadoop jobs.
-
HDFS on persistent disks is tied to the cluster's lifecycle.
-
Self-managed Hadoop on Compute Engine maximizes management overhead.
-
Dataproc with the GCS connector is managed and persists data beyond the cluster.
-
Self-managed, and Local SSD data is lost when instances stop.
Pick an answer to see why each option is right or wrong.
Try 20 questions freeAt a glance
| Dataflow | Dataproc | |
|---|---|---|
| Programming model | Apache Beam (Java, Python, Go, SQL) | Spark, Hadoop, Hive, Pig, Presto and other OSS tools |
| Streaming | First-class: windows, watermarks, triggers, exactly-once | Spark Structured Streaming |
| Operations | Serverless; autoscaling workers | Clusters you size (ephemeral recommended) or Dataproc Serverless |
| Migration fit | New pipelines, or rewrites | Existing Spark or Hadoop jobs with minimal changes |
| Storage pattern | Reads and writes Pub/Sub, BigQuery, Cloud Storage and more | Prefer Cloud Storage over HDFS so clusters can be ephemeral |
Choose Dataflow when
- You are building a new pipeline, especially a streaming one.
- A new Beam streaming pipeline must aggregate events into time windows and handle late arrivals.
- The team wants to use the Apache Beam model for both batch and streaming processing.
Choose Dataproc when
- You already have Spark or Hadoop jobs and want to move them without rewriting.
- The team works in the Spark ecosystem (Spark SQL, MLlib, notebooks).
- You need specific open-source components that Beam does not provide.
Exam tip
Existing Spark jobs or migration without rewriting point to Dataproc. Apache Beam, event-time windows and late-data handling point to Dataflow. Serverless alone does not decide: Dataproc also offers serverless Spark workloads.
Official documentation
Practice banks covering this comparison
Counts match names or aliases from both sides of the comparison in question text or answer options, including incorrect options. They do not measure how often a decision appears on the official exam.
- PDE Professional Data Engineer · 25 questions
- ADP Associate Data Practitioner · 10 questions
- PMLE Professional Machine Learning Engineer · 7 questions
- PCA Professional Cloud Architect · 3 questions
- CDL Cloud Digital Leader · 1 question
- ACE Associate Cloud Engineer · 1 question
- PCD Professional Cloud Developer · 1 question
- PCDE Professional Cloud Database Engineer · 1 question
More comparisons
- Dataproc vs BigQuery
- BigQuery vs Bigtable
- Spanner vs Cloud SQL
- Cloud Run vs GKE
- Cloud Composer vs Workflows
- Firestore vs Bigtable
- Cloud SQL for PostgreSQL vs AlloyDB
- Shared VPC vs VPC Network Peering
- Cloud VPN vs Cloud Interconnect
- Cloud Storage classes: Standard, Nearline, Coldline or Archive?
- Cloud Run functions vs Cloud Run services
- Cloud Armor vs VPC firewall rules
- Memorystore vs Firestore
- Looker vs Looker Studio
- Pub/Sub vs Cloud Tasks
- App Engine vs Cloud Run
- Google-managed keys vs Customer-managed keys (CMEK)
- Identity-Aware Proxy vs VPN
- Compute Engine vs GKE
- Spanner vs Bigtable
- BigQuery vs Cloud SQL
- Firestore vs Cloud SQL
- GKE Autopilot vs Standard: which mode to choose?
- Vertex AI vs BigQuery ML
- VPC Service Controls vs IAM
- Private Google Access vs Cloud NAT