nerdexam
Microsoft

DP-100 · Question #426

You create a workspace by using Azure Machine Learning Studio. You must run a Python SDK v2 notebook in the workspace by using Azure Machine Learning Studio. You must preserve the current values of va

The correct answer is D. Stop the current kernel.. Stopping the current kernel terminates the kernel process while keeping the notebook file and its saved cell outputs intact. This preserves the notebook's current state (variable values visible in outputs, execution history) without losing the notebook content itself. In contrast

Explore data, and run experiments

Question

You create a workspace by using Azure Machine Learning Studio. You must run a Python SDK v2 notebook in the workspace by using Azure Machine Learning Studio. You must preserve the current values of variables set in the notebook for the current instance. You need to maintain the state of the notebook. What should you do?

Options

  • AChange the compute.
  • BChange the current kernel.
  • CStop the compute.
  • DStop the current kernel.

How the community answered

(31 responses)
  • A
    3% (1)
  • B
    16% (5)
  • C
    10% (3)
  • D
    71% (22)

Explanation

Stopping the current kernel terminates the kernel process while keeping the notebook file and its saved cell outputs intact. This preserves the notebook's current state (variable values visible in outputs, execution history) without losing the notebook content itself. In contrast, stopping or changing the compute instance tears down the underlying VM, destroying all in-memory state and potentially interrupting active sessions. Changing the current kernel restarts the kernel environment entirely, which clears all in-memory variables. Stopping just the kernel is the least disruptive action and is the correct way to maintain notebook state while freeing kernel resources.

Topics

#Azure ML Studio#Notebooks#Kernel management#Compute instance

Community Discussion

No community discussion yet for this question.

Full DP-100 Practice