Recall & Review
beginner
What does the >> operator do in Airflow task dependencies?
The >> operator sets a downstream dependency, meaning the task on the left must run before the task on the right.
Click to reveal answer
beginner
How does the << operator work in Airflow task dependencies?
The << operator sets an upstream dependency, meaning the task on the right must run before the task on the left.
Click to reveal answer
beginner
How would you express that task A runs before tasks B and C using >> operator?
You write: A >> [B, C]. This means task A runs first, then tasks B and C run after.
Click to reveal answer
beginner
Can you chain multiple tasks using >> operator? Example?
Yes. For example, A >> B >> C means A runs first, then B, then C in order.
Click to reveal answer
intermediate
What happens if you mix >> and << operators in the same dependency chain?
They represent the same dependencies but from different directions. For example, A >> B is the same as B << A.
Click to reveal answer
In Airflow, what does the expression 'task1 >> task2' mean?
✗ Incorrect
The >> operator means the left task runs before the right task.
Which operator sets an upstream dependency in Airflow?
✗ Incorrect
The << operator sets an upstream dependency, meaning the right task runs before the left.
How do you specify that task A runs before tasks B and C?
✗ Incorrect
Using A >> [B, C] means A runs first, then B and C run after.
What does 'A >> B >> C' mean in Airflow?
✗ Incorrect
The chain means tasks run in sequence: A, then B, then C.
Is 'A >> B' equivalent to 'B << A' in Airflow?
✗ Incorrect
Both expressions set the same dependency: A runs before B.
Explain how to use the >> and << operators to set task dependencies in Airflow.
Think about which task runs first and which runs after.
You got /4 concepts.
Describe how to express multiple downstream tasks from a single upstream task using Airflow operators.
Use square brackets to group tasks.
You got /3 concepts.