nerdexam
MicrosoftMicrosoft

DP-100 · Question #489

DP-100 Question #489: Real Exam Question with Answer & Explanation

The correct answer is D: mlflow.log_text(). {"question_number": 7, "question": "You create an Azure Machine Learning workspace. You must use the Python SDK v2 to implement an experiment from a Jupyter notebook. The experiment must log string metrics. You need to implement the method to log the string metrics. Which method

Explore data and run experiments

Question

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 string metrics. You need to implement the method to log the string metrics. Which method should you use?

Options

  • Amlflow.log_artifact()
  • Bmlflow.log.dict()
  • Cmlflow.log_metric()
  • Dmlflow.log_text()

Explanation

{"question_number": 7, "question": "You create an Azure Machine Learning workspace. You must use the Python SDK v2 to implement an experiment from a Jupyter notebook. The experiment must log string metrics. You need to implement the method to log the string metrics. Which method should you use?", "correct_answer": "D. mlflow.log_text()", "explanation": "'mlflow.log_text(text, artifact_file)' logs a string value as a text artifact, making it the correct choice for recording string data. 'mlflow.log_metric()' only accepts numeric (float) values and will raise an error if passed a string. 'mlflow.log_artifact()' uploads a local file path, not an in-memory string. 'mlflow.log.dict()' uses incorrect dot notation - the valid method is 'mlflow.log_dict()', which logs a dictionary as a JSON/YAML artifact, not a plain string.", "generated_by": "claude-sonnet", "llm_judge_score": 3}

Topics

#Azure Machine Learning#MLflow#Experiment Tracking#Logging Metrics

Community Discussion

No community discussion yet for this question.

Full DP-100 PracticeBrowse All DP-100 Questions