0
0
Apache Airflowdevops~10 mins

Task dependencies (>> and << operators) in Apache Airflow - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set task1 to run before task2 using the >> operator.

Apache Airflow
task1 [1] task2
Drag options to blanks, or click blank then click option'
A>>
B-
C+
D<<
Attempts:
3 left
💡 Hint
Common Mistakes
Using << instead of >> reverses the order.
2fill in blank
medium

Complete the code to set task3 to run after task4 using the << operator.

Apache Airflow
task3 [1] task4
Drag options to blanks, or click blank then click option'
A-
B>>
C<<
D+
Attempts:
3 left
💡 Hint
Common Mistakes
Using >> instead of << reverses the dependency.
3fill in blank
hard

Fix the error in the code to correctly set taskA to run before taskB.

Apache Airflow
taskA [1] taskB
Drag options to blanks, or click blank then click option'
A>>
B+
C<<
D-
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing << and >> operators.
4fill in blank
hard

Fill both blanks to set taskX to run before taskY and taskY to run before taskZ.

Apache Airflow
taskX [1] taskY [2] taskZ
Drag options to blanks, or click blank then click option'
A>>
B<<
C+
D-
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing << and >> operators incorrectly.
5fill in blank
hard

Fill all three blanks to set task1 before task2, task3 after task2, and task4 before task3.

Apache Airflow
task1 [1] task2
 task3 [2] task2
 task4 [3] task3
Drag options to blanks, or click blank then click option'
A>>
B<<
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing the direction of << and >> operators.