Deploying MLflow Models to Online Endpoints
Short answer
B No
Question

Key Takeaways
The question tests whether candidates understand that MLflow models can be deployed without custom scoring scripts or environments via native integration, contrary to traditional custom model deployments.
This question tests the deployment of MLflow models with PyFunc flavor to Azure ML online endpoints, specifically addressing scenarios without egress connectivity. The community consensus confirms that adding a scoring_script parameter is incorrect because MLflow models support no-code deployment.
Common mistake: Candidates often select 'Yes' assuming all deployments require explicit code configuration (scoring_script and environment), failing to recognize the specific capabilities of MLflow model packaging in Azure ML.
Expert Analysis
Why the Answer Is Correct
The solution does not meet the goal because MLflow models, particularly those with PyFunc flavor, are designed for 'no-code' deployment when packaged correctly. In Azure Machine Learning, you can deploy these models directly using the model entity without specifying code_configuration (which includes scoring_script) or environment. This feature allows the platform to handle inference automatically based on the model's metadata.
Why the Other Options Are Wrong
Selecting 'Yes' is incorrect because the scoring_script parameter is part of CodeConfiguration, which is required for custom Python models but redundant and potentially conflicting for MLflow models managed by the service. The prompt explicitly mentions deploying without egress connectivity, which implies using offline-capable packaging methods rather than external script dependencies that might fail if they try to reach out.
Community Comment Notes
Comment [4] provides critical context by citing Microsoft Learn documentation, confirming that MLflow models do not require a scoring script or environment for online endpoint deployment. Comment [1] correctly identifies that the scoring script is irrelevant to the egress connectivity constraint, reinforcing that the proposed solution addresses the wrong problem.
Official Reference
This link opens the official vendor documentation in a new tab.
Exam Strategy
Recognize keywords like 'MLflow model' and 'PyFunc' as indicators for no-code deployment capabilities. When a question involves standard MLflow flavors, assume the native Azure ML infrastructure handles the scoring logic unless custom transformations are explicitly requested.
Community Votes
100% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 4 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 4
-
cryodax 👍 2The ManagedOnlineDeployment class requires the following parameters: name: str: Name of the deployment resource. model: str | Model | None: Model entity for the endpoint deployment, defaults to None. code_configuration: CodeConfiguration | None: Code Configuration, defaults to None. environment: str | Environment | None: Environment entity for the endpoint deployment, defaults to None. These are the minimum required parameters to create an instance of the ManagedOnlineDeployment class. All other parameters are optional and have default values. Please note that while model, code_configuration, and environment are optional in the constructor, they are typically necessary for a successful deployment. If not provided in the constructor, they should be set before deployment.
-
f2a9aa5 👍 2B. To deploy an MLflow model to an online endpoint in Azure Machine Learning without egress connectivity, you can use model packaging. Here’s how: First, ensure that your workspace has no public network access. Package your MLflow model using the --with-package flag: az ml online-deployment create --with-package --endpoint-name $ENDPOINT_NAME -f blue-deployment.yml --all-traffic Replace $ENDPOINT_NAME with your desired endpoint name. This approach allows you to avoid the need for an internet connection while deploying MLflow models. https://learn.microsoft.com/en-us/azure/machine-learning/how-to-deploy-mlflow-models-online-endpoints?view=azureml-api-2&tabs=cli
-
D0ktor 👍 2 Answered BScoring script has nothing to do with egress connectivity
-
nposteraro 👍 1When you deploy your MLflow model to an online endpoint, you don't need to specify a scoring script or an environment—this functionality is known as no-code deployment. https://learn.microsoft.com/en-us/azure/machine-learning/how-to-deploy-mlflow-models-online-endpoints?view=azureml-api-2&tabs=cli
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.