exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 3 question 166 discussion

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

You manage an Azure Machine Learning workspace.

You must log multiple metrics by using MLflow.

You need to maximize logging performance.

What are two possible ways to achieve this goal? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

  • A. MLflowClient.log_batch
  • B. mlflow.log_metrics
  • C. mlflow.log_metric
  • D. mlflow.log_param
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️

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
avinyc
5 months, 1 week ago
Selected Answer: AB
The correct answers are: A. MLflowClient.log_batch B. mlflow.log_metrics
upvoted 2 times
Murzfam
4 months, 2 weeks ago
But, there is no option for log_metrics but log_metric
upvoted 1 times
...
...
testgm
6 months, 1 week ago
Selected Answer: AC
No log_metrics, just log_metric
upvoted 1 times
...
Karthikat
1 year, 4 months ago
Performance considerations: If you need to log multiple metrics (or multiple values for the same metric), avoid making calls to mlflow.log_metric in loops. Better performance can be achieved by logging a batch of metrics. Use the method mlflow.log_metrics which accepts a dictionary with all the metrics you want to log at once or use MLflowClient.log_batch which accepts multiple type of elements for logging. See Log curves or list of values for an example.
upvoted 2 times
...
deyoz
1 year, 4 months ago
If you need to log multiple metrics (or multiple values for the same metric), avoid making calls to mlflow.log_metric in loops. Better performance can be achieved by logging a batch of metrics. Use the method mlflow.log_metrics which accepts a dictionary with all the metrics you want to log at once or use MLflowClient.log_batch which accepts multiple type of elements for logging. See Log curves or list of values for an example. answer A,B
upvoted 1 times
...
Tin_Tin
1 year, 4 months ago
Selected Answer: AB
A & B are correct
upvoted 1 times
...
Ran2025
1 year, 7 months ago
A & B https://learn.microsoft.com/en-us/azure/machine-learning/how-to-log-view-metrics?view=azureml-api-2&tabs=interactive
upvoted 1 times
...
PI_Team
1 year, 9 months ago
Selected Answer: AB
Correct answer! :) Performance considerations: If you need to log multiple metrics (or multiple values for the same metric) avoid making calls to mlflow.log_metric in loops. Better performance can be achieved by logging batch of metrics. Use the method mlflow.log_metrics which accepts a dictionary with all the metrics you want to log at once or use MLflowClient.log_batch which accepts multiple type of elements for logging. See here: https://learn.microsoft.com/en-us/azure/machine-learning/how-to-log-view-metrics?view=azureml-api-2&tabs=interactive SaM
upvoted 4 times
...
BR_CS
1 year, 10 months ago
Selected Answer: AC
there is no "log_metrics" but "log_metric"
upvoted 1 times
Tin_Tin
1 year, 4 months ago
Use mlflow.log_metrics() to log multiple metrics at once.
upvoted 1 times
...
...
SGES
1 year, 10 months ago
AB is correct Performance considerations: If you need to log multiple metrics (or multiple values for the same metric) avoid making calls to mlflow.log_metric in loops. Better performance can be achieved by logging batch of metrics. Use the method mlflow.log_metrics which accepts a dictionary with all the metrics you want to log at once or use MLflowClient.log_batch which accepts multiple type of elements for logging. See Logging curves or list of values for an example. https://learn.microsoft.com/en-us/azure/machine-learning/how-to-log-view-metrics?view=azureml-api-2&tabs=interactive
upvoted 1 times
...
phdykd
1 year, 10 months ago
A,C is right
upvoted 1 times
...
abcd9999
1 year, 10 months ago
Selected Answer: AC
There is no method called mlflow.log_metrics. It's mlflow.log_metric
upvoted 2 times
...
phdykd
1 year, 10 months ago
A. MLflowClient.log_batch B. mlflow.log_metrics
upvoted 3 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 ...