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.
Question
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)- A12% (3)
- B80% (20)
- D8% (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.
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.
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.
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.
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.
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
Community Discussion
No community discussion yet for this question.