0
0
Apache Airflowdevops~20 mins

What is Apache Airflow - Practice Questions & Exercises

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Apache Airflow Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding Apache Airflow's Purpose

What is the primary purpose of Apache Airflow in a DevOps environment?

ATo automate and schedule complex workflows and data pipelines
BTo serve as a web server for hosting websites
CTo monitor network traffic and detect intrusions
DTo manage container orchestration like Kubernetes
Attempts:
2 left
💡 Hint

Think about what Airflow helps automate and organize.

💻 Command Output
intermediate
1:30remaining
Airflow Webserver Startup Output

What output will you see when you successfully start the Apache Airflow webserver using the command airflow webserver?

Apache Airflow
airflow webserver
AError: command not found
B
Starting the web server on port 8080
Listening on http://localhost:8080
CDatabase connection failed
DKubernetes cluster not found
Attempts:
2 left
💡 Hint

Look for a message indicating the webserver is running and the port number.

Configuration
advanced
2:00remaining
Configuring Airflow Executor

Which configuration setting in airflow.cfg correctly sets the executor to use CeleryExecutor?

Apache Airflow
[core]
executor = SequentialExecutor
A
[core]
executor = CeleryExecutor
B
[core]
executor = KubernetesExecutor
C
[core]
executor = SequentialExecutor
D
[core]
executor = LocalExecutor
Attempts:
2 left
💡 Hint

The executor setting defines how tasks are run in Airflow.

🔀 Workflow
advanced
2:00remaining
Airflow DAG Scheduling Behavior

Given a DAG scheduled with schedule_interval='@daily' and a start date of 2024-06-01, when will the first DAG run be triggered?

AAt midnight on 2024-06-01
BImmediately when the DAG is deployed
CAt midnight on 2024-06-02
DAt noon on 2024-06-01
Attempts:
2 left
💡 Hint

Airflow schedules runs after the period ends.

Troubleshoot
expert
2:30remaining
Diagnosing Airflow Task Failure

You notice a task in your Airflow DAG is stuck in the 'queued' state indefinitely. Which is the most likely cause?

AThe Airflow webserver is down
BThe DAG file has syntax errors
CThe task has already succeeded
DNo available worker to pick up the task
Attempts:
2 left
💡 Hint

Think about what controls task execution after queuing.