0
0
Apache Airflowdevops~10 mins

Airflow architecture (scheduler, webserver, executor, metadata DB) - 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 scheduler service.

Apache Airflow
airflow [1]
Drag options to blanks, or click blank then click option'
Awebserver
Btriggerer
Cscheduler
Dworker
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'webserver' starts the web UI instead of the scheduler.
2fill in blank
medium

Complete the code to start the Airflow webserver on port 8080.

Apache Airflow
airflow webserver [1] 8080
Drag options to blanks, or click blank then click option'
A-p
B--port
C-port
D/p
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-p' or '-port' causes the command to fail or ignore the port setting.
3fill in blank
hard

Fix the error in the executor configuration line to use the CeleryExecutor.

Apache Airflow
executor = [1]Executor
Drag options to blanks, or click blank then click option'
ACelery
BLocal
CSequential
DKubernetes
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'LocalExecutor' or 'SequentialExecutor' changes how tasks run and may not support distributed execution.
4fill in blank
hard

Fill both blanks to complete the metadata database connection string for PostgreSQL.

Apache Airflow
sql_alchemy_conn = postgresql+psycopg2://[1]:[2]@localhost/airflow
Drag options to blanks, or click blank then click option'
Aairflow_user
Bpassword123
Cadmin
Dairflow_pass
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping username and password or using incorrect credentials causes connection failures.
5fill in blank
hard

Fill all three blanks to define a DAG with a schedule interval and default arguments.

Apache Airflow
dag = DAG(dag_id='example_dag', default_args=[1], schedule_interval=[2], catchup=[3])
Drag options to blanks, or click blank then click option'
A{'owner': 'airflow', 'start_date': datetime(2024, 1, 1)}
B'@daily'
CFalse
DTrue
Attempts:
3 left
💡 Hint
Common Mistakes
Using catchup=True causes many backfill runs. Using wrong schedule_interval strings causes scheduling errors.