0
0
Apache Airflowdevops~10 mins

Debugging with Airflow CLI - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to list all DAGs using the Airflow CLI.

Apache Airflow
airflow [1] list
Drag options to blanks, or click blank then click option'
Adags
Btrigger
Ctasks
Dvariables
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'trigger' instead of 'dags' causes an error because 'trigger' is for triggering DAG runs.
Using 'tasks' or 'variables' lists tasks or variables, not DAGs.
2fill in blank
medium

Complete the command to trigger a DAG run named 'example_dag'.

Apache Airflow
airflow dags [1] example_dag
Drag options to blanks, or click blank then click option'
Alist
Bpause
Ctrigger
Dunpause
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'list' only shows DAGs, does not start a run.
Using 'pause' or 'unpause' changes DAG state but does not trigger runs.
3fill in blank
hard

Fix the error in the command to view logs of a task instance for DAG 'example_dag', task 'task1', run on '2023-01-01'.

Apache Airflow
airflow tasks [1] example_dag task1 2023-01-01
Drag options to blanks, or click blank then click option'
Alogs
Bview_log
Cshow_logs
Dlog
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'log' causes a command not found error.
Using 'show_logs' or 'view_log' are invalid subcommands.
4fill in blank
hard

Fill both blanks to list all tasks of DAG 'example_dag' for run date '2023-01-01'.

Apache Airflow
airflow tasks [1] example_dag --[2] 2023-01-01
Drag options to blanks, or click blank then click option'
Alist
Brun
Cexecution_date
Dstart_date
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'run' instead of 'list' lists a task run, not tasks.
Using '--start_date' is invalid for this command.
5fill in blank
hard

Fill all three blanks to clear task instances for DAG 'example_dag', task 'task1', on date '2023-01-01' with confirmation skipped.

Apache Airflow
airflow tasks [1] example_dag task1 --[2] 2023-01-01 --[3]
Drag options to blanks, or click blank then click option'
Aclear
Bexecution_date
Cyes
Dforce
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'run' instead of 'clear' does not clear tasks.
Using '--force' is not a valid flag to skip confirmation.
Omitting '--yes' causes the command to ask for confirmation.