An architect must choose data processing services for two needs: a new streaming pipeline with no existing code, and hundreds of existing Spark jobs. Which two choices fit? (Select TWO.)
- Exam domain
- Designing and planning a cloud solution architecture~25% of the exam
- Difficulty
- Medium
- In this mock
- 18 questions on this domainPractise this domain
Why the exam asks this
Designing network, storage, and compute resources.
Objective in the exam guide: Choosing data processing solutions.
Architects must justify processing choices.
Why A and E are the answers
A multiple-response question. Choose two. There is no credit for picking only some of them.
Dataproc (Managed Service for Apache Spark) for the existing Spark jobs
Dataflow for the new streaming pipeline
Dataflow suits new batch and streaming pipelines; Dataproc runs existing Spark with little change.
How it works
Dataflow is a managed service for Apache Beam pipelines, batch and streaming.
Dataproc, now documented as Managed Service for Apache Spark, runs Spark and Hadoop.
Existing code favors Dataproc; new pipelines often favor Dataflow.
Clues in the question
The words that point to the answer, and what each one tells you.
- No existing code, streaming
- Dataflow.
- Existing Spark jobs
- Dataproc.
In detail
- Existing code and skills often decide the service.
- Both services autoscale workers.
Side by side with look-alikes
| Need | Service |
|---|---|
| New streaming pipeline | Dataflow |
| Existing Spark | Dataproc |
| Cache | Memorystore |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Dataproc (Managed Service for Apache Spark) for the existing Spark jobsRight
Dataflow suits new batch and streaming pipelines; Dataproc runs existing Spark with little change.
B. Cloud Run functions for the Spark jobsWrongMost tempting
Functions do not run Spark.
Why it tempts: Serverless seems simpler. But Spark needs a Spark runtime.
C. Memorystore for the streaming pipelineWrong
Memorystore is a cache.
D. Cloud DNS for bothWrong
DNS resolves names.
E. Dataflow for the new streaming pipelineRight
Dataflow suits new batch and streaming pipelines; Dataproc runs existing Spark with little change.
In practice
- Provision Dataproc clusters per job to avoid idle cost.