DP-100 practice question 21 of 35

You have an Azure Machine Learning workspace. You connect to a terminal session from the Notebooks page in Azure Machine Learning studio. You plan to…

Full set: 506 questions

Domain Run experiments and train models

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. You have an Azure Machine Learning workspace. You connect to a terminal session from the Notebooks page in Azure Machine Learning studio. You plan to add a new Jupyter kernel that will be accessible from the same terminal session. You need to perform the task that must be completed before you can add the new kernel. Solution: Delete the Python 3.8 - AzureML kernel. Does the solution meet the goal?
Answer options
A: Yes
B: No Correct answer
Correct Answer:
B. No
Explanation

Adding a new Jupyter kernel to an Azure Machine Learning compute instance is an additive process. The standard procedure involves creating a new environment (for example, using Conda), activating it, installing the ipykernel package, and then registering the new environment as a kernel for Jupyter. This process allows multiple kernels to coexist. Deleting the default Python 3.8 - AzureML kernel is not a prerequisite and is an unrelated, unnecessary action for the goal of adding a new kernel.

Why Incorrect

A. Yes: This is incorrect because deleting an existing kernel is not a required step to add a new one. Jupyter is designed to support multiple, coexisting kernels.

References

1. Microsoft Learn. (2023). Add new Jupyter kernels to a compute instance. This document outlines the correct procedure for adding a new kernel. The steps include creating a new Conda environment

activating it

and installing ipykernel. The procedure does not mention deleting any existing kernels as a prerequisite. The entire process is additive.

Reference: In the main body of the document

under the steps to add a kernel

the commands shown are conda create

conda activate

pip install ipykernel

and python -m ipykernel install. None of these steps involve deletion.

2. Microsoft Learn. (2023). Customize a compute instance with a script. This document describes how to automate the customization of a compute instance

including the installation of new Jupyter kernels. The example scripts demonstrate the creation of new Conda environments and kernels without removing the default ones

reinforcing that deletion is not a required step.

Reference: The section "Example startup scripts" provides code for creating new Conda environments and kernels

which can be run on instance creation. This automation adds to

rather than replaces

the existing configuration.

Scroll to Top