DP-700 · Question #79
You are building a Fabric notebook named MasterNotebook1 in a workspace. MasterNotebook1 contains the following code. DAG = { "activities": [ { "name": "execute_notebook_1", "path": "notebook_01"…
The correct answer is D. Add dependencies to the execution of Notebook_02. F. Move the declaration of Notebook_03 to the top of the Directed Acyclic Graph (DAG) definition. To establish a specific execution order between notebook_02 and notebook_03 within a Fabric notebook's DAG, you can either explicitly add dependencies to notebook_02 or logically reorder the activities by moving notebook_03's declaration to the top.
Question
- Notebook_03
- Notebook_01
- Notebook_02 Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
Options
- AMove the declaration of Notebook_02 to the bottom of the Directed Acyclic Graph (DAG) definition.
- BAdd dependencies to the execution of Notebook_03.
- CSplit the Directed Acyclic Graph (DAG) definition into three separate definitions.
- DAdd dependencies to the execution of Notebook_02.
- EChange the concurrency to 3.
- FMove the declaration of Notebook_03 to the top of the Directed Acyclic Graph (DAG) definition.
How the community answered
(54 responses)- A2% (1)
- B2% (1)
- C7% (4)
- D80% (43)
- E9% (5)
Why each option
To establish a specific execution order between `notebook_02` and `notebook_03` within a Fabric notebook's DAG, you can either explicitly add dependencies to `notebook_02` or logically reorder the activities by moving `notebook_03`'s declaration to the top.
Moving `notebook_02` to the bottom would change its execution order but doesn't necessarily enforce it runs after `notebook_03` without explicit dependencies or a clear understanding of the full DAG's implicit ordering logic.
Adding dependencies to `notebook_03` would control when `notebook_03` runs, not directly control when `notebook_02` runs relative to `notebook_03`, unless `notebook_02` was already dependent on `notebook_03`.
Splitting the DAG into three definitions would create multiple independent execution flows, not resolve a dependency or ordering issue between two specific notebooks within the same workflow.
Adding dependencies to `notebook_02` allows you to explicitly define which other activities, such as `notebook_03`, must complete successfully before `notebook_02` begins execution, ensuring a desired sequential flow.
Changing concurrency to 3 only affects how many activities can run in parallel, not their specific execution order or dependencies.
Moving the declaration of `notebook_03` to the top of the DAG definition can, in some DAG implementations, imply an earlier execution priority or simply make the intended order clearer in the code, ensuring it runs before subsequently defined activities like `notebook_02`.
Concept tested: Notebook DAG dependencies and ordering
Source: https://learn.microsoft.com/en-us/fabric/data-factory/notebook-activity
Community Discussion
No community discussion yet for this question.