0
0
Apache Airflowdevops~20 mins

Installing Airflow locally - Practice Exercises

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Airflow Local Installation Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2:00remaining
Airflow Initialization Command Output
What is the output of the command airflow db init when run for the first time after installing Airflow locally?
Apache Airflow
airflow db init
AError: No Airflow home directory found
BDatabase already initialized
CCommand not found: airflow
D
Creating tables
Done
Setting up the database
Done
Attempts:
2 left
💡 Hint
This command sets up the Airflow metadata database for the first time.
🧠 Conceptual
intermediate
1:30remaining
Airflow Home Directory Purpose
What is the main purpose of the AIRFLOW_HOME directory when installing Airflow locally?
AIt contains the Airflow source code and binaries
BIt stores Airflow configuration files, logs, and SQLite database by default
CIt is used to store Docker images for Airflow
DIt holds temporary files created by the operating system
Attempts:
2 left
💡 Hint
Think about where Airflow keeps its settings and logs on your local machine.
🔀 Workflow
advanced
2:30remaining
Correct Order to Install Airflow Locally
What is the correct order of commands to install and start Airflow locally using the default SQLite database?
A3,1,2,4
B2,1,3,4
C1,2,3,4
D1,3,2,4
Attempts:
2 left
💡 Hint
Think about installing first, then initializing, then creating user, then starting the webserver.
Troubleshoot
advanced
1:30remaining
Fixing Airflow Webserver Port Conflict
You try to start the Airflow webserver with airflow webserver --port 8080 but get an error that the port is already in use. Which command correctly starts the webserver on port 8090 instead?
Aairflow webserver --port 8090
Bairflow webserver -p 8090
Cairflow webserver --port=8090
Dairflow webserver --port:8090
Attempts:
2 left
💡 Hint
Use the correct long option syntax for port.
Best Practice
expert
2:00remaining
Recommended Executor for Local Airflow Installation
Which Airflow executor is recommended for a simple local installation for learning and development purposes?
ASequentialExecutor
BCeleryExecutor
CKubernetesExecutor
DLocalExecutor
Attempts:
2 left
💡 Hint
Consider the simplest executor that requires no extra setup.