exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 3 question 99 discussion

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

You run a script as an experiment in Azure Machine Learning.
You have a Run object named run that references the experiment run. You must review the log files that were generated during the experiment run.
You need to download the log files to a local folder for review.
Which two code segments can you run to achieve this goal? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.

  • A. run.get_details()
  • B. run.get_file_names()
  • C. run.get_metrics()
  • D. run.download_files(output_directory='./runfiles')
  • E. run.get_all_logs(destination='./runlogs')
Show Suggested Answer Hide Answer
Suggested Answer: DE 🗳️

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
Oliverto
Highly Voted 2 years, 10 months ago
D & E "You need to download the log files to a local folder for review." Only D&E downloads data.
upvoted 9 times
zehraoneexam
2 years, 7 months ago
No, you re downloading with the E.
upvoted 1 times
...
...
evangelist
Most Recent 4 months, 3 weeks ago
Selected Answer: DE
# Assuming 'run' is your Run object # Download all files associated with the run to a local directory run.download_files(output_directory='./runfiles') # Download all logs associated with the run to a local directory run.get_all_logs(destination='./runlogs')
upvoted 1 times
...
deyoz
9 months ago
get details also gives current log files, so why it is incorrect? https://learn.microsoft.com/en-us/python/api/azureml-core/azureml.core.run(class)?view=azure-ml-py
upvoted 1 times
...
phdykd
1 year, 8 months ago
D. run.download_files(output_directory='./runfiles') E. run.get_all_logs(destination='./runlogs') Explanation: Option D (run.download_files(output_directory='./runfiles')) downloads all the files generated during the experiment run to a local folder named "runfiles" in the current working directory. This includes the log files and any other files generated during the experiment. Option E (run.get_all_logs(destination='./runlogs')) downloads all the logs generated during the experiment run to a local folder named "runlogs" in the current working directory. This includes any stdout and stderr output generated during the experiment run. Option A (run.get_details()) returns the details of the experiment run, such as the start time, end time, and run ID, but it does not download any files. Option B (run.get_file_names()) returns the names of all the files generated during the experiment run, but it does not download any files. Option C (run.get_metrics()) returns any metrics collected during the experiment run, but it does not download any files.
upvoted 2 times
...
PremPatrick
1 year, 11 months ago
Selected Answer: DE
For Downloads D,E
upvoted 1 times
...
ning
2 years, 4 months ago
A is not correct, get_details_with_log will download the log file content, otherwise, just show log file name
upvoted 1 times
...
WeiD
2 years, 5 months ago
D & E download_files Download files from a given storage prefix (folder name) or the entire container if prefix is unspecified. get_all_logs Download all logs for the run to a directory.
upvoted 2 times
...
pancman
2 years, 6 months ago
Selected Answer: DE
D and E Reference: https://docs.microsoft.com/en-us/python/api/azureml-core/azureml.core.run(class)?view=azure-ml-py#azureml-core-run-get-all-logs
upvoted 2 times
...
Thornehead
2 years, 7 months ago
Selected Answer: DE
It is absolutely D and E. https://docs.microsoft.com/en-us/python/api/azureml-core/azureml.core.run(class)?view=azure-ml-py#azureml-core-run-get-all-logs
upvoted 1 times
...
kkkk_jjjj
2 years, 7 months ago
on exam 18/03/2022
upvoted 4 times
...
ranjsi01
2 years, 9 months ago
Selected Answer: DE
download log files to local folder.
upvoted 2 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