DP-100 · Question #335
DP-100 Question #335: Real Exam Question with Answer & Explanation
The correct answer is D: mlflow.log_text("my_metric", my_dict). {"question_number": 4, "correct_answer": "D", "explanation": "The correct syntax is mlflow.log_text. When you need to log dictionary-type data as an artifact in MLflow, you convert or represent the dictionary as a string/text and log it using mlflow.log_text, which stores the con
Question
You manage an Azure Machine Learning workspace. You experiment with an MLflow model that trains interactively by using a notebook in the workspace. You need to log dictionary type artifacts of the experiments in Azure Machine Learning by using MLflow. Which syntax should you use?
Options
- Amlflow.log_input(my_dict)
- Bmlflow.log_metric("my_metric", my_dict)
- Cmlflow.log_metrics(my_dict)
- Dmlflow.log_text("my_metric", my_dict)
Explanation
{"question_number": 4, "correct_answer": "D", "explanation": "The correct syntax is mlflow.log_text. When you need to log dictionary-type data as an artifact in MLflow, you convert or represent the dictionary as a string/text and log it using mlflow.log_text, which stores the content as a text artifact file associated with the run. The other options are unsuitable: mlflow.log_input is for logging dataset inputs, mlflow.log_metric accepts only a single numeric value (not a dict), and mlflow.log_metrics expects a flat dictionary of string-to-float numeric metric values - not arbitrary dictionary artifacts.", "generated_by": "claude-sonnet", "llm_judge_score": 3}
Topics
Community Discussion
No community discussion yet for this question.