Airflow & DAGs · Core Concepts & DAGs

What is an Airflow Hook?

Easyhooksconnections

Interview question

What is an Airflow Hook, and how does it differ from an Operator?

How to answer

The short answer

A Hook provides a reusable way to connect to an external system (PostgresHook, S3Hook, HttpHook, …).

Example: PostgresHook connects; PostgresOperator executes SQL using that connection pattern.

Hooks keep connection logic reusable inside operators or @task functions.