data-engineering interview questionsQuestion 13 of 18
Data Engineering interview question · Question 13 of 18
How would you investigate a suddenly slower data pipeline?
Short answer
First confirm and narrow it down: which run, which step, since when, and is the output still correct? Then compare a slow run with a recent good one: the input size, the query plan, the stage and task times, and anything that changed, such as code deploys, settings, upstream schemas or cluster size. The usual causes are data growth, a new skewed key, too many small files, a changed join strategy, competition for resources, or a delay upstream. Fix the specific cause you found, rather than just adding more compute.
Detailed explanation
1. Scope
- Is it every run or one? Since which date? One task or the whole DAG?
- Is the output still correct? (A slowdown caused by a join explosion also produces wrong data.)
2. Compare with a good run
| Compare | Where |
|---|---|
| Input rows and bytes | Source metrics, audit tables |
| Stage durations and task-time distribution | Spark UI / engine query profile |
| Physical plan (join strategies, shuffles) | SQL tab, EXPLAIN |
| Recent changes | Deploy history, config, upstream schema |
| Resources | Cluster size, queueing, concurrency |
3. Common causes and fixes
- Volume growth → partition pruning, incremental processing, scaling.
- New skew → AQE skew join, isolate hot keys, salting.
- Small files → compaction.
- Plan change (broadcast no longer chosen) → statistics, hints, threshold review.
- Upstream delay → it is waiting, not slow; fix the dependency or alerting.
4. Prevent recurrence
Track duration and input volume per run, alert on deviation from the recent baseline, and record root causes.
Common mistakes
- Adding nodes before understanding the cause.
- Looking only at total duration instead of per-step and per-task timings.
Progress is saved in this browser only. No account needed.

