Courseiva
ML Workflows →mediumMultiple Choice

Databricks-ML-Assoc ML Workflows Practice Question

You are tracking a deep learning model experiment using MLflow. You want to ensure that the model architecture and all hyperparameters are easily reproducible. Which approach is best practice?

⚠ Common exam trap

Candidates frequently log only metrics, ignoring the environment configuration. They fail to realize that without the exact package versions, a model cannot be reliably reproduced in a different 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

✓

Log parameters, metrics, and include the conda environment configuration with the model.

Logging model parameters and the environment configuration (like conda.yaml or requirements.txt) via MLflow ensures reproducibility. By capturing the exact package versions and architectural settings during the run, you eliminate the 'it works on my machine' problem. This practice is essential in production workflows where model drift or performance degradation requires auditing the exact conditions under which a specific model version was trained.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    Only log the final model artifacts to the MLflow Model Registry to save disk space.

    Why it's wrong here

    Logging only the final artifact omits the metadata, hyperparameters, and environment dependencies needed for reproduction. Without these, retraining the model or troubleshooting performance issues becomes impossible, as the context behind the model's creation is lost, rendering the artifact an opaque black box.

  • ✓

    Log parameters, metrics, and include the conda environment configuration with the model.

    Why this is correct

    Logging parameters and environment configuration ensures that the code can be executed in an identical environment. MLflow automatically packages these dependencies, allowing you to restore the training state precisely. This reproducibility is a fundamental requirement for compliance, debugging, and iterative model development in enterprise ML pipelines.

  • ✗

    Manually copy the training code into a text field in the MLflow UI for every run.

    Why it's wrong here

    Manual processes are prone to human error and do not scale with experiment volume. MLflow is designed to automate metadata capture directly from the execution runtime. Relying on manual entry defeats the purpose of experiment tracking and creates a discrepancy between the recorded code and actual code.

  • ✗

    Use a global variable in your notebook to store all hyperparameters for easy access.

    Why it's wrong here

    Global variables are volatile and do not persist across sessions or restarts. MLflow provides a centralized store for these metrics and parameters that persists independently of the notebook session. Relying on notebook state is a major anti-pattern that hinders team collaboration and long-term experiment tracking.

About these practice questions

One of 319 original Databricks-ML-Assoc practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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-Assoc 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-Assoc exam.