Complete the code to import the Airflow DAG class.
from airflow.[1] import DAG
The DAG class is imported from airflow.models to define workflows.
Complete the code to set the default arguments for the DAG.
default_args = {'owner': 'airflow', 'start_date': [1](2024, 1, 1)}The start_date requires a datetime object from the datetime module.
Fix the error in the DAG definition by completing the missing argument.
dag = DAG('example_dag', default_args=default_args, schedule_interval=[1])
The schedule_interval expects a cron string or preset like '@daily' to run daily.
Fill both blanks to create a simple task using BashOperator.
from airflow.operators.bash import [1] task1 = [2](task_id='print_date', bash_command='date', dag=dag)
BashOperator is used to run bash commands as tasks in Airflow.
Fill all three blanks to set task dependencies so task1 runs before task2 and task3.
task1 [1] task2 task1 [2] task3 task2 [3] task3
The '>>' operator sets the order of tasks in Airflow DAGs, meaning the left task runs before the right.
