Apache Airflow interviews should test whether candidates can reason about what runs, when it becomes eligible, which data it owns and what happens if a task fails after writing output. Knowing the names of operators helps, but a strong candidate can trace an interval through dependencies, retries and publication without duplicating the work.
These 120 Apache Airflow interview questions progress from DAGs, tasks and scheduling fundamentals to TaskFlow, dynamic mapping, assets, deferrable operators, backfills and production incidents. The examples use Airflow 3 conventions where version matters and call out scheduling behavior to check when moving an older DAG.
How can you tell whether a candidate can debug the Airflow DAG they just described?
Give them a timed-out warehouse task, an unclear external job state and one late upstream partition. Ask them to walk through the evidence before proposing a retry. In remote interviews, Sherlock AI can help reviewers examine evidence of possible AI-assisted cheating, deepfakes, impersonation or other unauthorized assistance alongside that technical reasoning.
Apache Airflow Interview Questions
Pick questions from the three levels based on how much the role owns: an individual DAG, several production pipelines or the wider Airflow platform.
Apache Airflow Interview Questions for Beginners
Start with the architecture, scheduling vocabulary and actions a new DAG author uses.
What is Apache Airflow?
What does DAG stand for in Airflow?
What is the difference between a task and an operator?
What is the difference between a DAG run and a task instance?
What does the Airflow scheduler do?
What does an executor do in Airflow?
Where does Airflow store workflow state?
What is the role of the Airflow API server and UI?
How do you set task dependencies in Airflow?
Can Airflow tasks run in parallel?
How do you define a DAG in Python?
What is the Airflow TaskFlow API?
What is the difference between BashOperator and a Python task?
What is an Airflow provider?
What is a hook in Airflow?
What is an Airflow connection?
What is an Airflow variable?
What is XCom used for?
What is a logical date in Airflow?
What is a data interval in Airflow?
What does start_date mean in a DAG?
How do you schedule a DAG to run daily?
What happens when schedule is set to None?
What is catchup in Airflow?
What is backfill in Airflow?
What is a sensor in Airflow?
What is the difference between poke and reschedule sensor modes?
What does retries control in Airflow?
What is the difference between retry delay and execution timeout?
What is a trigger rule in Airflow?
What does a skipped task mean?
How can you view task logs in Airflow?
What is a TaskGroup?
What is an Airflow pool?
What does it mean to pause an Airflow DAG?
What does clearing a task instance do?
What is the difference between clearing a task and marking it successful?
Why should Airflow tasks be idempotent?
Is Airflow a stream processor?
How do you debug a DAG that is missing from the UI?
Apache Airflow Interview Questions for Intermediate
Move into explicit time semantics, operator behavior, fan-out, testing and deployment constraints.
How do you specify a data-interval schedule explicitly in Airflow 3?
How do you access the data interval inside a TaskFlow task?
How do you specify time zones in Airflow schedules?
How do manual run parameters differ from Airflow Variables?
How does Jinja templating work in an Airflow operator?
How do you prevent a branch join from being skipped?
When would you use short-circuiting rather than branching?
How do depends_on_past and inter-task dependencies differ?
What is the difference between max_active_runs and max_active_tasks?
How do pool slots differ from worker queues?
How do task priority weights affect scheduling?
What is exponential retry backoff useful for?
When should a task skip, fail or retry on bad input?
What does soft_fail do on an Airflow sensor?
When would you choose a deferrable operator over a rescheduling sensor?
How do Airflow assets trigger downstream work?
How do you handle repeated asset updates reliably?
When should a DAG use an ExternalTaskSensor?
When would you use TriggerDagRunOperator instead of asset scheduling?
What is dynamic task mapping in Airflow?
How do expand and partial work together in task mapping?
What happens when a mapped task receives an empty list?
How do you reduce outputs from many mapped tasks?
What is the difference between a dynamic DAG and mapped tasks?
Why should Airflow DAG files avoid database or network calls at import time?
How do you keep task IDs stable when generating DAGs?
What are Airflow DAG import checks meant to catch?
How do you use dag.test in an Airflow development workflow?
How should you unit test Airflow transformation logic?
What is the difference between task callbacks and notifier classes?
How do you choose between Airflow connections and a secrets backend?
How do you share data between Airflow tasks running on different workers?
How do you manage task-specific Python dependencies?
How do you load a warehouse partition safely after a retry?
How do you prevent a DAG from publishing partial output?
How can a successful cleanup task hide a failed Airflow run?
How do setup and teardown tasks differ from ordinary cleanup tasks?
How do you investigate a task stuck in scheduled versus queued?
How do you distinguish scheduler or worker problems from DAG code defects?
What metadata should data engineers record for an Airflow run?
Apache Airflow Interview Questions for Experienced
Use these scenarios to assess choices about replay, incident recovery, consistency and platform design.
How would you design a 90-day backfill without disrupting daily processing?
How do you choose an Airflow 3 backfill reprocessing policy?
How do you design replay when source data has changed?
When is latest-first backfill a poor fit?
How would you recover a pipeline after external job submission timed out?
Can Airflow guarantee exactly-once updates in an external service?
How do you handle late-arriving data without making the daily DAG wait forever?
What belongs in a data contract between Airflow DAGs?
How do you combine several upstream assets for one consistent output?
How would you guard against duplicate or out-of-order event triggers?
Why can a persistent condition flood an event-driven Airflow deployment?
When is a custom timetable warranted?
How do you test a timetable migration from Airflow 2 to 3?
How would you plan an Airflow 2-to-3 upgrade for a production team?
What are Airflow DAG bundles useful for?
How do you release DAG code without breaking active runs?
How do you select an executor for an Airflow platform?
How would you investigate a growing Airflow task queue?
How do you diagnose slow DAG parsing at scale?
What is the operational cost of very large task-mapping fan-out?
How do you keep mapped tasks diagnosable when input order changes?
How would you write a production-safe deferrable trigger?
How do you investigate tasks stuck in deferred state?
Should deferred tasks take up pool slots?
How do you distinguish concurrency limits from rate limits?
How would you design alerts for data freshness in Airflow?
Which metrics help distinguish a healthy Airflow job from healthy data?
How do you use run IDs and external job IDs in troubleshooting?
How do you prevent XCom from becoming a control-plane bottleneck?
How do you isolate teams on a shared Airflow installation?
How would you minimize credential exposure in Airflow workflows?
How should Airflow tasks interact with orchestration metadata in version 3?
How do you design a controlled deployment rollback for a DAG?
How would you test a retry after a partial commit?
How would you design disaster recovery for Airflow?
How do you recover when the scheduler restarts during active work?
How do you prevent inconsistent outputs across multiple destination systems?
When should two pipelines be in one DAG rather than separate DAGs?
How would you conduct a postmortem for a DAG that reported success on stale output?
How would you design an interview exercise that tests real Airflow judgment?
Apache Airflow Interview Questions and Answers
The model answers emphasize direct explanations, workflow examples and trade-offs. Where a pattern depends on an Airflow version or provider, verify it in the target deployment.
Apache Airflow Interview Questions and Answers for Beginners
These answers connect each Airflow concept to a simple workflow and the behavior you would expect in the UI.
1. What is Apache Airflow?
Airflow is a platform for defining, scheduling, and observing finite workflows as code. It records what has run and applies dependency and retry rules; it does not have to perform the underlying data processing itself.
For a daily revenue pipeline, Airflow can wait for source files, submit transformations to a warehouse, and run output checks. The warehouse processes the rows, while Airflow tracks whether yesterday’s published partition is ready.
2. What does DAG stand for in Airflow?
A directed acyclic graph is a set of tasks connected by one-way dependency edges without cycles. It describes which tasks must precede others, not necessarily one linear execution sequence.
An extract task can feed independent fraud and revenue aggregates, which converge at a validation step. A dependency from that validation back to extract would make readiness ambiguous; retries or a new run model repetition instead.
3. What is the difference between a task and an operator?
An operator is reusable logic and configuration for a unit of work. A task is an invocation of an operator or decorated function placed in a DAG, with its own identifier and relationships.
A single warehouse operator class can create separate load_customers and load_orders tasks. Giving each a distinct task ID makes failures, retries and dependencies visible independently, without copying the implementation.
4. What is the difference between a DAG run and a task instance?
A DAG run is one execution of the workflow. A task instance is one task within a specific run, with an additional map index when the task is mapped. Retries are attempts of that instance, not new DAG runs.
If Tuesday’s load retries while Wednesday’s load succeeds, the two task instances are isolated in Airflow’s state. Their code can still conflict if both write to the same output location, so partitioning matters.
5. What does the Airflow scheduler do?
The scheduler creates eligible runs and determines which task instances are ready subject to time, dependencies, pools, and concurrency limits. The executor is responsible for arranging their execution.
If a warehouse load is ready but its pool has no free slots, the scheduler should hold it even though the preceding extract succeeded. More workers alone will not resolve that deliberate throttle.
6. What does an executor do in Airflow?
An executor implements how task execution is launched and monitored. The mechanism can range from local processes to distributed workers or a pod per task, depending on deployment.
On a laptop, local execution is convenient for debugging. In production, independently provisioned workers help absorb bursts, but require consistent environments, available capacity, and accessible task logs.
7. Where does Airflow store workflow state?
Airflow records scheduling and execution state in its metadata database, including runs, task states and supported metadata. Business rows and large artifacts should live in systems designed for them.
The run record can tell you that load_orders succeeded. To verify the 18 million rows it wrote, query the warehouse or a manifest; a green run is not a substitute for data reconciliation.
8. What is the role of the Airflow API server and UI?
The UI exposes operational information and actions through the Airflow application; the API server serves supported application interfaces. Inspecting the UI is a different responsibility from scheduling and executing tasks.
A reviewer can open one failed map index, inspect its logs, and clear that instance from the UI when appropriate. If the UI is down, investigate component health rather than assuming every running job has stopped.
9. How do you set task dependencies in Airflow?
Declare dependencies explicitly in DAG code, commonly with the shift operators or TaskFlow results used as inputs. Edges control readiness; they do not automatically transfer files or database objects.
Writing extract then validate with a dependency exposes the boundary in the graph. If validation needs an object path, pass the path explicitly or agree on a deterministic partition convention rather than assuming workers share disk.
10. Can Airflow tasks run in parallel?
Yes. Tasks that have satisfied their upstream dependencies may run concurrently, within executor capacity and scheduling limits. Determining where parallelism is safe remains an application design decision.
Computing daily totals and customer counts can run together if both read the same committed snapshot. Parallel writes to one mutable summary table may need disjoint partitions or serialization even if the DAG permits them.
11. How do you define a DAG in Python?
In Airflow 3, a common approach is to declare a DAG with the public Task SDK, define tasks and dependencies, then instantiate the DAG so it is available when the file is parsed.
For an hourly ingestion workflow, keep the graph and resource configuration at the module level, but perform network calls inside tasks. The scheduler must be able to parse the file repeatedly without triggering production work.
12. What is the Airflow TaskFlow API?
TaskFlow uses Python decorators to turn functions into Airflow tasks. Calling a decorated function while constructing a DAG defines a task and typically returns a placeholder for its result; the function body runs later as a task instance.
Passing the manifest returned by extract into validate creates a dependency and transports the small manifest through XCom. Calling an undecorated Python helper in the same place executes immediately and does not establish such a dependency.
13. What is the difference between BashOperator and a Python task?
BashOperator runs shell commands, while a Python task executes Python code with normal Python testing and exception handling. Choose the form that best matches the change and the tools it needs.
A versioned vendor CLI can be invoked from BashOperator, while rules that parse and validate a manifest belong in testable Python. Never treat a templated shell argument as safe input merely because it came from the scheduler.
14. What is an Airflow provider?
A provider is a separately versioned package that integrates Airflow with services, often supplying operators, sensors, and hooks. Installing core Airflow does not install all possible integrations.
A DAG that imports a cloud warehouse operator needs a compatible provider in the relevant components. When staging succeeds but production cannot import the operator, compare the installed provider versions and runtime images before rewriting the DAG.
15. What is a hook in Airflow?
A hook wraps access to an external service and often resolves credentials from an Airflow connection. It handles client setup; the surrounding task still owns the operation, retry policy and output validation.
A database hook obtains a client or connection for a warehouse load. The task should still define whether a failed batch is rolled back and whether replay is safe instead of assuming the hook provides exactly-once delivery.
16. What is an Airflow connection?
A connection represents configuration for a service endpoint and authentication, addressed by an ID. DAG code should refer to that ID rather than embed credentials or environment-specific endpoints.
Use a warehouse connection identifier in both staging and production, resolving it separately in each deployment. A repository can then contain the reusable DAG without containing keys or the service password.
17. What is an Airflow variable?
A variable is a deployment-level configuration value, not a task result or a run-local coordination primitive. Prefer code for versioned workflow constants and connections or a secrets backend for appropriate credential storage.
A deployment might hold a nonsecret default region as a variable. Storing the current batch ID in a shared variable is unsafe because overlapping runs can overwrite it; use an explicit task result or durable run-specific record instead.
18. What is XCom used for?
XCom passes small pieces of metadata among task instances. Appropriate payloads include a row count, an object URI or a job ID. It is not the default transport for large data outputs.
An extract task can write Parquet to object storage and return its URI and checksum. Several consumers can read the object directly, preventing the Airflow metadata service from becoming the bottleneck for bulk transfer.
19. What is a logical date in Airflow?
A logical date labels a run in a schedule-specific way and is not the wall-clock time a worker starts. In a data-interval schedule it commonly identifies the beginning of the interval.
A midnight UTC interval run may start late due to capacity but still process the same previous-day data. Do not use actual start time to derive a partition, and verify the timetable before assuming what the logical date means.
20. What is a data interval in Airflow?
A data interval is the time range a data-interval timetable assigns to a DAG run. Represent it with a start and an exclusive end so adjacent runs do not both claim the same boundary records.
A daily orders workflow can query timestamps greater than or equal to Monday 00:00 and strictly less than Tuesday 00:00. A record at precisely Tuesday 00:00 belongs to the next partition, not both.
21. What does start_date mean in a DAG?
The start date sets a scheduling boundary, not a promise to launch work at that instant. The first run depends on the timetable, schedule, and catchup behavior.
For a midnight data-interval timetable with a start boundary on Monday, the run for Monday’s interval becomes eligible after that interval closes. Set a fixed time-zone-aware value rather than computing tomorrow at every parse.
22. How do you schedule a DAG to run daily?
Set a daily schedule such as a cron expression for midnight and select a timezone deliberately. If the workflow depends on a closed data interval, explicitly pick compatible timetable semantics rather than relying on a deployment default.
An operations workflow might simply trigger at UTC midnight. A revenue workflow needs contracts for interval boundaries and late source data, so its test should assert which records a midnight run owns.
23. What happens when schedule is set to None?
A DAG with no automatic schedule is not run periodically by the scheduler. It can still be triggered through supported manual or programmatic mechanisms by authorized callers.
An ad hoc reconciliation DAG can accept a validated partition parameter. With no automatic schedule, require the parameter explicitly instead of assuming a scheduled data interval will be populated.
24. What is catchup in Airflow?
Catchup controls whether the scheduler creates eligible runs for missed intervals on a timetable that supports them, rather than just scheduling the latest eligible interval. It is not the mechanism for reprocessing successful historical runs.
If a pipeline is enabled late, catchup can process unfinished daily partitions when all inputs are still available. A workflow that sends customer emails should not replay historical intervals unless its side effects are designed for it.
25. What is backfill in Airflow?
Backfill deliberately creates runs for a historical date range on a time-based schedule, subject to reprocessing policy and concurrency. It is an operational action, not a default response to every failed task.
If a revenue rule changes, backfill a sampled recent range first and compare outputs before processing months of partitions. A single transient upstream failure may only need a retry or clearing the affected instances.
26. What is a sensor in Airflow?
A sensor waits for an observable condition, such as a committed upstream file, before letting downstream work proceed. Different modes have different resource costs, and a time limit is needed to keep waiting bounded.
For a nightly import, waiting on a completion manifest is stronger than testing whether a folder exists. The folder could have been created before all objects arrived; the manifest provides an explicit readiness contract.
27. What is the difference between poke and reschedule sensor modes?
Poke mode keeps its worker slot while repeatedly checking. Reschedule mode releases the slot between checks and earns capacity for other tasks in exchange for periodic scheduling overhead.
For a ten-second wait, a short poke may be appropriate. Hundreds of sensors polling a vendor feed over several hours should not occupy workers continuously; choose sensible intervals and consider deferral if the operator supports it.
28. What does retries control in Airflow?
The retries setting allows an instance to make additional attempts following eligible failures. The first attempt is separate from the configured retry count, and a task must remain correct if an earlier attempt partly succeeded.
For a recoverable network failure, retries improve resilience. If a task creates an invoice, every attempt should use the same business idempotency key so a timeout after creation does not lead to a duplicate invoice.
29. What is the difference between retry delay and execution timeout?
Retry delay spaces attempts after failures, while execution timeout limits the running time of an attempt. A sensor can also have a separate overall timeout for its waiting policy.
A ten-minute attempt limit prevents a hung transformation from consuming capacity indefinitely. A two-minute retry delay gives an unhealthy service time to recover; neither time limit automatically cancels remote work already started.
30. What is a trigger rule in Airflow?
A trigger rule checks relevant upstream task states to determine whether a task can run. The common default is all_success, which is appropriate for work requiring every immediate upstream result.
Cleanup can need to run even if a load fails. A publish step should usually retain strict success prerequisites, because letting it proceed after failures can expose a partial partition as complete.
31. What does a skipped task mean?
Skipped signifies that a task was deliberately bypassed or had no applicable work, not that it succeeded. Branches, short-circuit logic and zero-length mapping can produce skipped states.
An empty feed may justify a skip; an unexpected supplier outage should not be silently recast as an empty feed. Downstream trigger rules and monitoring need to distinguish the two so a data gap is visible.
32. How can you view task logs in Airflow?
Open the specific DAG run and task instance in the UI, then select its logs and the relevant attempt or map index. Remote logging is useful when the executing worker is ephemeral.
If a second attempt succeeds, inspect the first attempt to learn whether the failure was a transient network error or a durable defect. Record the run ID and map index so the diagnosis is reproducible.
33. What is a TaskGroup?
A TaskGroup organizes related tasks in the graph and can namespace task IDs. It is not a separate scheduler, execution environment, or capacity limit by itself.
Group ingestion tasks by source for navigation. If all of those tasks call one rate-limited API, assign a shared pool as well; collapsing them visually in the UI does not limit concurrency.
34. What is an Airflow pool?
A pool limits the number of weighted task slots that can be occupied by a set of tasks, usually to protect a shared dependency. Multiple DAGs can use the same pool.
If five workflows query one database, creating a common pool limits aggregate pressure across workflows. Size it to downstream tolerance, and apply slot weights to expensive queries instead of guessing from worker count.
35. What does it mean to pause an Airflow DAG?
Pausing stops normal scheduling of the DAG according to Airflow’s operational rules. It should not be used as a guarantee that an already running task or external job was canceled.
Before making a schema change, pause or drain deliberately and inspect unfinished task instances plus warehouse activity. If there is an external load still running, handle it using the external system’s controls.
36. What does clearing a task instance do?
Clearing resets eligible instance state so Airflow can run that task again within the existing DAG run. It does not roll back the work already done by earlier attempts.
If upload succeeded but Airflow lost contact, first verify the stored artifact. Then clear the narrowest needed instance only if its operation is safe to repeat or known to be incomplete.
37. What is the difference between clearing a task and marking it successful?
Clearing asks Airflow to run the selected work again. Marking success records a successful state without executing the task’s business logic, so downstream work may become eligible without new output.
Only mark success after independently verifying that the required artifact meets the DAG’s contract, and document the reason. Otherwise use an idempotent replay so the status reflects an actual verified operation.
38. Why should Airflow tasks be idempotent?
Idempotency means rerunning the same logical work does not introduce duplicate or inconsistent business effects. Retries, clears and historical reprocessing all make this property valuable.
A load can stage rows and merge by event ID, or reliably replace the entire owned partition. An unconditional append can double totals after a retry even when the original failure happened after commit.
39. Is Airflow a stream processor?
No. Airflow orchestrates runs and bounded tasks; it does not replace an event-by-event processing engine. Event-triggered scheduling changes when a workflow starts, not the nature of its execution.
Kafka and a stream-processing service can maintain continuous session state. Airflow can deploy the job, reconcile its outputs, or aggregate closed hourly partitions without running a task for each event.
40. How do you debug a DAG that is missing from the UI?
Check whether the DAG source was distributed, whether the DAG processor parsed it successfully, and whether the current user has access to see it. An import or provider error can stop registration altogether.
For a newly deployed DAG, compare the deployed source revision across environments and inspect import errors. Running the workflow manually cannot help if the application never successfully loaded its definition.
Apache Airflow Interview Questions and Answers for Intermediate
These answers explain how to implement each pattern and where it tends to break in practice.
41. How do you specify a data-interval schedule explicitly in Airflow 3?
Choose a data-interval timetable when each run must own a closed range such as yesterday. A bare cron expression on Airflow 3 can use trigger semantics instead, depending on deployment configuration, so pin the intended timetable.
A migration test should compare the expected interval start, end and first eligible run. A cron expression that fires at the same wall-clock time can still move the partition label if its timetable changes.
42. How do you access the data interval inside a TaskFlow task?
Read data interval values from the runtime task context, and handle cases where the run has no applicable interval. Use the resulting typed timestamps as parameters for the underlying data system.
For a date-filtered SQL task, bind start and end timestamps and keep the predicate half open. With a manual run or asset event, require a documented partition contract instead of blindly dereferencing missing context.
43. How do you specify time zones in Airflow schedules?
Use time-zone-aware datetimes and an explicit timezone where schedule behavior matters. Airflow can store timestamps consistently while still computing a business schedule in local wall-clock time.
A New York reporting job that runs at 03:00 local does not always run at a constant UTC hour. Test the business date and interval endpoints around daylight-saving transitions; do not approximate a local day as 24 UTC hours.
44. How do manual run parameters differ from Airflow Variables?
Parameters are inputs for a run and can be validated; Variables are shared configuration at the deployment level. A run parameter should express an allowed choice, not silently mutate defaults for concurrent runs.
A rerun can accept a specific partition and execution mode, while the target account comes from a deployment connection. Schema validation catches malformed dates or unsupported modes before business logic uses them.
45. How does Jinja templating work in an Airflow operator?
Airflow renders fields declared as templated by the operator with runtime context, such as interval timestamps, parameters and upstream metadata. Other fields are not rendered simply because they contain braces.
Use a supported template field to select an object prefix from the run interval, or pass typed values directly to a callable. For SQL values, use the database driver’s parameter binding rather than interpolating arbitrary run input.
46. How do you prevent a branch join from being skipped?
A branch typically skips unselected paths. At the join, use a rule that allows those skips while rejecting upstream failures, such as none_failed_min_one_success when at least one path must succeed.
If one branch performs a full refresh and the other applies a delta, the join should validate whichever path ran. The default all_success would skip the join because the other branch was intentionally skipped.
47. When would you use short-circuiting rather than branching?
Use short-circuiting when one predicate decides whether downstream work applies. Use branching when different downstream paths represent distinct operations that are worth observing separately.
If the partition contains no rows, a simple downstream skip may be enough. If you must choose between full and incremental loading, branching records which path actually ran. Check whether the short-circuit operator ignores downstream trigger rules.
48. How do depends_on_past and inter-task dependencies differ?
depends_on_past adds a relationship to the same task in the preceding run. Ordinary DAG edges connect different tasks within the same run; neither is a replacement for validating the underlying data contract.
A cumulative snapshot that requires yesterday’s state can use a past dependency. This reduces recovery flexibility: a failed Monday may prevent Tuesday from running, so document how a missing snapshot is repaired before catchup.
49. What is the difference between max_active_runs and max_active_tasks?
The first limits active runs for a DAG; the second limits concurrent task instances for the DAG. Deployment parallelism, pools, executor capacity and task-level limits can additionally constrain actual throughput.
A DAG can allow several daily runs to be active but cap total running tasks so one partition burst does not occupy all workers. If a database is shared across DAGs, a pool is still needed for a cross-DAG cap.
50. How do pool slots differ from worker queues?
Pools protect named shared capacity through scheduler accounting. Queues, where supported by the executor, route work to an appropriate worker group. Assigning a queue does not enforce a service’s safe request rate.
Send memory-heavy jobs to workers with more RAM and charge extra slots to the common warehouse pool. Jobs still need both adequate compute and permission to consume the warehouse’s concurrency budget.
51. How do task priority weights affect scheduling?
Priority influences the order in which eligible tasks compete for limited capacity. It does not make unmet dependencies disappear or guarantee a strict order under batched scheduling.
A time-sensitive publication task can be prioritized over a best-effort rebuild, but the more reliable isolation is to cap rebuild concurrency or reserve capacity. Use observed queue delay rather than assuming a high priority eliminates contention.
52. What is exponential retry backoff useful for?
It increases the wait between retry attempts so a flaky dependency is not hit at the same rate by every failing task. Set a maximum delay and budget attempts based on the workflow’s freshness requirement.
A warehouse briefly rejecting requests may recover without intervention. An invalid column name will not heal because attempts are spaced out; classify configuration and data-contract failures separately to avoid wasting capacity.
53. When should a task skip, fail or retry on bad input?
Skip only when the workflow contract says there is legitimately no work. Fail when an expected invariant is violated; retry when the cause is plausibly transient and replay is safe.
A holiday with no expected feed can be skipped. A malformed file for a business day should stop publication. A temporary storage timeout can be retried, provided a prior attempt did not leave a misleading success marker.
54. What does soft_fail do on an Airflow sensor?
It can turn a sensor timeout into a skipped outcome rather than failure. That makes sense for optional inputs, but it requires downstream rules that handle an absent result explicitly.
A supplemental enrichment feed can be skipped after a bounded window if the base dataset remains valid. A required payments file should fail visibly instead of letting a dashboard publish an incomplete day.
55. When would you choose a deferrable operator over a rescheduling sensor?
Choose deferral when a supported operator can put idle waiting on the triggerer and resume when a relevant event is detected. Rescheduling remains a useful time-based polling option when no compatible deferrable operator exists.
Deferring long warehouse job waits can restore worker capacity during the job. Confirm the triggerer is deployed and monitored, and check whether deferred tasks count against the pool if you need to cap concurrent remote jobs.
56. How do Airflow assets trigger downstream work?
A producer can declare an asset outlet and emit an update when work succeeds. A consumer can schedule from that asset instead of guessing when the producer’s clock-based run will finish.
Publish an asset update after writing and validating the customer snapshot. The consumer must still know which version or partition to read; the update signals availability, not an instruction to read whatever file happens to be newest.
57. How do you handle repeated asset updates reliably?
Do not assume a one-event-to-one-run processing contract. Read relevant event information, identify exact versions from durable metadata, and make consumers safe when updates accumulate or are replayed.
If two source partitions arrive during a backlog, a consumer can process all unhandled manifests in a durable checkpoint rather than trusting the latest event alone. A reconciliation check should detect any partition still missing.
58. When should a DAG use an ExternalTaskSensor?
Use it when the dependency is another DAG or task state and run alignment is part of the contract. Set which states are acceptable, which cause failure, and how to align the corresponding logical dates.
A midnight consumer waiting for a 22:00 producer may need an explicit date mapping. If the contract is actually that a dataset exists, asset scheduling or checking a committed manifest may express it more directly.
59. When would you use TriggerDagRunOperator instead of asset scheduling?
The operator is useful for an explicit command to start another workflow, optionally passing a defined configuration. Asset scheduling models a consumer reacting to updated data without the producer knowing every consumer’s identity.
A supervisor can deliberately trigger a recovery DAG for a chosen partition. A curated orders table should normally notify consumers through a data contract so new consumers can subscribe without edits to the producer.
60. What is dynamic task mapping in Airflow?
Dynamic task mapping expands work into task instances based on inputs known at runtime. The DAG definition describes the mapping; the scheduler materializes the instances instead of requiring a static task per input.
A discovery task can return a bounded list of partition names and a mapped load can process each independently. Keep that list compact and deterministic enough to debug; do not map one task per raw record.
61. How do expand and partial work together in task mapping?
expand supplies arguments that vary across instances, and partial supplies arguments common to every instance. Mixing them distinguishes input data from invariant configuration such as a target pool or connection ID.
For a file-processing operator, the bucket and pool can be fixed while each mapped instance receives a distinct file key. If two inputs are meant to stay paired, construct records or explicitly zip them instead of relying on a multiple-argument expansion order.
62. What happens when a mapped task receives an empty list?
Zero-length mapping creates no mapped instances to execute and the mapped task is marked skipped. Downstream behavior depends on its trigger criteria and on whether empty input is expected.
An optional enrichment workflow might accept zero sources. If a critical delivery unexpectedly discovers no files, fail a validation step before mapping so a missing feed does not look like a normal skipped day.
63. How do you reduce outputs from many mapped tasks?
A downstream task can consume mapped results, but those results are retrieved lazily and may involve many metadata reads. Aggregate small statuses or use durable external summaries when fan-out is large.
Hundreds of checks can return lightweight success metadata. For thousands of large result payloads, have tasks write per-item manifests and let a warehouse or object-store-aware reducer summarize them efficiently.
64. What is the difference between a dynamic DAG and mapped tasks?
Generating a DAG dynamically creates its structure during parsing from deployment-time inputs. Mapping keeps a stable logical graph and expands concrete instances during a run based on runtime data.
A configuration repository can define one DAG per business team. Discovering today’s files is different: put that inside a task and map over its result so parsing never needs to contact a live storage service.
65. Why should Airflow DAG files avoid database or network calls at import time?
DAG files are parsed repeatedly. Top-level I/O wastes processing time, adds runtime dependencies to graph discovery, and can make workflows disappear when a service is slow or unavailable.
Do not list today’s objects at import time. Read a small versioned deployment manifest locally if the graph must vary by team, and move live discovery into a task so failure and retries are operationally visible.
66. How do you keep task IDs stable when generating DAGs?
Derive IDs from stable business identifiers, use a deterministic iteration order, and validate collisions. Avoid using list positions if adding an input can change which work an old identifier represents.
If sources are identified by region codes, use load_us and load_eu rather than load_0 and load_1. This keeps run history, alerts, links and targeted recovery intelligible across deployments.
67. What are Airflow DAG import checks meant to catch?
Import checks detect syntax and dependency problems and verify that expected DAGs load in a representative environment. They are faster and narrower than running the full workflow.
In CI, check that the target DAG IDs are present, no import errors are reported and critical edges still exist. An import check passing does not prove that credentials, schemas or external services will be available during a run.
68. How do you use dag.test in an Airflow development workflow?
Use it for a local DAG execution against controlled inputs and dependency substitutes, following the installed version’s options. This checks orchestration and contextual logic more than a pure import test does.
An extract-transform example can write to an isolated fixture target. Local success does not cover distributed image differences, production executor routing, concurrency or secret lookup, so keep a staging run for those boundaries.
69. How should you unit test Airflow transformation logic?
Keep pure transformations independent of scheduler and task context, so they can run under an ordinary test runner. Then test the thin task wrapper separately for parameters, inputs and emitted outputs.
A normalization function can be tested with malformed rows, duplicates and empty inputs. A wrapper test can assert that the correct interval and manifest URI are passed without provisioning a scheduler for every edge case.
70. What is the difference between task callbacks and notifier classes?
A callback is invoked for an applicable lifecycle event; a notifier provides a reusable notification implementation that can be configured for those hooks. Event semantics matter more than notification formatting.
A team can route final load failures to an incident channel with the DAG ID and run link. A task manually marked in the UI need not invoke the same callback as a real execution failure, so use metrics or audit logs for broader coverage.
71. How do you choose between Airflow connections and a secrets backend?
A connection ID is the abstraction the DAG references; a secrets backend is one supported way to resolve its values without storing them in DAG code. Configure access so only relevant components and workloads can retrieve credentials.
An orders loader can reference orders_warehouse while production resolves credentials from a managed store. Test resolution from the actual worker environment and rotate credentials without editing the DAG’s business logic.
72. How do you share data between Airflow tasks running on different workers?
Use a remote durable system for the artifact and pass a reference such as a URI or immutable table snapshot through XCom or explicit run context. Treat worker disk as local and disposable.
An extract can write partition data and a manifest, then a validator can run on a different worker and read that manifest. Include a checksum or version so it cannot accidentally validate an overwritten location.
73. How do you manage task-specific Python dependencies?
Use dependency isolation appropriate to the workload, such as a supported virtual environment, prebuilt external environment or containerized task. Preserve a reproducible package set and explicitly handle input and output contracts.
A DAG may orchestrate one step with a heavy ML runtime and another with a lightweight data client. Pin both images or environments and avoid forcing the scheduler to import packages required only inside a remote worker task.
74. How do you load a warehouse partition safely after a retry?
Use an atomic replace or merge for the interval, with stable business keys and a consistent source snapshot. If external submit is asynchronous, persist the job ID or reuse a stable request token before resubmitting.
A retry after commit should produce the same partition and reconciliation counts. If a previous warehouse job is still running, reattach or resolve it before allowing a second writer to compete for the same partition.
75. How do you prevent a DAG from publishing partial output?
Separate writing, verification and publication. Stage artifacts outside the consumer-visible location and move the pointer or write the completion marker only after policy checks pass.
If one of 30 files fails, staging can contain 29 without advertising a complete partition. Make the release step strict and atomic, and remove stale staging by age or run ID without deleting any currently referenced version.
76. How can a successful cleanup task hide a failed Airflow run?
A DAG run’s result depends on the states of its leaf tasks. If a cleanup task is the sole leaf and runs regardless of upstream outcomes, its success can mask a failure that occurred earlier.
Design the graph so an important validation or failure-preserving terminal path determines the result. Where appropriate, use setup and teardown semantics and test the failure path rather than trusting the happy-path graph.
77. How do setup and teardown tasks differ from ordinary cleanup tasks?
They model scoped resources and their lifecycle. A teardown can run after scoped work fails when the setup ran successfully, and its effect on the final run state is separately configurable.
Provision a temporary compute cluster as setup, process data, then release it as teardown. Decide explicitly whether a teardown failure should fail the entire run or trigger a separate resource-leak alert and repair flow.
78. How do you investigate a task stuck in scheduled versus queued?
Scheduled generally points to eligibility or scheduler dispatch limits; queued means work has been handed toward execution but has not started. Confirm the exact transition history, then inspect the subsystem responsible for the next transition.
For scheduled tasks, look at active runs, pools and scheduler activity. For queued tasks, check worker health, executor events and routing; a Kubernetes pod pending for quota differs from a Celery worker not consuming the selected queue.
79. How do you distinguish scheduler or worker problems from DAG code defects?
Compare the spread and timing of failures with component health and logs. A repeatable error at the same line in one task suggests code or input; widespread delays across unrelated DAGs suggest shared infrastructure.
If many independent tasks stop reaching running at once, inspect scheduler heartbeat and executor capacity. If only yesterday’s partition fails schema checks, reproduce against that input and avoid unnecessary scheduler restarts.
80. What metadata should data engineers record for an Airflow run?
Capture the DAG and task identifiers, run ID, interval or selected partition, input and output versions, validation counts and an external job identifier when relevant. Keep secrets and raw personal data out of logs.
When a reconciliation alert fires, a reviewer should trace it to one exact warehouse job and one immutable manifest. Durable run metadata is also useful after transient worker disks have been removed.
Apache Airflow Interview Questions and Answers for Experienced
These answers show how to diagnose failures, protect downstream data and validate a recovery plan.
81. How would you design a 90-day backfill without disrupting daily processing?
Start with a read-only range preview, fixed input versions and a tiny canary. Set a low backfill-specific run limit and protect shared systems with pools; neither active run limit on its own guarantees production headroom.
Compare sampled partitions to the current outputs, then grow the batch only while daily freshness and warehouse saturation remain within budget. Publish rebuilt partitions independently, leaving an auditable rollback pointer for any that diverge.
82. How do you choose an Airflow 3 backfill reprocessing policy?
Choose missing runs only, failed runs as well, or completed runs as well according to what the incident requires. Airflow will not create a competing backfill run for a logical date whose latest run is still queued or running.
For a deployment gap, consider missing and failed intervals. A corrected revenue formula can require rebuilding successful intervals; justify the broader scope and verify existing downstream consumers understand how the release is versioned.
83. How do you design replay when source data has changed?
Treat replay as either an exact reproduction or a recomputation from a declared new snapshot. Persist input versions and transformation revisions so those two outcomes are not mistaken for each other.
If an upstream partition was overwritten, reading its current path cannot prove what a prior run saw. Use immutable manifests or snapshots, compare row counts and totals, and expose which output version was regenerated.
84. When is latest-first backfill a poor fit?
Latest-first ordering is unsuitable when each run consumes state produced by an earlier one or when partition order affects reconciliation. It can be useful for independent runs under a freshness deadline.
A rolling snapshot that depends on yesterday’s output normally needs chronological rebuilding from a known checkpoint. Independent daily reports can be rebuilt most recent first to recover the partitions users care about immediately.
85. How would you recover a pipeline after external job submission timed out?
First determine whether the external service accepted the request, using a durable job identifier or an idempotency token. Reattach to existing work where possible; submit again only when the original submission can be ruled out or the service deduplicates it.
A worker may time out after the warehouse already started a merge. Check job state, target partition ownership and committed results before clearing the Airflow task, so a recovery attempt does not launch a second writer blindly.
86. Can Airflow guarantee exactly-once updates in an external service?
No. The scheduler’s state and an external commit are separate and can diverge when a process fails between them. Exactly-once business effects depend on application-level consistency and supported sink operations.
An API call can succeed immediately before task status reporting fails. Use a stable idempotency key, conditional write or transactional outbox design, and prove a replay leaves the intended business result unchanged.
87. How do you handle late-arriving data without making the daily DAG wait forever?
Define when a partition is provisionally publishable and how later corrections are applied. Choose bounded waiting and a correction window based on measured arrival patterns and consumer needs.
A dashboard can publish morning totals marked provisional, then reconcile late orders through a separate replay path. Immutable versions and completeness metrics let consumers distinguish a usable early result from the finalized output.
88. What belongs in a data contract between Airflow DAGs?
Define asset identity, version or partition key, expected schema, readiness criteria, freshness, and what happens on correction or failure. The contract should survive changes to internal task IDs.
A consumer should wait for a committed, validated orders partition and read its exact manifest, not rely on a producer’s final task name alone. This allows producers to refactor without silently changing downstream meaning.
89. How do you combine several upstream assets for one consistent output?
Require compatible versions for the actual target partition rather than equating a set of asset updates with a consistent snapshot. Decide which sources are mandatory and which can use known fallback data.
A sales report should not combine Tuesday orders with Wednesday exchange rates solely because both assets recently updated. Validate partition compatibility and write the exact source versions to output metadata before publishing.
90. How would you guard against duplicate or out-of-order event triggers?
Assume events may arrive more than once or out of order. Assign a stable event or partition-version identifier, keep a durable record of applied versions, and reject regressions unless a documented replay is requested.
If version three precedes a delayed version two, the consumer should not roll back silently. Track the latest accepted version for each partition and run periodic reconciliation for expected but unprocessed data.
91. Why can a persistent condition flood an event-driven Airflow deployment?
An event trigger that fires when a condition stays true can repeatedly declare new readiness rather than acknowledging distinct events. Match the integration to real transitions or version identifiers and add acceptance controls.
Checking that a fixed object exists without remembering a previously processed version can spur repeated work. Use an event-compatible watcher and a durable version checkpoint, then monitor empty-work runs as a sign of faulty triggering.
92. When is a custom timetable warranted?
Use one when built-in cron, timedelta or asset schedules cannot represent a real scheduling or partition contract. Keep its decisions deterministic, testable and based on data the scheduler can access reliably.
A business-calendar job may need explicit treatment for exchange holidays and settlement windows. Use a versioned calendar and test adjacent business days, manual runs and scheduling around timezone transitions before production rollout.
93. How do you test a timetable migration from Airflow 2 to 3?
Compare old and new scheduling behavior for expected first run, logical date, interval boundaries, catchup and manual runs. Pin the timetable if a deployment default can change the data contract.
Choose dates around midnight, a gap long enough for catchup, and daylight-saving changes. Compare actual data selectors, not only a cron expression string; identical fire times can still assign different intervals.
94. How would you plan an Airflow 2-to-3 upgrade for a production team?
Inventory plugins, providers and DAGs that import internal modules or query the metadata database. Migrate to supported interfaces, validate database migrations and deploy dependency-compatible images after a staging rehearsal.
Pin a representative DAG suite and test schedules, task execution, backfills and alerting on a metadata copy with sensitive values handled appropriately. Plan database rollback carefully; restoring only an old container image may be insufficient after a schema migration.
95. What are Airflow DAG bundles useful for?
Bundles organize how code is delivered to DAG processing and task execution. Where the deployment and bundle implementation support versioning, they can associate a run with an executable source revision.
Make a code-only hotfix in staging and verify whether running tasks or cleared instances use the expected revision. Record bundle version and task image separately so an audit can explain both the orchestration code and runtime environment.
96. How do you release DAG code without breaking active runs?
Keep task identities and shared contracts compatible across a rollout, pin reproducible dependencies and deploy components coherently. If a breaking change is unavoidable, drain or isolate affected runs before switching.
A rename mid-run can make an earlier task reference disappear and complicate recovery. Keep a transition window or create a versioned DAG when behavior changes materially, and document which consumers read the old and new outputs.
97. How do you select an executor for an Airflow platform?
Evaluate task duration, burst size, isolation needs, deployment infrastructure and queue latency. Local processes, long-lived distributed workers and per-task pods make different startup and operational trade-offs.
Frequent short jobs may favor already-running workers, while rare tasks with custom runtimes may benefit from isolated pods. Capacity tests should include dependency distribution, log visibility and tail latency during failure or deployment.
98. How would you investigate a growing Airflow task queue?
Measure where time accumulates: dependency readiness, scheduler dispatch, executor queue, environment startup or task execution. Group by DAG, pool and executor path to avoid one global average obscuring the bottleneck.
If most queued tasks wait on pod startup, inspect quota and image pulls. If scheduler delay rises for all DAGs while metadata queries slow, tune that bottleneck before adding workers that cannot receive work.
99. How do you diagnose slow DAG parsing at scale?
Separate expensive top-level work from process or deployment limits. Inspect parsing durations, import errors, source-file change patterns and metadata pressure before raising parser parallelism.
A single file generating thousands of DAGs or importing a large ML library can dominate discovery. Move expensive imports to task execution when possible, split files deliberately and validate that a deployment reaches the scheduler on time.
100. What is the operational cost of very large task-mapping fan-out?
A large map adds scheduler work, metadata rows, logs, queue pressure and potentially many external calls. It also makes UI diagnosis harder even when the actual data work for each instance is trivial.
Combine small files into bounded chunks, cap concurrent mapped instances, and keep reducers from materializing huge payloads in memory. Use a distributed processing engine when one Airflow task per input does not add meaningful recovery value.
101. How do you keep mapped tasks diagnosable when input order changes?
Use a deterministic manifest, preserve the exact input set for replay, and include the business key in logs or a named mapping index where supported. Do not assume numerical map indexes are durable business identifiers.
If file B moved from index 7 to index 8 after discovery changed, retrying based only on the old index can mislead an operator. Capture the input key and source version so the correct failed work can be located.
102. How would you write a production-safe deferrable trigger?
A trigger should serialize the information needed for reconstruction, use nonblocking I/O, and emit events with enough stable identity that retries or duplicate execution do not repeat business writes.
The trigger can wait for a warehouse job ID and yield its terminal status. The resumed operator should validate it and make any state-changing continuation idempotent; the trigger should not be the only record that a job existed.
103. How do you investigate tasks stuck in deferred state?
Verify the triggerer is healthy, capacity is available, trigger code is importable and the external condition can actually resolve. Then distinguish waiting normally from a trigger that is repeatedly failing or blocking.
If all deferred warehouse waits stop progressing after a provider rollout, compare triggerer logs and installed versions. If just one job is still running externally, respect its timeout and trace the specific job rather than restarting every triggerer.
104. Should deferred tasks take up pool slots?
It depends on what the pool protects and how it is configured. If the external job still consumes a scarce resource while Airflow waits, including deferred work in pool accounting may be necessary.
If a warehouse can handle ten concurrent expensive queries, releasing the pool slot after submission could allow far more than ten queries internally. If no external capacity is consumed during deferral, freeing the slot may be appropriate.
105. How do you distinguish concurrency limits from rate limits?
Concurrency bounds in-flight work; a rate limit bounds how many operations can begin over a period. Airflow pools primarily account for concurrency and do not automatically enforce requests per second.
A pool of five tasks can still generate hundreds of calls in a second if requests are short. Add a shared rate limiter or use bulk endpoints, respect documented retry headers, and record throttling as a capacity signal.
106. How would you design alerts for data freshness in Airflow?
Measure when a verified partition reaches consumers relative to its contractual deadline. A task failure alert helps diagnose a cause, while freshness detects missing, delayed or incomplete outputs even when the DAG appears green.
For a daily report due by 08:00, alert when the validated publication marker has not arrived by the deadline. Link the responsible interval, recent run states and last healthy version, and deduplicate repeated notifications.
107. Which metrics help distinguish a healthy Airflow job from healthy data?
Track system measures such as queue age, task duration, retries and component heartbeat separately from completeness, freshness, validation status and consumer-visible publication. Neither family proves the other is healthy.
If tasks succeed within budget but an upstream feed shrank unexpectedly, distribution and row-count checks expose what task status missed. If data is correct but past deadline, investigate scheduling and execution latency instead of changing a validation rule.
108. How do you use run IDs and external job IDs in troubleshooting?
Use the run ID with its DAG identifier to locate an execution, then record task, attempt and mapping identity where needed. Associate that record with external job IDs so external service events can be joined to the orchestration history.
Two reprocess runs may refer to the same partition but launch different warehouse jobs. Keeping these identifiers separate lets investigators attribute the final write and proves which implementation produced the output.
109. How do you prevent XCom from becoming a control-plane bottleneck?
Set explicit payload expectations and use XCom for control messages, not bulk data or a high-volume progress stream. Control fan-out and retention, even if a deployment can offload large objects to a separate backend.
A thousand mapped tasks can return small manifests, but a reducer should not repeatedly load each result for unrelated checks. Aggregate outside Airflow when the application naturally produces thousands of heavy output objects.
110. How do you isolate teams on a shared Airflow installation?
Distinguish UI and API authorization from execution trust. Combine workload identities, secret controls, pools and resource limits with stronger environment separation when teams cannot be trusted to execute code on shared infrastructure.
Separate team queues and pools can control capacity, but do not by themselves guarantee isolation of secrets or runtime privileges. Use separate deployments or execution boundaries where the required trust level exceeds what the shared installation can provide.
111. How would you minimize credential exposure in Airflow workflows?
Reference connections rather than embedding credentials, use appropriately scoped identities, and control which execution environments may resolve the referenced secrets. Treat templating output, XCom and logs as surfaces that may be retained or widely visible.
A task can access a warehouse through a short-lived workload identity without exposing a shared password. Review failure logs and emitted payloads during staging because a client library can accidentally include request configuration in exceptions.
112. How should Airflow tasks interact with orchestration metadata in version 3?
Use public SDK context for the running task and supported API or client interfaces for administrative metadata. Do not query or mutate internal metadata tables from task code.
For an operations dashboard, fetch a run’s state using supported endpoints under proper authorization. For the executing task’s interval, use task context; separate the runtime need from administrative access.
113. How do you design a controlled deployment rollback for a DAG?
Define separate rollback procedures for code, run scheduling and business outputs. Reverting DAG source does not undo jobs already committed or restore an output pointer advanced by an earlier run.
Stop additional unsafe work first, identify affected partitions and use the stored immutable versions to restore publication if appropriate. Reconcile external job state before allowing replays under the rolled-back code.
114. How would you test a retry after a partial commit?
Use a controlled environment to fail immediately after the external write but before the task reports success. Retry the same interval with the same idempotency key and assert output consistency and absence of duplicates.
For a daily payments partition, simulate a post-commit timeout, then check both the final ledger totals and the count of committed external operations. A unit test of the success path will not uncover this boundary failure.
115. How would you design disaster recovery for Airflow?
Identify the metadata, DAG definitions, runtime dependencies, logs and connection configuration needed to restore operations, plus the separate application data and state. Test a defined restore sequence against recovery objectives.
Recovering the scheduler database does not restore a missing warehouse snapshot or cancel jobs running in another region. Before resuming a restored deployment, reconcile external job IDs and deduplicate pending partition publication.
116. How do you recover when the scheduler restarts during active work?
Verify the scheduler and executor have reconciled running and queued tasks, then inspect external work that may outlive a worker or scheduler process. Avoid clearing everything merely because some Airflow status is delayed.
For a long warehouse task, confirm whether the external job continued and whether its task can reattach. Re-run only operations whose effect is known or safe to repeat; compare queue and run health after recovery.
117. How do you prevent inconsistent outputs across multiple destination systems?
Airflow ordering does not provide a distributed transaction. Choose a single authoritative publication record, make downstream writes idempotent, and design reconciliation or explicit compensating steps for partial completion.
If a warehouse commits before an index update fails, leave the output as pending rather than announcing global success. Replay the index update with the versioned key, then advance the availability marker once both destinations satisfy the contract.
118. When should two pipelines be in one DAG rather than separate DAGs?
Keep work together when it has one owner, release cadence, failure boundary and coherent retry model. Separate independently owned outputs or workloads with distinct scheduling and recovery needs, and define the contract between them.
If finance and marketing use the same validated orders asset but deploy and recover separately, independent DAGs reduce coupling. A tightly coordinated staging and validation sequence for one asset may be easier to operate as one graph.
119. How would you conduct a postmortem for a DAG that reported success on stale output?
Reconstruct the timeline and compare scheduler state, task histories, validation evidence and the consumer-visible version. Identify which check failed to detect the stale output rather than treating the green run as proof.
A terminal cleanup task may have hidden a failed write, or validation may have read the prior version. Add a version-aware publication check and a negative test that reproduces the incident, then assign an owner to the corrective action.
120. How would you design an interview exercise that tests real Airflow judgment?
Give the candidate a small DAG with a concrete business deadline and one ambiguous incident. Ask them to explain readiness, state transitions, the data contract and the safest recovery, not simply name configuration flags.
For example, a mapped load timed out after submitting a warehouse job while a cleanup leaf succeeded. Strong candidates ask which run and partition are affected, trace the job ID, protect output from duplication, and fix the misleading success signal.
Apache Airflow Documentation and Further Reading
These official Airflow references cover the Airflow 3 workflows discussed here. Check version-specific behavior in your installed Airflow release and provider packages before adopting examples in production.
Similar Posts
