Working with Compute Contexts in Azure Machine Learning Flashcards

1
Q

In Azure Machine Learning, data scientists can run experiments based on scripts that process data, train machine learning models, and perform other data science tasks. The runtime context for each experiment run consists of two elements. Which ones?

A

The environment for the script, which includes all packages on which the script depends.

The compute target on which the environment will be deployed and the script run.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are ways to create environments in Azure Machine Learning

A

Creating an environment from a specification file

Creating an environment from an existing Conda environment

Creating an environment by specifying packages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are compute targets

A

Compute targets are physical or virtual computers on which experiments are run

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The ability to assign experiment runs to specific compute targets helps you implement a flexible data science ecosystem in some ways. Which ones

A

Code can be developed and tested on local or low-cost compute, and the moved to more scalable compute for production workloads

You can run individual processes on the compute target that best fits its needs. For example, by using GPU-based compute to train deep learning models, and switching to lower-cost CPU-only compute to test and register the trained model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

One of the core benefits of cloud computing is the ability to manage costs by paying only for what you use. In Azure Machine Learning, you can take advantage of this principle by defining compute targets that can do what?

A

Start on-demand and stop automatically when no longer required.

Scale automatically based on workload processing needs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

There are different types of compute. Which ones?

A

Azure Machine Learning supports multiple types of compute for experimentation and training, and for production inferencing. This enables you to select the most appropriate type of compute target for your particular needs.

Local compute

Training clusters

Inference clusters

Attached compute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is local compute

A

You can specify a local compute target for most processing tasks in AML. This runs the experiment on the same compute target as the code used to initiate the experiment, which may be your physical workstation or a virtual machine such as an Azure Machine Learning compute instance on which you are running a notebook.

Local compute is generally a great choice during development and testing with low to moderate volumes of data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is training clusters

A

For training workloads with high scalability requirements, you can use Azure Machine Learning training clusters; which are multi-node clusters of Virtual Machines that automatically scale up or down to meet demand. This is a cost-effective way to run experiments that need to handle large volumes of data or use parallel processing to distribute the workload and reduce the time it takes to run

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the inference clusters

A

To deploy trained models as production services, you can use Azure Machine Learning inference clusters, which use containerization technologies to enable rapid initialization of compute for on-demand inferencing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is attached compute

A

If you already use an Azure-based compute environment for data science, such as virtual machine or an Azure Databricks cluster, you can attach it to your AML workspace and use it as a compute target for certain types of workload

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the difference between a managed compute target and an unmanaged compute target

A

A managed compute target is one that is managed by Azure Machine Learning, such as an Azure Machine Learning training cluster

An unmanaged compute target is one that is defined and managed outside of the Azure Machine Learning workspace; for example, an Azure virtual machine or an Azure Databricks cluster

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What do you need for running workloads such as experiments?

A

You need to create an environment and compute targets in your workspace

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

You’re using the Azure Machine Learning Python SDK to run experiments. You need to create an environment from a Conda configuration (.yml) file. Which method of the Environment class should you use?

create

create_from_conda_specification

create_from_existing_conda_environment

A

create_from_conda_specification
That is correct. Use the create_from_conda_specification method to create an environment from a configuration file. The create method requires you to explicitly specify conda and pip packages, and the create_from_existing_conda_environment requires an existing environment on the computer.

create_from_existing_conda_environment
That is incorrect. create_from_existing_conda_environment requires an existing environment on the computer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

You must create a compute target for training experiments that require a graphical processing unit (GPU). You want to be able to scale the compute so that multiple nodes are started automatically as required. Which kind of compute target should you create?

Compute Instance

Training Cluster

Inference Cluster

A

Training Cluster
That is correct. Use a training cluster to create multiple nodes of GPU-enabled VMs that are started automatically as needed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly