HomeInterview QuestionsWho is responsible for creating DAGs and assigning…

Who is responsible for creating DAGs and assigning tasks in Airflow, and is this part of the runtime?

🟡 Medium Conceptual Junior level
1Times asked
May 2026Last seen
May 2026First seen

💡 Model Answer

In Apache Airflow, the DAG (Directed Acyclic Graph) is defined by a developer or data engineer in a Python file. The DAG file declares the workflow structure, including the tasks and their dependencies. The tasks themselves are also defined within the DAG file, typically as instances of operators. The Airflow scheduler, which runs as a separate process, reads these DAG files, parses them, and schedules the tasks for execution. The actual execution of tasks happens in worker processes or executors, which are part of the runtime environment. Therefore, the creation of DAGs and tasks is a design-time activity performed by developers, while the scheduler and executor handle the runtime execution of those tasks.

This answer was generated by AI for study purposes. Use it as a starting point — personalize it with your own experience.

🎤 Get questions like this answered in real-time

Assisting AI listens to your interview, captures questions live, and gives you instant AI-powered answers — invisible to screen sharing.

Get Assisting AI — Starts at ₹500