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

Theoretical Quiz — Module 3

📝 Test Your Knowledge

Q1. What is the difference between an Operator, a Sensor, and a Hook?

Show Answer
  • Operator: Defines and executes a task action (run Python, execute SQL, submit Spark job)
  • Sensor: A special operator that waits for a condition (file exists, API is ready)
  • Hook: A low-level connection interface used by operators internally to connect to external systems

Q2. Explain the three sensor modes (poke, reschedule, deferrable) and when to use each.

Show Answer
  • poke: Holds a worker slot continuously. Use for short waits (< 5 min)
  • reschedule: Releases worker between poke attempts. Use for medium waits (5-60 min)
  • deferrable: Fully async via Triggerer. Use for long waits (hours). Most resource-efficient

Q3. Why should you use Airflow Connections instead of hardcoding credentials?

Show Answer
  1. Security: Connections are encrypted in the metadata database
  2. Reusability: Multiple DAGs can share the same connection
  3. Environment separation: Different connection IDs for dev/staging/prod
  4. No code changes: Update credentials in the UI without redeploying DAGs
  5. Audit trail: Connection access is logged
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.