nerdexam
Microsoft

DP-100 · Question #192

You plan to run a script as an experiment using a Script Run Configuration. The script uses modules from the scipy library as well as several Python packages that are not typically installed in a…

The correct answer is C. Create and register an Environment that includes the required packages. Use this Environment. Creating and registering an Azure ML Environment that includes all required packages (scipy and other custom libraries) is the best approach for running experiments on both local and remote compute with minimal administrative effort. A registered Environment is reusable…

Explore data and run experiments

Question

You plan to run a script as an experiment using a Script Run Configuration. The script uses modules from the scipy library as well as several Python packages that are not typically installed in a default conda environment. You plan to run the experiment on your local workstation for small datasets and scale out the experiment by running it on more powerful remote compute clusters for larger datasets. You need to ensure that the experiment runs successfully on local and remote compute with the least administrative effort. What should you do?

Options

  • ADo not specify an environment in the run configuration for the experiment. Run the experiment by
  • BCreate a virtual machine (VM) with the required Python configuration and attach the VM as a
  • CCreate and register an Environment that includes the required packages. Use this Environment
  • DCreate a config.yaml file defining the conda packages that are required and save the file in the
  • EAlways run the experiment with an Estimator by using the default packages.

How the community answered

(19 responses)
  • B
    11% (2)
  • C
    79% (15)
  • D
    5% (1)
  • E
    5% (1)

Explanation

Creating and registering an Azure ML Environment that includes all required packages (scipy and other custom libraries) is the best approach for running experiments on both local and remote compute with minimal administrative effort. A registered Environment is reusable, version-controlled, and can be consistently applied to any compute target-local or remote. Azure ML will build and cache the Docker image or conda environment so remote clusters use the same configuration automatically. Option A fails because without specifying an environment, missing packages will cause errors on remote compute. Option B requires unnecessary VM management. Option D (config.yaml) only works for conda packages and has limited portability. Option E (Estimators) is a legacy approach and does not guarantee all packages are available.

Topics

#Azure ML Environments#Dependency management#Experiment execution#Compute targets

Community Discussion

No community discussion yet for this question.

Full DP-100 Practice