Databricks-ML-Pro Model Deployment Practice Question
An ML engineer is deploying a model to Databricks Model Serving that requires a custom Python package not available in the default environment. The model was logged with MLflow and includes the package in its conda environment. What must the engineer ensure for the endpoint to successfully load the model?
⚠ Common exam trap
The trap here is assuming that serving endpoints run on Databricks clusters where you can install packages or run init scripts, when they actually use isolated serverless containers built from the model's conda environment.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The package must be included in the model's conda environment and the endpoint must be configured to use that environment.
Databricks Model Serving builds the serving environment from the MLflow model's conda environment. To use a custom package, it must be listed in that environment. The endpoint will then install it automatically. Cluster-based methods, DBFS uploads, or init scripts do not affect the serverless serving container, so they are not correct.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The package must be installed on the driver node of the Databricks cluster used for serving.
Why it's wrong here
Databricks Model Serving does not use a Databricks cluster for serving; it runs in a serverless containerized environment. Installing packages on a cluster driver has no effect on the serving endpoint. The endpoint builds its own environment based on the model's dependencies. Therefore, this approach will not make the custom package available to the model server.
- ✗
The package must be installed via an init script that runs when the endpoint starts.
Why it's wrong here
Databricks Model Serving does not support init scripts for customizing the serving environment. Init scripts are a feature of Databricks clusters, not serverless serving endpoints. The serving environment is built from the model's conda environment, and there is no mechanism to run arbitrary scripts during endpoint startup. Thus, this approach is not viable.
- ✗
The package must be uploaded to DBFS and referenced in the model's signature.
Why it's wrong here
The model signature defines the input and output schema, not dependencies. Uploading a package to DBFS does not automatically install it in the serving environment. The serving container does not read arbitrary DBFS paths for package installation; it relies on the conda environment specified in the MLflow model. Therefore, this method will not make the package available to the model.
- ✓
The package must be included in the model's conda environment and the endpoint must be configured to use that environment.
Why this is correct
When logging an MLflow model, the conda environment specifies the dependencies. Databricks Model Serving reads this environment file and installs the listed packages into the serving container. The engineer must ensure the custom package is correctly listed in the conda environment and that the endpoint is created without overriding the environment. This allows the serving environment to replicate the training environment, making the custom package available.
Quick reference
Cloud Service Model Comparison
| Model | You Manage | Provider Manages | Examples |
|---|---|---|---|
| IaaS | OS, runtime, apps, data | Hardware, hypervisor, networking | EC2, Azure VMs, GCP Compute Engine |
| PaaS | Apps and data | OS, runtime, middleware, hardware | Elastic Beanstalk, Azure App Service |
| SaaS | Data and settings only | Everything else | Microsoft 365, Salesforce, Workday |
| FaaS / Serverless | Function code only | Infra, scaling, runtime | Lambda, Azure Functions, Cloud Run |
| CaaS | Containers and apps | Kubernetes, OS, hardware | EKS, AKS, GKE |
About these practice questions
This Databricks-ML-Pro question is part of Courseiva's 300-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Databricks exam blueprint
This Databricks-ML-Pro practice question is part of Courseiva's free Databricks certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the Databricks-ML-Pro exam.