0
0
Apache Airflowdevops~10 mins

Why production Airflow needs careful setup - Test Your Understanding

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'
Ainit
Bstandalone
Cstart
Drun
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' instead of 'standalone' causes command not found error.
2fill in blank
medium

Complete the code to initialize the Airflow database.

Apache Airflow
airflow db [1]
Drag options to blanks, or click blank then click option'
Aupgrade
Breset
Cmigrate
Dinit
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'upgrade' or 'reset' can cause errors if database is not ready.
3fill in blank
hard

Fix the error in the command to start the Airflow scheduler.

Apache Airflow
airflow [1]
Drag options to blanks, or click blank then click option'
Alaunch
Bstart
Cscheduler
Dbegin
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' or 'launch' causes command not found errors.
4fill in blank
hard

Fill both blanks to configure Airflow to use a PostgreSQL database and enable the scheduler.

Apache Airflow
[core]
executor = [1]
sql_alchemy_conn = [2]
Drag options to blanks, or click blank then click option'
ALocalExecutor
Bsqlite:///airflow.db
Cpostgresql+psycopg2://user:pass@localhost/airflow
DSequentialExecutor
Attempts:
3 left
💡 Hint
Common Mistakes
Using SQLite connection string in production causes performance issues.
5fill in blank
hard

Fill all three blanks to set up Airflow's webserver port, enable logging, and set the DAGs folder.

Apache Airflow
[webserver]
web_server_port = [1]

[logging]
logging_level = [2]

[core]
dags_folder = [3]
Drag options to blanks, or click blank then click option'
A8080
BINFO
C/usr/local/airflow/dags
D9090
Attempts:
3 left
💡 Hint
Common Mistakes
Using port 9090 without configuration causes connection errors.