nerdexam
Microsoft

DP-100 · Question #420

You register a model in an Azure Machine Learning workspace by running the following code: You are creating a scoring script to use in a real-time service for the model. You need to write code in the

Sign in or unlock DP-100 to reveal the answer and full explanation for question #420. The question stem and answer options stay visible for context.

Train and deploy models

Question

You register a model in an Azure Machine Learning workspace by running the following code: You are creating a scoring script to use in a real-time service for the model. You need to write code in the scoring script to set the path of the registered model so that it can be loaded by the service. You include the necessary import statements. Which code segment should you use?

Exhibit

DP-100 question #420 exhibit

Options

  • Apath = Model.get_model_path('loan_model')
  • Bpath = 'model.pkl'
  • Cpath = ws.models('loan_model')
  • Dpath = 'outputs/model.pkl'

Unlock DP-100 to see the answer

You've previewed enough free DP-100 questions. Unlock DP-100 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Model Deployment#Scoring Script#Azure Machine Learning SDK#Model Registration
Full DP-100 Practice