exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 4 question 4 discussion

Actual exam question from Microsoft's DP-100
Question #: 4
Topic #: 4
[All DP-100 Questions]

You train and register a model in your Azure Machine Learning workspace.
You must publish a pipeline that enables client applications to use the model for batch inferencing. You must use a pipeline with a single ParallelRunStep step that runs a Python inferencing script to get predictions from the input data.
You need to create the inferencing script for the ParallelRunStep pipeline step.
Which two functions should you include? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.

  • A. run(mini_batch)
  • B. main()
  • C. batch()
  • D. init()
  • E. score(mini_batch)
Show Suggested Answer Hide Answer
Suggested Answer: AD 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
chaudha4
Highly Voted 3 years ago
https://docs.microsoft.com/en-us/learn/modules/deploy-batch-inference-pipelines-with-azure-machine-learning/2-batch-inference-pipelines
upvoted 16 times
...
rishi_ram
Highly Voted 2 years, 11 months ago
Question was there in June 2021 Exam
upvoted 11 times
...
james2033
Most Recent 6 months, 4 weeks ago
Selected Answer: AD
run(mini_batch) init() See https://github.com/Azure/MachineLearningNotebooks/tree/master/how-to-use-azureml/machine-learning-pipelines/parallel-run
upvoted 1 times
...
phdykd
9 months, 2 weeks ago
AD. Batch inferencing service requires a scoring script to load the model and use it to predict new values. It must include two functions: init(): Called when the pipeline is initialized. run(mini_batch): Called for each batch of data to be processed. Typically, you use the init function to load the model from the model registry, and use the run function to generate predictions from each batch of data and return the results. The following example script shows this pattern:
upvoted 1 times
...
snegnik
11 months, 1 week ago
In Azure Machine Learning, the inference script is typically a Python script that defines two functions: init() and run(input_data). The init() function is called once when the model is loaded and can be used to perform any initialization tasks, such as loading additional libraries or setting up global variables. The run(input_data) function is called for each input data item and should apply the model to the input data and produce output data
upvoted 1 times
...
phdykd
1 year, 2 months ago
A and D
upvoted 1 times
...
phdykd
1 year, 2 months ago
A and E.
upvoted 1 times
...
Arend78
1 year, 4 months ago
Here's and example of a py script including init() and run(mini_batch): https://github.com/Azure/MachineLearningNotebooks/blob/master/how-to-use-azureml/machine-learning-pipelines/parallel-run/Code/digit_identification.py This Python file is loaded by example notebook https://github.com/Azure/MachineLearningNotebooks/blob/master/how-to-use-azureml/machine-learning-pipelines/parallel-run/file-dataset-image-inference-mnist.ipynb
upvoted 2 times
...
therealola
1 year, 10 months ago
On exam 18-06-22
upvoted 3 times
...
pancman
2 years ago
Selected Answer: AD
Given answer of A&D is correct.
upvoted 2 times
...
synapse
2 years, 1 month ago
Selected Answer: AD
A and D
upvoted 1 times
...
AjoseO
2 years, 2 months ago
On 03 March 2022
upvoted 3 times
...
AI247
2 years, 6 months ago
on exam 2021/11/05
upvoted 1 times
...
hargur
2 years, 6 months ago
on 19Oct2021
upvoted 1 times
...
ljljljlj
2 years, 10 months ago
On exam 2021/7/10
upvoted 8 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago