What does "distributed computing" mean in a framework such as Apache Spark?
- Exam domain
- Data Ingestion and Transformation34% of the exam
- Difficulty
- Easy
- In this mock
- 33 questions on this domainPractise this domain
Why the exam asks this
Task Statement 1.4: Apply programming concepts.
Objective in the exam guide: Define distributed computing.
Every big data service on AWS, from Glue to EMR to Redshift, is distributed. Understanding the idea explains their tuning and failure modes.
Why C is the answer
Work is split into tasks that run in parallel across many machines, then combined
Distributed computing splits work across many machines that run in parallel.
Remember: Distributed computing: split the work, run it in parallel, combine the results.
How it works
Distributed computing splits a large job into smaller tasks that run in parallel on many machines.
In Spark, data is divided into partitions, executors process them in parallel and the results are combined.
This is why partition sizes and data skew matter: the slowest task sets the job time.
Clues in the question
The words that point to the answer, and what each one tells you.
- Distributed
- Spread across many machines.
In detail
- Spark splits data into partitions, processes them in parallel on executors and combines results.
- This lets jobs scale beyond one machine.
Side by side with look-alikes
| Approach | Scales beyond one machine? |
|---|---|
| Distributed computing | Yes |
| One large machine | No |
| Manual sequencing | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Data is copied to every user's laptopWrong
Copying to laptops is not computing at scale.
B. Jobs are run one after another by handWrong
Manual sequencing is not distributed computing.
C. Work is split into tasks that run in parallel across many machines, then combinedRight
Distributed computing: split the work, run it in parallel, combine the results.
D. All work runs on one large machineWrongMost tempting
One machine is the opposite of distributed.
Why it tempts: A very large machine is powerful, so it can seem equivalent. But it is a single machine, not distributed.
In practice
- Size partitions so each task has a reasonable amount of work.
Use case
An illustrative scenario, not a real incident.
A Spark job splits a 2 TB file into 4,000 partitions and processes them on 50 executors at once.
See how it works
flowchart LR D["Large dataset"] --> P1["Partition 1"] D --> P2["Partition 2"] D --> P3["Partition 3"] P1 --> E1["Executor 1"] P2 --> E2["Executor 2"] P3 --> E3["Executor 3"] E1 --> R["Combined result"] E2 --> R E3 --> R
How to read this chart
- "Large dataset" leads to "Partition 1" and "Partition 2" and "Partition 3".
- "Partition 1" leads to "Executor 1".
- "Partition 2" leads to "Executor 2".
- "Partition 3" leads to "Executor 3".
- "Executor 1" leads to "Combined result".
- "Executor 2" leads to "Combined result".
- "Executor 3" leads to "Combined result".