exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 3 question 58 discussion

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

HOTSPOT -
You publish a batch inferencing pipeline that will be used by a business application.
The application developers need to know which information should be submitted to and returned by the REST interface for the published pipeline.
You need to identify the information required in the REST request and returned as a response from the published pipeline.
Which values should you use in the REST request and to expect in the response? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: JSON containing an OAuth bearer token
Specify your authentication header in the request.
To run the pipeline from the REST endpoint, you need an OAuth2 Bearer-type authentication header.
Box 2: JSON containing the experiment name
Add a JSON payload object that has the experiment name.
Example:
rest_endpoint = published_pipeline.endpoint
response = requests.post(rest_endpoint,
headers=auth_header,
json={"ExperimentName": "batch_scoring",
"ParameterAssignments": {"process_count_per_node": 6}})
run_id = response.json()["Id"]
Box 3: JSON containing the run ID
Make the request to trigger the run. Include code to access the Id key from the response dictionary to get the value of the run ID.
Reference:
https://docs.microsoft.com/en-us/azure/machine-learning/tutorial-pipeline-batch-scoring-classification

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
datamijn
Highly Voted 3 years, 9 months ago
on exam 2/8/2021
upvoted 9 times
...
YipingRuan
Highly Voted 3 years, 9 months ago
response = requests.post(rest_endpoint, headers=auth_header, json={"ExperimentName": "Tutorial-Batch-Scoring", "ParameterAssignments": {"process_count_per_node": 6}}) run_id = response.json()["Id"] https://docs.microsoft.com/en-us/azure/machine-learning/tutorial-pipeline-batch-scoring-classification
upvoted 8 times
gunn_m
5 months, 1 week ago
I didn't find this in the V2 documentation, can you help me by sending the updated link?
upvoted 1 times
...
...
PI_Team
Most Recent 1 year, 5 months ago
In the Request Header, you should select "JSON containing an OAuth bearer token". In the Request Body, you should select "JSON containing the pipeline ID" ---> The run ID would not be included here because it is generated after the pipeline is initiated, and the experiment name is typically not required in the request body for a pipeline execution. The Response will contain the "JSON containing the run ID" because it is generated after the pipeline runs. It should also contain "JSON containing a list of predictions" since this is the output of a batch inference pipeline. And if the pipeline is configured to save outputs to a file, "JSON containing a path to the parallel_run_step.txt output file" would also be included. SaM
upvoted 4 times
gunn_m
5 months, 1 week ago
I didn't find this in the V2 documentation, can you help me by sending the updated link?
upvoted 1 times
...
...
james2033
1 year, 6 months ago
The answer is correct. - Request header: OAuth bear token - Request body: Experiment name - Response: run_id Request https://learn.microsoft.com/en-us/azure/machine-learning/how-to-deploy-pipelines?view=azureml-api-1#run-a-published-pipeline https://learn.microsoft.com/en-us/azure/machine-learning/how-to-deploy-pipelines?view=azureml-api-1#run-a-published-pipeline-using-c [DataContract] public class SubmitPipelineRunRequest { [DataMember] public string ExperimentName { get; set; } ... Return run_id: https://learn.microsoft.com/en-us/azure/machine-learning/how-to-deploy-pipelines?view=azureml-api-1#submit-a-job-to-a-pipeline-endpoint
upvoted 1 times
...
orionduo
1 year, 8 months ago
correct https://learn.microsoft.com/en-us/azure/machine-learning/how-to-deploy-pipelines?view=azureml-api-1
upvoted 1 times
...
phdykd
1 year, 9 months ago
Request Header: JSON containing an OAuth bearer token Request Body: JSON containing the pipeline ID Response: JSON containing the run ID JSON containing a list of predictions
upvoted 2 times
...
fhlos
1 year, 10 months ago
Not correct answer. Correct from ChatGPT is: The values required in the REST request and expected in the response for the published pipeline are as follows: Request Header: JSON containing an Auth bearer token Request Body: JSON containing the run ID Response: JSON containing the run ID and JSON containing a list of predictions
upvoted 2 times
...
Yuriy_Ch
2 years, 1 month ago
on exam 07/March/2023
upvoted 2 times
Manjari_002
1 year, 9 months ago
Ans>>???
upvoted 1 times
...
...
racnaoamo
2 years, 11 months ago
on exam 18-5-22
upvoted 6 times
...
TheYazan
3 years, 2 months ago
request_headers = { "Content-Type":"application/json", "Authorization":"Bearer " + key_or_token } # Call the service response = requests.post(url = endpoint, data = json_data, headers = request_headers) https://docs.microsoft.com/en-us/learn/modules/register-and-deploy-model-with-amls/3-consume-model
upvoted 1 times
Crusader2k13
2 years, 4 months ago
We are talking about batch inference, your link is the documentation for realtime inference!
upvoted 1 times
...
...
[Removed]
3 years, 2 months ago
On 20Feb2022
upvoted 2 times
...
snsnsnsn
3 years, 8 months ago
on 2/9/21
upvoted 2 times
...
ljljljlj
3 years, 9 months ago
On exam 2021/7/10
upvoted 3 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