Menu

Data Engineering interview question · Question 13 of 18

How would you investigate a suddenly slower data pipeline?

  • Medium
  • debugging / scenario
  • ~10 min
  • High relevance
  • 2 min read
  • Updated Oct 2026

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

  1. Adding nodes before understanding the cause.
  2. Looking only at total duration instead of per-step and per-task timings.

By , Data Engineer and Founder of DataDank · Last reviewed Oct 2026

Progress is saved in this browser only. No account needed.

Search
Filter by type