Bird
Raised Fist0
Apache Airflowdevops~20 mins

Airflow UI overview - Practice Problems & Coding Challenges

Choose your learning style10 modes available
Challenge - 5 Problems
🎖️
Airflow UI Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Airflow UI Components

Which Airflow UI component shows the status of all tasks in a DAG run as a grid with time on one axis and tasks on the other?

ATree View
BGantt Chart
CGraph View
DCode View
Attempts:
2 left
💡 Hint

Think about a view that looks like a calendar grid showing task success or failure over time.

💻 Command Output
intermediate
1:30remaining
Identifying Task Status Color in Airflow UI

What color does the Airflow UI use to indicate a task that has failed in the Tree View?

AGreen
BBlue
CYellow
DRed
Attempts:
2 left
💡 Hint

Think about common color codes for errors or failures.

🔀 Workflow
advanced
2:30remaining
Navigating to Task Logs in Airflow UI

You want to check the logs of a specific task instance from the Airflow UI. Which sequence of steps correctly describes how to access the logs?

AOpen the DAG, click on Graph View, then right-click the task and select 'Show Logs'.
BOpen the DAG, go to Code View, find the task code, then click 'View Log'.
COpen the DAG, click on the task in Tree View, then click 'View Log' in the popup.
DOpen the DAG, go to Gantt Chart, click on the task bar, then select 'Download Logs'.
Attempts:
2 left
💡 Hint

Logs are usually accessed by clicking the task in a view showing task statuses.

❓ Troubleshoot
advanced
2:30remaining
Diagnosing Missing DAG in Airflow UI

You deployed a new DAG file to your Airflow DAGs folder, but it does not appear in the Airflow UI. What is the most likely cause?

AThe DAG file has a syntax error preventing it from being parsed.
BThe Airflow webserver service is down.
CThe DAG is paused by default and hidden from the UI.
DThe DAG file is in the wrong folder and not scanned by Airflow.
Attempts:
2 left
💡 Hint

Check if the DAG file can be read and parsed correctly by Airflow.

✅ Best Practice
expert
3:00remaining
Optimizing Airflow UI Performance with Many DAGs

You manage an Airflow instance with hundreds of DAGs, and the UI loads very slowly. Which configuration change best improves UI performance?

AIncrease the webserver worker count to handle more requests.
BEnable DAG serialization and set 'store_serialized_dags' to True in airflow.cfg.
CDisable DAG caching to always load fresh DAGs from files.
DReduce the number of DAGs by deleting old DAG files.
Attempts:
2 left
💡 Hint

Consider how Airflow stores DAG definitions internally for faster UI loading.

Practice

(1/5)
1. What is the primary purpose of the Airflow UI?
easy
A. To store data files for workflows
B. To write Python code for tasks
C. To monitor and manage workflows visually
D. To configure network settings

Solution

  1. Step 1: Understand Airflow UI role

    The Airflow UI is designed as a web interface to help users see and control workflows easily.
  2. Step 2: Identify main function

    It shows task status, logs, and workflow structure, making monitoring and management simple.
  3. Final Answer:

    To monitor and manage workflows visually -> Option C
  4. Quick Check:

    Airflow UI = Monitor & Manage Workflows [OK]
Hint: Airflow UI is for watching workflows, not coding [OK]
Common Mistakes:
  • Confusing UI with coding environment
  • Thinking UI stores data files
  • Assuming UI manages network
2. Which section in the Airflow UI shows the status of each task in a workflow?
easy
A. Admin panel
B. DAGs tab
C. Logs tab
D. Graph view

Solution

  1. Step 1: Identify UI sections

    The Graph view in Airflow UI visually displays tasks and their statuses in a workflow.
  2. Step 2: Compare other options

    DAGs tab lists workflows, Logs tab shows task logs, Admin panel manages users/settings.
  3. Final Answer:

    Graph view -> Option D
  4. Quick Check:

    Task status = Graph view [OK]
Hint: Task status is shown in Graph view, not Logs [OK]
Common Mistakes:
  • Confusing Logs tab with task status
  • Thinking DAGs tab shows task details
  • Assuming Admin panel shows task status
3. If a task in Airflow UI shows a red color in the Graph view, what does it mean?
medium
A. Task failed
B. Task is running
C. Task succeeded
D. Task is skipped

Solution

  1. Step 1: Understand color codes in Graph view

    In Airflow UI, red color indicates a failed task.
  2. Step 2: Recall other colors meaning

    Green means success, yellow means running, grey means skipped.
  3. Final Answer:

    Task failed -> Option A
  4. Quick Check:

    Red = Failed task [OK]
Hint: Red means failure in Airflow UI Graph view [OK]
Common Mistakes:
  • Mixing red with running or success
  • Confusing skipped with failed
  • Ignoring color legend in UI
4. You notice that the Logs tab in Airflow UI shows no logs for a task that ran. What is the likely cause?
medium
A. Task never started or failed before logging
B. Logs tab is broken and needs UI restart
C. Task succeeded without logs
D. Logs are stored in a different UI section

Solution

  1. Step 1: Analyze missing logs scenario

    If no logs appear, usually the task did not start or failed before producing logs.
  2. Step 2: Eliminate other options

    Logs tab usually works; success tasks still have logs; logs are not in other UI sections.
  3. Final Answer:

    Task never started or failed before logging -> Option A
  4. Quick Check:

    No logs = Task not started or early failure [OK]
Hint: No logs usually means task didn't start properly [OK]
Common Mistakes:
  • Assuming UI bug without checking task status
  • Thinking success tasks have no logs
  • Looking for logs in wrong UI tabs
5. You want to quickly check the order of tasks and their dependencies in a DAG using the Airflow UI. Which view should you use and why?
hard
A. Tree view, because it shows tasks in a timeline with dependencies
B. Graph view, because it visually displays tasks and their dependencies
C. Calendar view, because it shows task schedules
D. Code view, because it shows the Python code defining tasks

Solution

  1. Step 1: Identify views for task order and dependencies

    The Graph view visually shows tasks as nodes connected by arrows representing dependencies.
  2. Step 2: Compare other views

    Tree view shows task runs over time, Code view shows code but not visual dependencies, Calendar shows schedules.
  3. Final Answer:

    Graph view, because it visually displays tasks and their dependencies -> Option B
  4. Quick Check:

    Task order & dependencies = Graph view [OK]
Hint: Use Graph view to see task dependencies clearly [OK]
Common Mistakes:
  • Confusing Tree view with dependency graph
  • Looking at code instead of visual graph
  • Using Calendar view for dependencies
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard