LakehouseLakehouseTalent Ecosystem

Data engineering — a Lakehouse ecosystem

Airflow Interview Questions That Test Real Skill

Riley Spraggs ·

Close-up of colorful programming code on a dark computer screen.

Any candidate can produce a syntactically valid DAG now — and most do. The Airflow interview questions that still tell you something are the ones a generative tool cannot answer for a candidate, because they depend on what broke at 3am and what the fix cost. Ask about idempotency, data intervals, catchup, deferrable sensors, XCom discipline, alerting and how they wire Databricks jobs and dbt into a schedule, and the docs-deep candidate separates from the production-tested one inside twenty minutes.

The gap is measurable. Most Airflow users now write pipelines with AI assistance, but only 9% are happy with the DAGs generic AI tools produce — hallucinated operators and outdated syntax are the norm. That is exactly what a documentation-fluent, production-shallow candidate sounds like: confident, plausible, wrong in the places that cost you a reprocessing window.

What are the most common Airflow interview questions?

Start with the standard set, but score them on reasoning rather than recall. Every one of these has a textbook answer and a production answer, and the difference is audible.

Question What a strong answer sounds like Red flag
What is a DAG and what belongs in one? Boundaries drawn around a data product or SLA, not around a team’s folder structure “It’s a directed acyclic graph of tasks” and nothing more
What makes a task idempotent? Deletes/overwrites its own partition before writing; keyed on the data interval, not now() Confuses idempotent with “has retries enabled”
When do you use catchup=True? Only when every run is parameterised by its interval and the sink can absorb concurrent writes Says “always off, it caused an incident once” with no diagnosis
What are XComs for? Small scalars and keys — pointers to object storage, never the payload Has passed a DataFrame through XCom and sees no problem
How do you make a sensor cheap? Deferrable operators and triggers, reschedule mode as the fallback Describes poke mode and a long timeout as the design
Task failed at 2am — walk me through it Logs, task instance history, upstream data check, then a hypothesis Jumps straight to “clear the task and rerun”

The last row matters most. Databricks observed over 80,000 real customer pipeline issues during a single limited preview of its ZeroOps agent, and the finding was that most needed organisation-specific context to resolve. Debugging judgement — knowing which of your upstreams lies, which partition is always late — is the thing you are actually paying for. It does not come from the docs.

What is an Airflow DAG and how should a candidate explain it?

Ask the question plainly and listen for scope. A weak answer defines the acronym. A strong answer talks about where the boundary goes: one DAG per data product with a shared SLA, upstream dependencies expressed as assets or sensors rather than one monolith with 400 tasks, and a clear rule for what gets its own schedule.

Push on dependency style. Can they explain the difference between a task dependency and a data dependency, and when to use cross-DAG triggering versus an asset-driven schedule? Someone who has only read tutorials will reach for TriggerDagRunOperator for everything. Someone who has run this in anger will tell you when they stopped doing that and why.

Scheduling and data intervals

This is the single best filter in the whole interview. Ask: a DAG scheduled daily at 00:00 runs — which day’s data is it processing, and which variable tells you? The right answer references the data interval — the run covers the window that just closed, and the task should be keyed to data_interval_start/data_interval_end, not to the wall clock. Anyone who has written a task using datetime.now() and then tried to backfill it has learned this the hard way and will say so.

If a candidate cannot tell you which day’s data a midnight run processes, nothing else they say about Airflow is load-bearing.

How do you handle backfills and catchup in Airflow?

Backfills are where idempotency stops being a word and starts being a bill. Ask for a specific story: the last time they backfilled six months of a pipeline, what they set max_active_runs to, how they avoided hammering the warehouse, and what they did about the one task that was not safe to replay.

Good answers cover:

  • Partition-scoped writes. Each run deletes and rewrites exactly its own partition, so a replay is a no-op on everything else.
  • Concurrency control. max_active_runs and pools, because 180 simultaneous runs against a Snowflake warehouse or a Databricks job cluster is a cost incident, not a backfill.
  • Side effects quarantined. Notification tasks, external API calls and anything non-replayable sits behind a flag or in a separate DAG.
  • A verification step. Row counts or checksums per interval, not “it went green.”

The red flag is a candidate who treats catchup as a boolean they inherited. The second red flag is someone who has only ever cleared tasks in the UI and never run a controlled backfill from the CLI or API.

What Airflow interview questions should experienced data engineers answer?

For senior candidates, move to the operational layer — the part that AI assistance has barely touched. dbt Labs found that while 72% of data teams prioritise AI-assisted coding, only 24% prioritise AI-assisted pipeline management — testing, observability and quality controls. That is the hiring opportunity: code generation is commoditised, pipeline reliability is not. The wider bar for that role is in data warehouse engineer skills.

Retries and failure semantics. Why would you set retries=3 on one task and retries=0 on another? A strong answer distinguishes transient infrastructure failure from deterministic data failure — retrying a schema mismatch three times just delays the page by fifteen minutes.

Alerting and SLAs. Ask what they alert on. The mature answer is freshness and outcome, not task failure — a DAG that succeeds while producing zero rows is worse than one that fails loudly. Ask who receives the alert, what the runbook says, and how they killed alert fatigue.

Version fluency. 26% of Airflow users have already upgraded to Airflow 3, which makes the estate genuinely split. Candidates should be able to discuss schedule versus the deprecated schedule_interval, asset and event-driven scheduling, task SDK and remote execution — and should tell you plainly which version they actually ran in production rather than which one they read about.

