exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 3 question 151 discussion

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

HOTSPOT
-

You create an Azure Machine Learning workspace.

You must use the Python SDK v2 to implement an experiment from a Jupyter notebook in the workspace. The experiment must log a table in the following format:

table = {
"col1" : [1, 2, 3],
"col2" : [4, 5, 6]
)

You need to complete the Python code to log the table.

How should you complete the code? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer:

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
BR_CS
Highly Voted 1 year, 2 months ago
The code makes no sense at all.
upvoted 6 times
...
sl_mslconsulting
Most Recent 5 months, 1 week ago
You opened a file for write. It can't be "load" function. import json import mlflow data = { "col1" : [1, 2, 3], "col2" : [4, 5, 6] } filename = 'data.json' with open(filename, 'w') as f: json.dump(data, f) mlflow.log_artifact(filename)
upvoted 4 times
...
gracel11
6 months ago
The first one should be json.load() json.load() : read JSON data from a file and convert it into a dictionary. json.dump(): used for writing the Python object i.e. dict to JSON file.
upvoted 1 times
...
Ran2025
1 year ago
I think the first answer is 'load'. json.dump(object, file)
upvoted 1 times
Ran2025
1 year ago
the second is 'log_artifact' https://learn.microsoft.com/en-us/azure/machine-learning/how-to-log-view-metrics?view=azureml-api-2&tabs=interactive
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago