exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 3 question 44 discussion

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

You register a file dataset named csv_folder that references a folder. The folder includes multiple comma-separated values (CSV) files in an Azure storage blob container.
You plan to use the following code to run a script that loads data from the file dataset. You create and instantiate the following variables:

You have the following code:

You need to pass the dataset to ensure that the script can read the files it references.
Which code segment should you insert to replace the code comment?

  • A. inputs=[file_dataset.as_named_input('training_files')],
  • B. inputs=[file_dataset.as_named_input('training_files').as_mount()],
  • C. inputs=[file_dataset.as_named_input('training_files').to_pandas_dataframe()],
  • D. script_params={'--training_files': file_dataset},
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
Example:
from azureml.train.estimator import Estimator
script_params = {
# to mount files referenced by mnist dataset
'--data-folder': mnist_file_dataset.as_named_input('mnist_opendataset').as_mount(),
'--regularization': 0.5
}
est = Estimator(source_directory=script_folder,
script_params=script_params,
compute_target=compute_target,
environment_definition=env,
entry_script='train.py')
Reference:
https://docs.microsoft.com/en-us/azure/machine-learning/tutorial-train-models-with-aml

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, 1 month ago
Estimator is deprecated. Can anyone confirm if they saw a question on this topic lately ?
upvoted 6 times
...
ralucabala
Highly Voted 3 years, 1 month ago
why is not A? is mount() required if we have already registered the dataset?
upvoted 5 times
azure1000
2 years, 10 months ago
Because its a CSV.
upvoted 4 times
azure1000
2 years, 10 months ago
My bad... I missed the option.
upvoted 1 times
...
...
HkIsCrazY
2 years, 11 months ago
Same concern. Why not A?
upvoted 1 times
trickerk
2 years, 11 months ago
Because to "loads data" needs to call "as_mount()" function.
upvoted 2 times
ahmeddataengineer
2 years, 5 months ago
when to use "as_dowload" and "as_mount" please what is the difference
upvoted 1 times
[Removed]
2 years, 5 months ago
view docs here: https://docs.microsoft.com/en-us/azure/machine-learning/how-to-train-with-datasets#mount-vs-download
upvoted 3 times
...
...
...
...
...
fhlos
Most Recent 11 months, 2 weeks ago
Selected Answer: B
B - ChatGPT
upvoted 1 times
...
racnaoamo
2 years ago
on exam 18-5-22
upvoted 2 times
...
[Removed]
2 years, 3 months ago
On 20Feb2022
upvoted 2 times
...
hargur
2 years, 7 months ago
on 19Oct2021
upvoted 2 times
...
kisskeo
2 years, 8 months ago
On Exam 01 Oct 2021
upvoted 2 times
...
snsnsnsn
2 years, 9 months ago
on 2/9/21
upvoted 4 times
...
mayank25
3 years ago
Yes please tell if estimator questions still appear?
upvoted 2 times
...
NaishinMatiri
3 years, 1 month ago
if the question specifies that we're planing to use an script, shouldn't we be using script_params?
upvoted 1 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 ...