
Answer-first summary for fast verification
Answer: ``` +----------------+ |filter_countries| +----------------+ / \ / \ / \ / \ / \ / \ / \ +--------------+ +--------------+ | get_capitals | |get_currencies| +--------------+ +--------------+ ```
Both `get_capitals` and `get_currencies` tasks are dependent on the `filter_countries` task, creating a hierarchical workflow where `filter_countries` is the parent task branching out to its dependent tasks.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A data engineer initially creates a task named filter_countries with no dependencies. Later, they add a task named get_capitals that depends on filter_countries. After another week, a task named get_currencies is added, also dependent on filter_countries. Which of the following correctly represents the job flow in this scenario?
A
+--------------+ +--------------+
| get_capitals | |get_currencies|
+--------------+ +--------------+
\ /
\ /
\ /
\ /
\ /
\ /
\ /
+----------------+
|filter_countries|
+----------------+
+--------------+ +--------------+
| get_capitals | |get_currencies|
+--------------+ +--------------+
\ /
\ /
\ /
\ /
\ /
\ /
\ /
+----------------+
|filter_countries|
+----------------+
B
+----------------+ |filter_countries| +----------------+
| | |
+----------------+ | get_capitals | +----------------+
| | |
+----------------+ | get_currencies | +----------------+
+----------------+ |filter_countries| +----------------+
| | |
+----------------+ | get_capitals | +----------------+
| | |
+----------------+ | get_currencies | +----------------+
C
+----------------+ |filter_countries| +----------------+
/ \
/ \
/ \
/ \
/ \
/ \
/ \
+--------------+ +--------------+
| get_capitals | |get_currencies|
+--------------+ +--------------+
+----------------+ |filter_countries| +----------------+
/ \
/ \
/ \
/ \
/ \
/ \
/ \
+--------------+ +--------------+
| get_capitals | |get_currencies|
+--------------+ +--------------+
D
+----------------+ +----------------+ +----------------+
|filter_countries| | get_capitals | | get_currencies |
+----------------+ +----------------+ +----------------+
+----------------+ +----------------+ +----------------+
|filter_countries| | get_capitals | | get_currencies |
+----------------+ +----------------+ +----------------+
E
+----------------+ |filter_countries| +----------------+
| | |
+----------------+ | get_currencies | +----------------+
| | |
+----------------+ | get_capitals | +----------------+
+----------------+ |filter_countries| +----------------+
| | |
+----------------+ | get_currencies | +----------------+
| | |
+----------------+ | get_capitals | +----------------+