0
0
Apache Airflowdevops~20 mins

High availability configuration in Apache Airflow - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Airflow HA Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
What is the main purpose of enabling high availability in Airflow?
Choose the best explanation for why high availability (HA) is configured in an Airflow environment.
ATo reduce the number of DAGs that can be executed simultaneously.
BTo ensure the Airflow scheduler and webserver continue running without interruption during failures.
CTo limit access to the Airflow UI to only one user at a time.
DTo disable task retries and speed up execution.
Attempts:
2 left
💡 Hint
Think about what happens if a server running Airflow components crashes.
💻 Command Output
intermediate
1:30remaining
Output of checking Airflow scheduler status in HA mode
You run the command airflow scheduler --status on a multi-scheduler HA setup. What output indicates that the schedulers are running correctly in HA mode?
AScheduler is running with leader election enabled.
BScheduler is running but no DAGs are loaded.
CScheduler failed to start due to port conflict.
DScheduler is running without leader election.
Attempts:
2 left
💡 Hint
In HA mode, schedulers coordinate to avoid duplicate task execution.
Configuration
advanced
2:00remaining
Correct configuration for Airflow high availability scheduler
Which configuration snippet correctly enables high availability for the Airflow scheduler in airflow.cfg?
A
[core]
scheduler_ha_enabled = true
heartbeat_sec = 5
B
[scheduler]
enable_ha = yes
heartbeat_interval = 10
C
[scheduler]
scheduler_ha = enabled
heartbeat = 5
D
[scheduler]
enable_scheduler_ha = True
scheduler_ha_heartbeat_sec = 5
Attempts:
2 left
💡 Hint
Check the exact parameter names under the scheduler section.
Troubleshoot
advanced
2:00remaining
Troubleshooting Airflow HA scheduler leader election failure
In an Airflow HA setup, the schedulers fail to elect a leader and no tasks run. Which is the most likely cause?
AThe webserver port is blocked by firewall.
BThe DAG files are missing from the scheduler nodes.
CThe metadata database is unreachable or misconfigured.
DThe Airflow UI authentication is disabled.
Attempts:
2 left
💡 Hint
Leader election depends on shared state in the metadata database.
🔀 Workflow
expert
3:00remaining
Order the steps to enable Airflow high availability for schedulers
Arrange the steps in the correct order to enable high availability for Airflow schedulers.
A1,2,3,4
B2,1,3,4
C1,3,2,4
D3,1,2,4
Attempts:
2 left
💡 Hint
Think about preparing shared resources before enabling features and deploying instances.