ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 20 - DP-100 discussion

Report
Export

You are a data scientist working for a hotel booking website company. You use the Azure Machine Learning service to train a model that identifies fraudulent transactions.

You must deploy the model as an Azure Machine Learning real-time web service using the Model.deploy method in the Azure Machine Learning SDK. The deployed web service must return real-time predictions of fraud based on transaction data input.

You need to create the script that is specified as the entry_script parameter for the InferenceConfig class used to deploy the model.

What should the entry script do?

A.
Register the model with appropriate tags and properties.
Answers
A.
Register the model with appropriate tags and properties.
B.
Create a Conda environment for the web service compute and install the necessary Python packages.
Answers
B.
Create a Conda environment for the web service compute and install the necessary Python packages.
C.
Load the model and use it to predict labels from input data.
Answers
C.
Load the model and use it to predict labels from input data.
D.
Start a node on the inference cluster where the web service is deployed.
Answers
D.
Start a node on the inference cluster where the web service is deployed.
E.
Specify the number of cores and the amount of memory required for the inference compute.
Answers
E.
Specify the number of cores and the amount of memory required for the inference compute.
Suggested answer: C

Explanation:

The entry script receives data submitted to a deployed web service and passes it to the model. It then takes the response returned by the model and returns that to the client. The script is specific to your model. It must understand the data that the model expects and returns.

The two things you need to accomplish in your entry script are:

Loading your model (using a function called init())

Running your model on input data (using a function called run())

Reference: https://docs.microsoft.com/en-us/azure/machine-learning/how-to-deploy-and-where

asked 02/10/2024
Francinilo Leitao Ferreira
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first