nerdexam
Microsoft

DP-100 · Question #259

You have an Azure Machine Learning workspace named WS1. You plan to use Azure Machine Learning SDK v2 to register a model as an asset in WS1 from an artifact generated by an MLflow run. The artifact…

The correct answer is D. azureml://jobs/. To reference an MLflow model artifact from a named output of a previous job in Azure Machine Learning SDK v2 for registration, the path should use the azureml://jobs/<job_name>/outputs/<output_name>/mlflow-model/ syntax.

Train and deploy models

Question

You have an Azure Machine Learning workspace named WS1. You plan to use Azure Machine Learning SDK v2 to register a model as an asset in WS1 from an artifact generated by an MLflow run. The artifact resides in a named output of a job used for the model training. You need to identify the syntax of the path to reference the model when you register it. Which syntax should you use?

Options

  • At//model/
  • Bazureml://registries
  • Cmlflow-model/
  • Dazureml://jobs/

How the community answered

(42 responses)
  • A
    2% (1)
  • B
    7% (3)
  • C
    2% (1)
  • D
    88% (37)

Why each option

To reference an MLflow model artifact from a named output of a previous job in Azure Machine Learning SDK v2 for registration, the path should use the azureml://jobs/<job_name>/outputs/<output_name>/mlflow-model/ syntax.

At//model/

t//model/ is an incomplete and incorrect syntax for referencing job outputs or model paths in Azure Machine Learning.

Bazureml://registries

azureml://registries refers to model registries, not a specific artifact within a job run.

Cmlflow-model/

mlflow-model/ is part of the path within a job's output but is not a complete reference to a job artifact on its own. It needs the job and output context.

Dazureml://jobs/Correct

When referencing artifacts from a specific job's named output in Azure Machine Learning SDK v2, the azureml://jobs/<job_name>/outputs/<output_name>/ syntax is used. For MLflow models specifically, the convention is often to append mlflow-model/ to this path, making azureml://jobs/<job_name>/outputs/<output_name>/mlflow-model/ the correct way to reference the model artifact location for registration.

Concept tested: Azure ML SDK v2 artifact path referencing

Source: https://learn.microsoft.com/en-us/azure/machine-learning/how-to-manage-models-sdk-v2?view=azureml-api-2#register-model-from-mlflow-run

Topics

#Azure ML SDK v2#Model Registration#Job Output Reference#MLflow Artifacts

Community Discussion

No community discussion yet for this question.

Full DP-100 Practice