A preprocessing pipeline slowed from 10 to 45 minutes. What is the right first step?
- Exam domain
- Data Preparation17% of the exam
- Difficulty
- Medium
- In this mock
- 8 questions on this domainPractise this domain
Why the exam asks this
Data Preparation (17% of the exam)
Objective in the exam guide: Monitoring data processing pipelines to recognize bottlenecks
Monitoring pipelines for bottlenecks is named.
Why C is the answer
Time each stage and monitor resource use to find the bottleneck
Monitoring stage timings and resources shows which step regressed and whether it is I/O, CPU or GPU bound.
Remember: Measure each stage to find bottlenecks.
How it works
Pipeline monitoring tracks stage timings and resource use to find bottlenecks.
In detail
- Measure per stage.
- Fix the slowest stage first.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Rewrite the whole pipeline in another language before measuring anythingWrong
Rewrites without data waste effort.
B. Add more GPUs without checking anythingWrongMost tempting
More GPUs may not help an I/O problem.
Why it tempts: More hardware feels like a quick fix.
C. Time each stage and monitor resource use to find the bottleneckRight
Measure each stage to find bottlenecks.
D. Delete the loggingWrong
Logs help diagnose.
Use case
An illustrative scenario, not a real incident.
Illustrative: stage timings show a new CSV source; switching it to Parquet restores 10 minutes.
See it in different ways
flowchart LR S0["Time each stage"] --> S1["Check GPU, CPU and I/O"] --> S2["Find the regression"] --> S3["Fix"] --> S4["Re-measure"]
How to read this chart
- Read it in order: Time each stage, then Check GPU, CPU and I/O, then Find the regression, then Fix, then Re-measure.
flowchart TD
Q{"Resource at limit?"}
Q -->|"Disk or network"| A0["Fix I/O, use Parquet"]
Q -->|"CPU"| A1["Move work to GPU"]
Q -->|"GPU memory"| A2["Partition or spill"]How to read this chart
- At "Resource at limit?": if "Disk or network", go to "Fix I/O, use Parquet"; if "CPU", go to "Move work to GPU"; if "GPU memory", go to "Partition or spill".