0
0
Apache Airflowdevops~20 mins

Airflow architecture (scheduler, webserver, executor, metadata DB) - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Airflow Architecture Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Role of the Airflow Scheduler
What is the primary role of the Airflow scheduler in the system?
AIt triggers tasks based on their schedules and manages task dependencies.
BIt provides the user interface to monitor workflows.
CIt stores all task logs and metadata.
DIt executes tasks on worker nodes.
Attempts:
2 left
💡 Hint
Think about which component decides when tasks should run.
💻 Command Output
intermediate
2:00remaining
Output of Airflow Webserver Command
What output will you see when you run airflow webserver successfully?
Apache Airflow
airflow webserver
AExecuting scheduled tasks
BStarting the web server on port 8080
CConnecting to metadata database failed
DWorker nodes started
Attempts:
2 left
💡 Hint
The webserver is responsible for the UI, so it should start a server.
Configuration
advanced
2:00remaining
Configuring the Executor in Airflow
Which configuration snippet correctly sets the Airflow executor to CeleryExecutor in airflow.cfg?
A
[webserver]
executor = CeleryExecutor
B
[scheduler]
executor = CeleryExecutor
C
[core]
executor = CeleryExecutor
D
[database]
executor = CeleryExecutor
Attempts:
2 left
💡 Hint
Executor setting is under the core section.
Troubleshoot
advanced
2:00remaining
Metadata Database Connection Issue
If Airflow components cannot connect to the metadata database, which symptom is most likely observed?
AScheduler fails to schedule tasks and logs connection errors.
BWebserver UI loads normally but tasks do not run.
CExecutor runs tasks without any errors.
DWorker nodes start and execute tasks successfully.
Attempts:
2 left
💡 Hint
Metadata DB is critical for scheduler operation.
🔀 Workflow
expert
3:00remaining
Order of Airflow Component Startup
What is the correct order to start Airflow components for a CeleryExecutor setup?
A3,1,2,4
B2,1,4,3
C1,3,2,4
D1,2,3,4
Attempts:
2 left
💡 Hint
Database must be ready before scheduler and workers start.