A data scientist is using MLflow to log a model on Databricks. They want to ensure that the model can be loaded and used for inference in a different environment. Which two of the following are necessary components that must be included when logging the model to guarantee portability? (Choose two.)
The conda environment file is critical for portability because it specifies the exact libraries and versions needed to run the model. When loading in a different environment, MLflow uses this file to recreate the environment. Without it, the model may fail to load due to missing or incompatible dependencies. Therefore, it is a necessary component for ensuring the model works as intended elsewhere.
Why this answer
For a model to be portable across environments, it must include a signature to define input/output schemas and a conda environment file to capture dependencies. These ensure that the model can be correctly loaded and executed elsewhere. Other elements like training data, run ID, or input examples are not required for the model to function.
Exam trap
The trap here is confusing optional metadata like input examples or run IDs with the core components needed for a model to load and run in a new environment.