
Answer-first summary for fast verification
Answer: They can create a new task in the existing Job and then add it as a dependency of the original task.
In Databricks, if Task B depends on Task A, Task A will run first and Task B will run after it finishes. Since we want the new task to run before the original task, we must make the original task depend on the new task. This means we create the new task in the existing job and set it as a dependency of the original task. Therefore, the correct answer is B.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A data engineer is responsible for managing a single-task job that executes each morning prior to the start of their workday. Recently, they identified an issue with the upstream data that necessitates an additional step in their workflow. To address this, the data engineer needs to incorporate a new task to run an additional notebook before the execution of the original task. What method can the data engineer employ to configure this new task effectively?
A
They can clone the existing task in the existing Job and update it to run the new notebook.
B
They can create a new task in the existing Job and then add it as a dependency of the original task.
C
They can create a new task in the existing Job and then add the original task as a dependency of the new task.
D
They can create a new job from scratch and add both tasks to run concurrently.
No comments yet.