Deploying MLflow Models to Azure Online Endpoints
Short answer
B No
Question

Key Takeaways
Tests understanding of MLflow model deployment requirements, specifically the trap of assuming environment alone suffices without code configuration.
Deploying MLflow models with PyFunc flavor requires specific configuration for no-code deployment. Community consensus indicates that adding only the environment parameter is insufficient.
Expert Analysis
Why the Answer Is Correct
The solution fails because deploying an MLflow model with PyFunc flavor typically requires more than just an environment definition when using the Python SDK v2 ManagedOnlineDeployment object. While MLflow supports 'no-code' deployment scenarios, PyFunc models often require explicit handling or specific packaging flags if egress connectivity is restricted, as noted in community comments regarding --with-package. The ManagedOnlineDeployment constructor generally requires a model reference and often a code_configuration or explicit environment setup that matches the runtime needs, not just the environment variable alone.
Why the Other Options Are Wrong
Option A is incorrect because simply adding the environment parameter does not guarantee successful deployment for a PyFunc model, especially under restricted network conditions. Without proper code configuration or model packaging instructions, the deployment will likely fail due to missing runtime context or scoring logic dependencies.
Community Comment Notes
Comment [1] highlights that standard MLflow deployments can sometimes skip scoring scripts/environments via no-code features, but this is context-dependent. Comment [3] emphasizes the need for --with-package flag for secure/no-egress environments, suggesting that simple parameter addition isn't enough. Comment [4] lists required parameters for ManagedOnlineDeployment, implying complexity beyond a single parameter fix.
Official Reference
This link opens the official vendor documentation in a new tab.
Exam Strategy
Always verify if the model flavor (e.g., PyFunc) has special deployment prerequisites like packaging or code configuration, especially in secure/no-egress scenarios.
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
-
nposteraro 👍 2When 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
-
D0ktor 👍 2 Answered BEnvironment is needed but not enought to meet requierements
-
cryodax 👍 1The 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 👍 1To 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
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.