Orchestration: Airflow
An orchestrator decides when and in what order a pipeline's steps run and what happens when a step fails. Airflow describes the pipeline in Python code: a DAG — a directed acyclic graph of tasks — with a schedule, retries and dependencies. Airflow does not process data itself. It launches what does: SQL in the warehouse, a Spark job, dbt build, a file export.
The topic is tested on three things. First, vocabulary: DAG, task, DAG run and task instance are easy to mix up, and they decide what exactly gets retried and rerun. Second, time: the logical date, the data interval and catchup do not behave the way intuition suggests, and Airflow 3.0 changed their defaults. Third, resources: sensors in poke mode and code at the top level of a DAG file quietly eat worker slots and parse time.
The current release is Airflow 3.4 (November 2026). Where behaviour differs from Airflow 2, the page names the version that changed it.
Topic map
- Airflow core — DAG, operator, task, DAG run and task instance; the Airflow 3 components and what keeps running when the scheduler is down.
- Scheduling and backfill — the logical date and the data interval, timetables and the Airflow 3.0 default change, catchup and backfill, retries, idempotent tasks and top-level code.
- Sensors, XCom and mapping —
pokeversusreschedule, deferrable operators, XCom for metadata only, and dynamic task mapping.
Common traps
| Mistake | Consequence |
|---|---|
| Treating the logical date as the run time | Under an interval schedule the Jan 15 run starts on Jan 16 — and the code reads the wrong day |
Taking the slice from datetime.now() | A retry after midnight or a backfill loads another day under an old run and doubles the data |
| Assuming a cron string in Airflow 3 yields a full interval | Since Airflow 3.0 it is CronTriggerTimetable: start = end, the interval filter is empty |
Relying on the catchup default | True in Airflow 2, it queues hundreds of runs; False since Airflow 3.0, it no longer fills gaps |
Keeping sensors in poke mode | Every waiting sensor holds a worker slot, leaving regular tasks nowhere to run |
| Passing data through XCom | XCom lives in the metadata DB: a table in it bloats the database and slows the scheduler |
Interview relevance
Airflow is asked to see whether a candidate separates a pipeline's definition from its execution and understands time in Airflow. A strong answer explains behaviour through the mechanism: "the run starts at the end of the interval, because only then is the interval's data complete".
Typical checks:
- How DAG, operator, task, DAG run and task instance relate and what each component does.
- When a run fires and which data interval it carries — in Airflow 2 and in Airflow 3.
- What catchup and backfill are and why a task must be idempotent.
- Why
rescheduleand deferrable operators beatpoke, and how to fan work out withexpand.
Common wrong answer: "The Jan 15 run starts on Jan 15 and processes that day's data." Under an interval schedule it starts on Jan 16, once the interval has closed; under CronTriggerTimetable it starts on Jan 15, but with a zero-length interval.