Skip to content
Tech Interview Prep
Technical interview guide

Data Pipeline Orchestration

Scheduling and sequencing interdependent pipeline steps as a DAG, with retries and backfills.

Minutes to read
3
Practice MCQs
25
Interview Q&A
25
Edition
v5
Editorial status
Reviewed

Scope: Apache Airflow 3.3.x, Prefect 3, Kubernetes 1.36, and OpenLineage 1.53 documentation current 2026-08-31.

Overview

Curated: · Written: · Reviewed:

Data Pipeline Orchestration

In one line

An orchestrator releases DAG tasks in dependency order, records each attempt and recovers failed work. It does not make the data correct. Reach for it when steps depend on each other, need retries, or must be rerun for past intervals (backfills).

Key definitions

  • Data interval: the window a run owns. In Airflow 2.2+ and 3.x, logical_date equals data_interval_start, and the run is created after the interval closes.
  • try_number: the operational attempt count. The data interval is the business identity.
  • Idempotency key: a value derived from the interval, so a retried write converges on one outcome.
  • Pool: a slot limit that protects one shared resource.
  • Terminal-state rule: the condition that marks a run successful. A green run means that rule held, nothing more.
  • Backfill: creating or rerunning runs for historical intervals.

Formulas and complexity

With unlimited concurrency, the shortest wall-clock time is set by the longest dependency path:

Tmin=max⁡p∈paths∑t∈pdtT_{min} = \max_{p \in \text{paths}} \sum_{t \in p} d_t

Worked example (durations from the question): extract_a (10) to transform (8) to report (5) is the longest path.

Tmin=10+8+5=23 minT_{min} = 10 + 8 + 5 = 23 \text{ min}

Load (4 min) sits on a shorter path and does not change the answer.

How it works

  1. The scheduler releases a task once its upstream edges succeed, for a specific data interval.
  2. Each attempt gets a try_number. Retries are only safe for transient failures on idempotent work.
  3. Writes converge through partition overwrite, a merge on a stable key, or staging plus an atomic publish.
  4. Pools and max_active limits decide how many attempts run at once.
extract_a 10 min transform 8 min extract_b 6 min load 4 min report 5 min

When to use and when not to

SituationOrchestratorSimpler option
Cross-system dependencies, partitioned backfills, lineageyesnone
One independent job on a fixed scheduleoptionalmanaged scheduler plus run-to-completion job
Per-partition retry and per-partition successyes, with dynamic mappingone all-or-nothing task
Waiting on an external feedyes, with a timeout and reschedule or deferrable waitevent trigger with a producer contract

Traps interviewers probe

  1. Reading wall-clock time. A backfill run today reads today's data for every interval. Fix: parameterize reads and writes by data_interval_start and data_interval_end.
  2. Retrying a non-idempotent write. A retry after a partial commit duplicates rows. Fix: derive the key from the interval (for example orders:2026-09-10), never from try_number.
  3. Treating a green DAG as correct. Green proves the terminal rule held. Fix: check row counts and freshness against the producer contract before publishing.
  4. Letting a backfill starve live runs. Fix: cap backfill concurrency, put it on its own pool or queue, and dry-run the interval set first.
  5. Holding worker slots while polling. A poke-mode sensor occupies a slot for the whole wait. Fix: use reschedule or deferrable mode with a timeout.

Interview tips

Open by naming the boundary: the orchestrator sequences and tracks work, and task code owns correctness.

Expect these follow-ups:

  • What does a green DAG prove?
  • The task ran twice. What happens?
  • The upstream data arrived late. What now?
  • How do you backfill 14 months without hurting the 06:00 freshness SLA?
  • A retry came after a partial commit. How do you prevent a duplicate?

30-second outline: "The orchestrator releases tasks by data interval and records each attempt. A green run means the terminal rule held, not that the data is complete. I parameterize every read and write by the interval's start and end, so retries and backfills hit the same partition. Writes are idempotent through partition overwrite or a merge on a stable key, with the key derived from the interval. Backfills get a dry run, capped concurrency and their own pool, so the live schedule keeps its slots. Row-count and freshness checks against the producer contract tell me whether the data is right."

Feedback on this overview

Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.