
Databricks Certified Machine Learning - Associate
Get started today
Ultimate access to all questions.
A senior machine learning engineer is developing a machine learning pipeline. They set up the pipeline to automatically transition a new version of a registered model to the Production stage in the Model Registry once it passes all tests using the MLflow Client API client. Which operation was used to transition the model to the Production stage?
A senior machine learning engineer is developing a machine learning pipeline. They set up the pipeline to automatically transition a new version of a registered model to the Production stage in the Model Registry once it passes all tests using the MLflow Client API client. Which operation was used to transition the model to the Production stage?
Explanation:
The MLflow Client API provides a method called transition_model_version_stage
that allows you to transition a model version to a specified stage in the Model Registry. This method requires parameters such as the name of the registered model, the version of the model, and the target stage to which the model version should be transitioned. For example:
import mlflow
# Assuming ‘client‘ is an MLflow Client instance
client.transition_model_version_stage(name=“your_model_name“, version=your_model_version, stage=“Production“)
Other options are incorrect because:
Client.update_model_stage
does not exist in the MLflow Client API.client.transition_model_version
transitions a model version without specifying the target stage.client.update_model_version
is not a valid method in the MLflow Client API.