Complete the code to import the Airflow DAG class.
from airflow import [1]
The DAG class is imported from airflow to define workflows.
Complete the code to set the DAG's start date using datetime.
from datetime import datetime start_date = datetime([1])
The datetime constructor requires year, month, day as integers in that order.
Fix the error in the DAG definition by completing the missing argument.
dag = DAG('example_dag', [1]=start_date)
The DAG requires the start_date argument to know when to begin scheduling.
Fill both blanks to create a task using BashOperator with a command and assign it to the DAG.
from airflow.operators.bash import BashOperator bash_task = BashOperator(task_id='print_date', bash_command=[1], dag=[2])
The bash_command should be a string with the shell command, and dag should be the DAG object.
Fill all three blanks to set task dependencies so task1 runs before task2 and task2 before task3.
task1 [1] task2 task2 [2] task3 # Using Airflow's bitshift operators [3]
The '>>' operator sets the order: left task runs before right task. The last line shows the full chain.