exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 2 question 20 discussion

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

HOTSPOT -
The finance team asks you to train a model using data in an Azure Storage blob container named finance-data.
You need to register the container as a datastore in an Azure Machine Learning workspace and ensure that an error will be raised if the container does not exist.
How should you complete the code? 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: register_azure_blob_container
Register an Azure Blob Container to the datastore.
Box 2: create_if_not_exists = False
Create the file share if it does not exist, defaults to False.
Reference:
https://docs.microsoft.com/en-us/python/api/azureml-core/azureml.core.datastore.datastore

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
MattAnya
Highly Voted 11 months, 1 week ago
was on exam 01/03/2023
upvoted 13 times
...
atyagi55
Highly Voted 2 years, 7 months ago
give answer is correct.Please refer link https://azure.github.io/azureml-sdk-for-r/reference/register_azure_blob_container_datastore.html create_if_not_exists "If TRUE, creates the blob container if it does not exists."
upvoted 9 times
...
MarinaMijailovic
Most Recent 7 months, 2 weeks ago
Answer is correct. We are not creating a container, only registering it and we need an error message if it does not exist. If we set "create_if_not_exists" to true, it will not display the error message but create the container and we dont want that.
upvoted 3 times
...
ougullamaija
1 year, 7 months ago
You can resolve this by thinking logically. overwrite = False would mean, that we don't overwrite the existing file, but that we create a copy! create_if_not_exists = False won't create anything if there is an existing folder.
upvoted 3 times
...
azurelearner666
1 year, 8 months ago
Correct, A: Register_azure_blob_container B: Create_if_not_exists = False First is easy, we are talking about storage accounts and a blob container. Second too, It should raise an error if the container does not exist, so it should not create it in that case, as there would be no error then.
upvoted 4 times
...
kkkk_jjjj
1 year, 8 months ago
on exam 18/03/2022
upvoted 2 times
...
[Removed]
1 year, 9 months ago
on 20Feb2022
upvoted 2 times
...
hargur
2 years, 1 month ago
on 19Oct2021
upvoted 2 times
...
kisskeo
2 years, 2 months ago
On Exam 01 Oct 2021
upvoted 3 times
...
mthombenindhl84
2 years, 2 months ago
on exam 11/9/2021
upvoted 2 times
...
snsnsnsn
2 years, 3 months ago
on exam 2/9/21
upvoted 1 times
...
dushmantha
2 years, 3 months ago
On exam 2021/08/31
upvoted 1 times
...
datamijn
2 years, 4 months ago
on 2/8/2021
upvoted 3 times
...
Rosh4yuh
2 years, 4 months ago
on 17/7/2021
upvoted 2 times
...
ljljljlj
2 years, 4 months ago
On exam 2021/7/10
upvoted 3 times
...
prashantjoge
2 years, 6 months ago
the answer does not satisfy the question "ensure that an error will be raised if the container does not exist."
upvoted 2 times
...
ACSC
2 years, 8 months ago
Answer is correct. There is a mistake in the documentation. Where it says 'file share', it is 'container'.
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 ...