0
0
Apache Airflowdevops~10 mins

Airflow UI overview - Interactive Code Practice

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

Complete the code to start the Airflow webserver.

Apache Airflow
airflow [1]
Drag options to blanks, or click blank then click option'
Awebserver
Bscheduler
Ctriggerer
Dworker
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'scheduler' instead of 'webserver' starts the background scheduler, not the UI.
Using 'worker' or 'triggerer' does not start the UI.
2fill in blank
medium

Complete the URL to access the Airflow UI on the local machine.

Apache Airflow
http://localhost:[1]
Drag options to blanks, or click blank then click option'
A8080
B5000
C8000
D9000
Attempts:
3 left
💡 Hint
Common Mistakes
Using port 5000 or 8000 which are common for other web apps but not Airflow.
Using port 9000 which is unrelated.
3fill in blank
hard

Fix the error in the command to list all DAGs in Airflow.

Apache Airflow
airflow [1] list
Drag options to blanks, or click blank then click option'
Awebserver
Btasks
Cscheduler
Ddags
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'webserver' or 'scheduler' which are unrelated to listing DAGs.
Using 'tasks' which is for task operations, not DAG listing.
4fill in blank
hard

Fill both blanks to create a dictionary comprehension that maps DAG ids to their owners if the owner is 'airflow'.

Apache Airflow
{dag.dag_id: dag.owner for dag in dags if dag.[1] [2] 'airflow'}
Drag options to blanks, or click blank then click option'
Aowner
B==
C!=
Ddag_id
Attempts:
3 left
💡 Hint
Common Mistakes
Using '!=' instead of '==' causes filtering of wrong DAGs.
Using 'dag_id' instead of 'owner' in the condition.
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that maps DAG ids to their start dates if the start date is after 2023-01-01.

Apache Airflow
{dag.[1]: dag.[2] for dag in dags if dag.[3] > '2023-01-01'}
Drag options to blanks, or click blank then click option'
Adag_id
Bstart_date
Downer
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'owner' instead of 'start_date' for filtering or values.
Mixing up keys and values in the comprehension.