nerdexam
Microsoft

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

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", "timeoutPerCellInSeconds": 600, "args": { "input_value": "999" }, "retry": 1, "retryIntervalInSeconds": 30 }, { "name": "execute_notebook_2", "path": "notebook_02", "timeoutPerCellInSeconds": 400, "args": { "input_value": "888" }, "retry": 1, "retryIntervalInSeconds": 30 }, { "name": "execute_notebook_3", "path": "notebook_03", "timeoutPerCellInSeconds": 600, "args": { "input_value": "777" }, "retry": 1, "retryIntervalInSeconds": 30 }, { "name": "execute_notebook_0", "path": "notebook_05", "timeoutPerCellInSeconds": 600, "args": { "input_value": "777" }, "retry": 1, "retryIntervalInSeconds": 30 } ], "timeoutInSeconds": 43200, "concurrency": 0 } mssparkutils.notebook.runMultiple(DAG, {"displayDAGViaGraphviz": True}) You need to ensure that the notebooks are executed in the following sequence:
  1. Notebook_03
  2. Notebook_01
  3. 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)
  • A
    2% (1)
  • B
    2% (1)
  • C
    7% (4)
  • D
    80% (43)
  • E
    9% (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.

AMove the declaration of Notebook_02 to the bottom of the Directed Acyclic Graph (DAG) definition.

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.

BAdd dependencies to the execution of Notebook_03.

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`.

CSplit the Directed Acyclic Graph (DAG) definition into three separate definitions.

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.

DAdd dependencies to the execution of Notebook_02.Correct

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.

EChange the concurrency to 3.

Changing concurrency to 3 only affects how many activities can run in parallel, not their specific execution order or dependencies.

FMove the declaration of Notebook_03 to the top of the Directed Acyclic Graph (DAG) definition.Correct

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.

Full DP-700 Practice