home
diamond Go Premium
Data Engineering Path  ·  Airflow
Apache Airflow Logo

Hands-On Quiz — Writing DAGs

Practice Exercises

Exercise 1: Build a Weather ETL

Create a complete DAG that:

  1. Extracts weather data from a public API (OpenWeatherMap)
  2. Transforms the JSON response into a clean format
  3. Logs the results (simulating a database load)
  4. Uses Jinja templating for the date parameter

Exercise 2: Write DAG Tests

Write pytest tests for the DAG from Exercise 1:

  1. Test that the DAG loads without errors
  2. Test the transform function with sample data
  3. Test error handling when the API returns empty data

Exercise 3: Deploy and Monitor

  1. Place your DAG in the Airflow DAGs folder
  2. Verify it appears in the UI
  3. Trigger a manual run
  4. Check the logs for each task
  5. Review the execution in the Gantt view
lock

This content is reserved for Premium Members.

Upgrade to Premium

Entity Details

Create New Item

help

Submit Technical Query

Have a question or run into an issue? Describe it below, upload an optional screenshot, and our engineering team will answer it!

image Attach image (optional)

Submit Feedback

build Free Developer Utility Free Tool
gavel

Privacy & Legal Disclaimer

1. Client-Side Browser Processing

All utility tools on DeepEngineerHub (including Image to PDF, Text Formatters, JSON Converters, and Encryptors) execute 100% locally within your client browser using WebAssembly and JavaScript. No uploaded images, text, or documents are transmitted, collected, or stored on remote servers.

2. Limitation of Liability ("As-Is" Provision)

Tools and services are provided free of charge for convenience and educational purposes "as-is" without warranties of any kind. DeepEngineerHub shall not be held liable for any data loss, formatting inconsistencies, or indirect damages resulting from tool usage.

3. Open Source & Third-Party Software

Certain utilities utilize open-source client libraries (such as jsPDF, Mermaid.js, Pyodide) licensed under MIT, Apache, or BSD open licenses. All intellectual property remains with their respective copyright holders.