exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 2 question 22 discussion

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

HOTSPOT -
A coworker registers a datastore in a Machine Learning services workspace by using the following code:

You need to write code to access the datastore from a notebook.
How should you complete the code segment? 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: DataStore -
To get a specific datastore registered in the current workspace, use the get() static method on the Datastore class:
# Get a named datastore from the current workspace
datastore = Datastore.get(ws, datastore_name='your datastore name')

Box 2: ws -

Box 3: demo_datastore -
Reference:
https://docs.microsoft.com/en-us/azure/machine-learning/how-to-access-data

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
Lucario95
Highly Voted 3 years, 7 months ago
Seems correct
upvoted 14 times
...
MattAnya
Highly Voted 1 year, 11 months ago
0n 03 Jan2023
upvoted 10 times
...
thisiston
Most Recent 7 months, 3 weeks ago
Correct answer is: 'Datastore', 'ws', 'blob_datastore_name' Ex:blob_datastore = Datastore.get(ws, blob_datastore_name) Link: https://learn.microsoft.com/en-us/python/api/azureml-core/azureml.core.datastore.datastore?view=azure-ml-py
upvoted 1 times
...
k1ngs1zed
2 years, 8 months ago
answer is correct
upvoted 1 times
...
[Removed]
2 years, 10 months ago
On 20Feb2022
upvoted 4 times
...
kisskeo
3 years, 2 months ago
On Exam 01 Oct 2021
upvoted 2 times
...
snsnsnsn
3 years, 3 months ago
on exam 2/9/21
upvoted 1 times
...
datamijn
3 years, 4 months ago
on 2/8/2021
upvoted 2 times
...
Rosh4yuh
3 years, 5 months ago
on 17/7/2021 Answer is correct
upvoted 4 times
...
ljljljlj
3 years, 5 months ago
On exam 2021/7/10
upvoted 2 times
...
okeyken1
3 years, 6 months ago
yes correct
upvoted 4 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 ...