
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.
## Explanation **Correct Answer: B** **Why Option B is correct:** 1. The requirement is to run a new notebook **prior to** the original task 2. In Databricks Jobs, task dependencies define execution order - when Task A depends on Task B, Task B must complete successfully before Task A can start 3. By creating a new task and adding it as a dependency of the original task, the new task will run first, then the original task **Why other options are incorrect:** - **Option A**: Cloning and updating the existing task would replace the original task rather than adding a new task to run before it - **Option C**: This would make the original task a dependency of the new task, meaning the original task would run first (opposite of what's needed) - **Option D**: Creating a new job from scratch is unnecessary and would require additional setup; it's more efficient to modify the existing job **Key Concept:** In Databricks Jobs, task dependencies control execution order. To run Task A before Task B, make Task A a dependency of Task B.
Author: Keng Suppaseth
Ultimate access to all questions.
A data engineer has a single-task Job that runs each morning before they begin working. After identifying an upstream data issue, they need to set up another task to run a new notebook prior to the original task.
Which approach can the data engineer use to set up the new task?
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.