# Airflow Interview Questions for Data Engineers: Answers You Can Practise

> Common Apache Airflow interview questions with short answers, and a free Docker lab where you can run a DAG for each one instead of only reading about it.

Page: https://datautility.in/blog/airflow-interview-questions-practice-hands-on
This is the Markdown copy of the page. The tool itself runs in the browser: your files are processed on your own device and are not uploaded.

Published 2026-11-29 · Analyze & protect · airflow interview questions, airflow interview questions for data engineers, apache airflow interview, airflow dag questions, airflow catchup interview, airflow xcom interview, data engineer interview airflow

Short answer: interviewers rarely ask you to recite definitions. They ask what happens when something goes wrong: a task fails, a DAG runs twice, a schedule is missed. This guide lists the questions that come up most, with a short answer for each, and points to a free lab where you can see the behaviour for yourself.

Open the tool: [Airflow Lab](https://datautility.in/airflow-playground)

## The questions

| Question | Short answer | Try it in the lab |
|---|---|---|
| What is a DAG? | A set of tasks with dependencies and no loops, written as Python code. | Your first DAG |
| Operator, task and task instance: what is the difference? | An operator is a template, a task is an operator in a DAG, a task instance is one run of a task for one DAG run. | Dependencies |
| What is an XCom and when should you avoid it? | A small message passed between tasks. Avoid it for large data: pass a path or a table name. | TaskFlow and XCom |
| What does catchup do? | It creates runs for every missed interval since the start date. | Schedules and catchup |
| Catchup or backfill? | Catchup is automatic for missed intervals. A backfill is started by you for a date range. | Schedules and catchup |
| How do you handle a flaky task? | Retries with a delay, and exponential backoff for an unstable service. Not a fix for bugs. | Retries |
| What is an idempotent task and why does it matter? | Running it twice gives the same result. It makes retries and reruns safe. | Retries |
| How do you run a different path depending on data? | Branching, with a trigger rule on the join task. | Branching |
| How do you create tasks for a list only known at run time? | Dynamic task mapping with expand(). | Dynamic task mapping |
| How do you keep a big DAG readable? | Task groups. | Task groups |
| How do Airflow and Spark work together? | Airflow orchestrates, Spark computes. A task starts the Spark job. | Spark inside a DAG |
| What do the scheduler, DAG processor and triggerer do? | The scheduler decides what runs next, the DAG processor reads the DAG files, the triggerer runs deferred tasks. | Open the Airflow UI |

## How to answer well

- **Start with the short definition, then give an example.** "Catchup creates runs for missed intervals. For example, a daily DAG with a start date a week ago gets seven runs the first time you turn it on."

- **Talk about failure.** For every feature, know what happens when it breaks: what retries do, what a skipped task means, why a downstream task did not run.

- **Mention idempotency.** If you say that tasks should be safe to run twice, you are already ahead of most answers.

- **Say what Airflow is not.** It is an orchestrator, not a place to process big data. Heavy work belongs in Spark, a warehouse or a database.

## Practise instead of memorising

Reading answers is not the same as having seen a retry happen. In the free [Airflow Lab](https://datautility.in/airflow-playground) each row of the table above has a short DAG. Run it, change one thing, and run it again. The fastest way to remember what catchup does is to turn it off and watch the runs disappear.

## More reading

For the official definitions, use the [Airflow documentation](https://airflow.apache.org/docs/apache-airflow/stable/index.html). For how to explain your own pipelines, read [Airflow schedules, catchup and retries](https://datautility.in/blog/airflow-schedule-catchup-retries-explained).

## How to use the Airflow Lab: step by step

1. Read the question table
2. Start the Airflow Lab
3. Run the lesson for each question you are unsure about
4. Say the answer out loud with an example

## When to use the Airflow Lab

- Preparing for a data engineer interview
- Revising Airflow before a technical screen
- Finding the gaps in what you know about Airflow
- Preparing questions to ask a candidate

## Example

Input:

```
a DAG that cleans data, runs a Spark job and lists the result
```

Output:

```
Task states in the lab, the DAG in the Airflow UI, the job in the Spark UI
```

## Frequently asked questions

### What Airflow topics come up most in data engineer interviews?
DAGs and tasks, XComs, schedules and catchup, retries and idempotency, branching and task mapping, and how Airflow works with Spark or a warehouse.

### How should I prepare for an Airflow interview?
Learn the short definitions, then run a small DAG for each topic so you have seen the behaviour. The Airflow Lab has a lesson for each of the common topics.

### Do I need to know Airflow internals?
A basic picture helps: the scheduler, the DAG processor, the triggerer, the executor and the metadata database. You rarely need more unless the role is about running Airflow itself.

Tip: Pick the three questions you are least sure about and run their lessons first. Hands-on beats rereading.

## Related tool pages

- [Learn Apache Airflow Free: Hands-On Airflow Lab](https://datautility.in/learn-airflow-free): Practise Apache Airflow hands-on, free: DAGs, dependencies, TaskFlow, schedules, retries, branching and mapping, with 11 lessons and the real Airflow UI on your laptop.

## Also try

- [A free Airflow playground](https://datautility.in/blog/free-airflow-playground-learn-apache-airflow-docker)
- [Schedules, catchup and retries](https://datautility.in/blog/airflow-schedule-catchup-retries-explained)
- [Branching, mapping and task groups](https://datautility.in/blog/airflow-branching-dynamic-task-mapping-task-groups)

## More guides

- [Data Profiler: Check Data Quality Before You Use It](https://datautility.in/blog/data-profiler-check-data-quality)
- [Compare Two CSV or Excel Files: Find Added, Removed and Changed Rows](https://datautility.in/blog/compare-two-csv-files-find-differences)
- [Data Masking: Hide Emails, Phones and Names Before Sharing](https://datautility.in/blog/data-masking-hide-emails-phones-pii)
