Courseiva
Model Development →mediumMultiple Choice

Databricks-ML-Pro Model Development Practice Question

A machine learning engineer needs to track hyperparameter tuning experiments in Databricks using MLflow. Which approach best ensures that model training runs are associated with the correct code version and environment settings?

⚠ Common exam trap

Candidates often choose manual file uploads or standard local scripts, overlooking how Databricks Repos automatically integrates with Git to track exact code versions for experiment reproducibility.

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

✓

Run the training notebook from a Databricks Repo and use the mlflow.tracking.fluent API to track experiments.

Integrating MLflow with Git projects via Databricks Repos allows for automatic logging of the git commit hash. This practice is crucial for reproducibility, as it enables data scientists to map specific model performance metrics back to the exact codebase state used during development, ensuring auditability and consistency across development, staging, and production environments.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Manually log the git commit hash as a parameter in every mlflow.log_param call within the training script.

    Why it's wrong here

    Manual logging is prone to human error and developer inconsistency. Relying on manual input does not guarantee that the recorded hash matches the actual code executed during the run, making it an unreliable method for enterprise-grade experiment tracking and model governance in a collaborative team environment.

  • ✗

    Utilize mlflow.set_tracking_uri with a local file system path for all distributed training nodes.

    Why it's wrong here

    Using a local file system path for the tracking URI in a distributed Databricks environment will cause failures because worker nodes cannot access local paths on the driver or other workers. The tracking URI must point to the managed MLflow service or a centralized shared storage location.

  • ✓

    Run the training notebook from a Databricks Repo and use the mlflow.tracking.fluent API to track experiments.

    Why this is correct

    Databricks automatically captures the git context, including the branch and commit hash, when executing notebooks within a Repo. This integration ensures that experiment metadata is automatically enriched with source control information, providing a verifiable link between the model development process and the specific code repository state.

  • ✗

    Hardcode the environment configuration inside the model training loop using environment variables.

    Why it's wrong here

    Hardcoding configurations limits the portability of the training script and creates maintenance overhead. It does not provide a mechanism to track the lineage of the code or environment setup, which is essential for troubleshooting model performance issues or reproducing results after the training session has concluded.

About these practice questions

One of 300 original Databricks-ML-Pro 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-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.