XCom limits. Ask what happens when an XCom gets large. The answer should involve the metadata database, a custom backend pointing at S3 or ADLS, and a policy that XComs carry keys and pointers only.

Deferrable operators. Ask when a sensor should become deferrable. Worker slot exhaustion from dozens of poking sensors is a classic production scar; if they have the scar, they will describe the triggerer process without prompting.

How should a candidate orchestrate Databricks jobs and dbt from Airflow?

This is the section most interviews skip and most production estates live in. dbt is the most commonly paired tool with Airflow, at 44% adoption, so “how do you run dbt from Airflow” is a mainstream question. Listen for the trade-off, not a tool name: one BashOperator calling dbt build is simple and gives you no task-level retry or lineage; task-per-model via Cosmos gives you granular observability and a parsing cost at DAG-render time. A candidate who has done both will tell you where the line sits for their model count. Our dbt interview questions go deeper on the modelling side.

For the lakehouse itself, do not assume transfer. Among Airflow users, Snowflake sits at 36.6% and Databricks at 34.7% — neither dominates, and the orchestration patterns differ. The warehouse half of that split is in the Snowflake interview questions.

Pattern Databricks Snowflake
Submit and wait DatabricksRunNowOperator against an existing job, or SubmitRun for ephemeral SQL operator against a warehouse; suspend policy matters
Cost control Job clusters vs all-purpose; instance pools; who owns cluster config Warehouse sizing, auto-suspend, multi-cluster scaling
Thin-vs-thick question Does Airflow trigger Workflows, or re-implement them task by task? Does Airflow own the DAG or does a task graph live in Snowflake Tasks?
Deferrable path Deferrable Databricks operators to free workers during long runs Deferrable SQL execution, async query polling

The best answer to the thin-vs-thick question is an opinion with a reason. Plenty of good engineers let Databricks Workflows own intra-job dependencies and use Airflow purely as the cross-system scheduler. Plenty of others keep everything in Airflow for one pane of glass. Either is defensible; “whatever the team was doing” is not. If Databricks is your platform, pair this with a structured 90-minute vetting loop and the PySpark questions that cover what runs inside those jobs. For the streams those DAGs often wait on, use the Kafka interview questions.

How do you test Airflow skill in a practical exercise?

Skip the whiteboard. Give them a broken DAG and 45 minutes.

The setup. A three-task DAG that ingests a daily file, transforms it, and loads to a table. Plant four defects: a task that uses datetime.now() instead of the data interval, a poke-mode sensor with a six-hour timeout, an XCom carrying a full result set, and a load task that appends instead of overwriting its partition.

The ask. “This ran fine for three months. We need to backfill 90 days. What breaks, in what order, and what do you change first?”

Scoring. Strong candidates find the non-idempotent load immediately and sequence the fixes by blast radius. Mid candidates find two of four. Weak candidates rewrite the DAG cosmetically and declare it fixed — which is the same failure mode developers report with generated code: 66% name “AI solutions that are almost right, but not quite” as their biggest frustration. Almost-right is the enemy here, and an exercise with planted defects is the cheapest way to detect it.

Let them use whatever assistant they normally use. You are not testing recall; you are testing whether they can spot the plausible-but-wrong suggestion and say why. That is the whole job now.

The cost of getting this wrong is not abstract. The U.S. Bureau of Labor Statistics puts the median annual wage for data scientists at $120,230 as of May 2025, and senior orchestration engineers clear that comfortably — so a mis-hire on the scheduling layer is a six-figure mistake before you count the reprocessing, the missed SLAs and the trust you spend explaining a bad number to finance. Two hours of structured questions is cheap insurance. If you would rather start from a shortlist of people who have already run this in production, that is what the data engineering network is for.

FAQ

What Airflow interview questions separate production experience from documentation knowledge?

Ask what makes a task idempotent and what happens on a 90-day backfill. A production-tested engineer talks about partition-scoped overwrites, max_active_runs and keying tasks to the data interval rather than the wall clock. Someone who has only read the docs confuses idempotency with having retries enabled.

Should candidates be allowed to use AI tools during an Airflow exercise?

Yes. Only 9% of Airflow users are happy with the DAGs generic AI tools produce, with hallucinated operators and outdated syntax the common complaints, so syntax recall tells you almost nothing. Let the candidate use their usual assistant and score whether they can spot the plausible-but-wrong suggestion.

Should I ask about Airflow 2 or Airflow 3?

Both. 26% of Airflow users have already upgraded to Airflow 3, so the estate is genuinely split. Candidates should be able to discuss schedule versus the deprecated schedule_interval, asset and event-driven scheduling, and remote execution — and say plainly which version they actually ran.

How important is dbt orchestration in an Airflow interview?

It is a mainstream question, not a niche one — dbt is the most commonly paired tool with Airflow at 44% adoption. Listen for the trade-off between a single BashOperator calling dbt build and task-per-model orchestration via Cosmos, and where the candidate draws the line for their model count.

What practical exercise tests Airflow skill best?

Give them a working three-task DAG with four planted defects — a task using datetime.now(), a poke-mode sensor, an oversized XCom and an appending load task — and ask what breaks on a 90-day backfill. Score on whether they sequence the fixes by blast radius rather than rewriting cosmetically.

Databricks, Snowflake, Microsoft Fabric, Apache Spark and dbt are trademarks of their respective owners, used here only to describe specialists’ experience. Lakehouse is an independent talent network operated by Sloane Staffing; none of these vendors endorses or sponsors this site.

Find data engineers who have run Airflow in production

Search the data engineering network