nerdexam
Microsoft

DP-100 · Question #434

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 need to reset the state of the…

The correct answer is B. Change the compute. C. Reset the compute. E. Change the current kernel. To fully reset notebook state in Azure ML Studio, you must either change the compute, reset the compute, or change the kernel - each of these forces a fresh environment.

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 need to reset the state of the notebook. Which three actions should you use? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

Options

  • AStop the current kernel.
  • BChange the compute.
  • CReset the compute.
  • DNavigate to another section of the workspace.
  • EChange the current kernel.

How the community answered

(25 responses)
  • A
    12% (3)
  • B
    80% (20)
  • D
    8% (2)

Why each option

To fully reset notebook state in Azure ML Studio, you must either change the compute, reset the compute, or change the kernel - each of these forces a fresh environment.

AStop the current kernel.

Stopping the current kernel halts execution but does not necessarily clear all session state - the kernel process may retain variable state until it is fully replaced or the compute is reset.

BChange the compute.Correct

Changing the compute target disconnects the notebook from its current compute instance and attaches it to a new one, which clears all in-memory state and loaded variables from the previous session.

CReset the compute.Correct

Resetting the compute restarts the underlying compute instance entirely, terminating all running processes and wiping all in-memory state, effectively giving the notebook a clean slate.

DNavigate to another section of the workspace.

Navigating to another section of the workspace only changes the UI view and has no effect on the kernel process or its in-memory state.

EChange the current kernel.Correct

Changing the current kernel replaces the active kernel process with a new instance, which discards all previously defined variables, imports, and execution history in memory.

Concept tested: Resetting notebook kernel and compute state in Azure ML Studio

Source: https://learn.microsoft.com/en-us/azure/machine-learning/how-to-run-jupyter-notebooks

Topics

#Azure Machine Learning Studio#Notebooks#Compute Instances#Kernel Management

Community Discussion

No community discussion yet for this question.

Full DP-100 Practice