Astronomer Apache Airflow 3 Fundamentals · 20% practice allocation

Astronomer Apache Airflow 3 Fundamentals: Operators, Tasks, and Dependencies Practice Questions

5 free sample questions from the Operators, Tasks, and Dependencies domain, with answers and explanations. The full Apache Airflow 3 Fundamentals bank has 55 questions across 4 domains. Questions are scenario-based and written from the official Astronomer exam guide.

1.

Which operator runs a shell command as a task?

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

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

2.

A cleanup task must run whether the upstream tasks succeeded or failed (as long as they've all finished). Which trigger rule should it use?

  • A. one_success
  • B. all_success
  • C. all_done✓ Correct
  • D. none_failed
Explanation

all_done fires once all upstream tasks have completed regardless of their success or failure — ideal for cleanup/teardown tasks. all_success (B) requires all to succeed, one_success (A) needs at least one success, and none_failed (D) requires no failures (skipped is allowed).

3.

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

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

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

4.

Which operator would you use to execute an arbitrary Python function as a task?

  • A. PythonOperator✓ Correct
  • B. BashOperator
  • C. EmailOperator
  • D. DummyOperator
Explanation

The PythonOperator runs a Python callable (function) as a task. The BashOperator (B) runs shell commands, the EmailOperator (C) sends email, and the DummyOperator/EmptyOperator (D) does nothing (a placeholder).

5.

Why should XComs NOT be used to pass large datasets between tasks?

  • A. XComs delete themselves immediately
  • B. XComs are stored in the metadata database and are meant for small values; large data would bloat the database and hurt performance✓ Correct
  • C. XComs can only store integers
  • D. XComs are encrypted and slow
Explanation

XCom values are stored in the metadata database, so they're intended for small data; passing large datasets would bloat the database and degrade performance — pass a reference (e.g., an S3 path) instead. XComs aren't limited to integers (C), and options A and D are inaccurate.

Test yourself across every Apache Airflow 3 Fundamentals domain

The free Apache Airflow 3 Fundamentals practice test mixes about 20 questions weighted like the exam. The full 55-question bank adds instant grading, flashcards and a timed mock exam.

Study this domain

Operators, Tasks, and Dependencies study guide (Apache Airflow 3 Fundamentals) →

Other Apache Airflow 3 Fundamentals domains

← All Astronomer Apache Airflow 3 Fundamentals study resources