Apache Airflow Fundamentals · 20% of the exam

Operators, Tasks, and Dependencies: free practice questions

5 sample questions from our 13-question bank for this domain — answers and explanations included. These are the same scenario-based style as the real Astronomer exam.

1. What is an OPERATOR in Airflow?

  • A. A template that defines a single unit of work; instantiating it creates a task✓ Correct
  • B. The scheduler process
  • C. A database connection string
  • D. The web UI
Explanation

An operator is a predefined template for a unit of work (e.g., run Bash, run Python, transfer data); when you instantiate an operator in a DAG, you create a task. It's not the scheduler (B), a connection (C), or the UI (D).

2. Which operator is a no-op placeholder often used to group tasks or mark start/end points in a DAG?

  • A. EmptyOperator (formerly DummyOperator)✓ Correct
  • B. PythonOperator
  • C. BashOperator
  • D. S3KeySensor
Explanation

The EmptyOperator (previously DummyOperator) does nothing and is used to structure a DAG — grouping branches or marking start/join/end points. The PythonOperator (B) and BashOperator (C) do real work, and S3KeySensor (D) waits for an S3 object.

3. What are XComs used for in Airflow?

  • A. Passing small amounts of data between tasks (cross-communication)✓ Correct
  • B. Storing large files between tasks
  • C. Defining the DAG schedule
  • D. Rendering the UI graph
Explanation

XComs (cross-communications) let tasks push and pull small pieces of data (like an ID or a value) to share between them. They are NOT meant for large data (B) — use external storage for that; they don't define schedules (C) or render the UI (D).

4. What is a SENSOR in Airflow?

  • A. A special type of operator that waits for a condition to be met (e.g., a file to arrive, a time to pass) before succeeding✓ Correct
  • B. A monitoring dashboard
  • C. A database index
  • D. A type of executor
Explanation

A sensor is an operator that waits (polls) until a condition is true — a file exists, a partition lands, a time is reached — then allows downstream tasks to proceed. It's not a dashboard (B), index (C), or executor (D).

5. Which operator runs a shell command as a task?

  • A. BashOperator✓ Correct
  • B. PythonOperator
  • C. SqlSensor
  • D. EmptyOperator
Explanation

The BashOperator executes a Bash/shell command. The PythonOperator (B) runs Python callables, SqlSensor (C) waits for a SQL condition, and EmptyOperator (D) is a no-op placeholder.

8 more questions in this domain

Practice the full bank with instant grading, flashcards, and a timed mock exam.

Start practicing free
Operators, Tasks, and Dependencies — Free Apache Airflow Fundamentals Practice Questions | DataCertPrep — Certification Prep