Question 1
What is the primary advantage of using the @task decorator (TaskFlow API) over the classic PythonOperator?
Correct Answer:
The @task decorator eliminates boilerplate: return values automatically become XCom, and passing return values between @task functions creates implicit dependencies
Question 2
In the following TaskFlow API snippet, what is the task dependency created? ```python @dag def my_dag(): data = extract() result = transform(data) load(result) ```
Correct Answer:
extract → transform → load, with XCom values passed between them automatically
Question 3
How do you mix a classic BashOperator with a TaskFlow API @task function and create a dependency where the @task runs after the BashOperator?
Correct Answer:
Use the >> operator: bash_task >> taskflow_func()
Question 4
What does the @task.branch decorator (TaskFlow API) return, and what effect does it have on downstream tasks?
Correct Answer:
It returns a task_id string (or list of task_ids); only those tasks run, the rest are marked skipped
Question 5
A DAG uses BranchPythonOperator to choose between branch_a and branch_b. A final 'notify' task must run regardless of which branch executes. What trigger_rule should 'notify' have?
Correct Answer:
none_failed
Question 1
Exam overview

About this Exam

Prepare with the Airflow DAG Authoring Practice Questions - Astronomer Certification Apache Airflow DAG Authoring Exam practice quiz. This question bank includes 100 questions covering task, airflow, taskflow, parameter, and decorator. Use it to review important concepts, identify knowledge gaps, and build confidence for the related exam, course, or assessment.

More details

Additional Information

Airflow DAG Authoring Practice Questions - Astronomer Certification Apache Airflow DAG Authoring Exam

This practice set contains 100 questions from the matching question bank and focuses on task, airflow, taskflow, parameter, and decorator. Work through each question carefully, review the provided solutions, and revisit topics that need more study before your next attempt.

This is an independent study resource intended for practice and review; it is not an official examination or an endorsement by any organization named in the title.

Quiz information

Frequently Asked Questions

The complete question count is available after full access is unlocked.
No fixed duration is currently configured for this quiz.
Question explanations are included where they are available in the quiz content, helping you review the reasoning after answering.
Yes. You can retake the practice test again as you continue studying during your available access period.
After your access is confirmed, you can continue into the complete practice exam from this quiz flow.
Unless explicitly stated otherwise, this page provides independent practice material for study and exam preparation and is not the official examination itself.
Keep studying

Related Questions