Which statement about Dask and Spark for big data processing is accurate?
- Exam domain
- Data Manipulation and Software Literacy19% of the exam
- Difficulty
- Medium
- In this mock
- 10 questions on this domainPractise this domain
Why the exam asks this
Data Manipulation and Software Literacy (19% of the exam)
Objective in the exam guide: Using distributed data processing frameworks for processing big data
Distributed frameworks are named.
Why C is the answer
Both partition data across workers and run tasks in parallel
Dask and Spark split data into partitions and schedule tasks across workers. Both can use GPUs, Dask through Dask-cuDF and Spark through the RAPIDS Accelerator.
Remember: Dask and Spark both partition work, and both can use GPUs.
How it works
Distributed processing frameworks such as Dask and Spark partition data and parallelize work.
In detail
- Both partition and parallelize.
- Both have GPU paths.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Spark cannot use GPUs under any configurationWrongMost tempting
Spark has a RAPIDS accelerator.
Why it tempts: Spark is often thought of as CPU only.
B. Dask only works with imagesWrong
Dask handles DataFrames, arrays and more.
C. Both partition data across workers and run tasks in parallelRight
Dask and Spark both partition work, and both can use GPUs.
D. Both can only process data that already fits in a single machine's memory at onceWrong
They exist to exceed one machine.
Use case
An illustrative scenario, not a real incident.
Illustrative: a Python-first team picks Dask; a data platform team on Spark adds GPU nodes.
See it in different ways
mindmap
root(("Big data"))
n1["Dask"]
n2["Python native"]
n3["Dask-cuDF for GPUs"]
n4["Spark"]
n5["JVM based"]
n6["RAPIDS Accelerator for GPUs"]How to read this chart
- The centre is "Big data".
- "Dask" covers "Python native", "Dask-cuDF for GPUs".
- "Spark" covers "JVM based", "RAPIDS Accelerator for GPUs".
flowchart TD
Q{"Team and platform?"}
Q -->|"Python-first, notebooks"| A0["Dask"]
Q -->|"Existing Spark platform"| A1["Spark with RAPIDS"]How to read this chart
- At "Team and platform?": if "Python-first, notebooks", go to "Dask"; if "Existing Spark platform", go to "Spark with RAPIDS".