You tune a single-node model with Optuna on Databricks. What should the setup include?
- Exam domain
- Model Development44% of the exam
- Difficulty
- Medium
- In this mock
- 22 questions on this domainPractise this domain
Why the exam asks this
Model Development (44% of the exam)
Objective in the exam guide: Perform distributed hyperparameter tuning using Optuna and integrate it with MLflow.
Distributed Optuna with MLflow is named.
Why B is the answer
An objective, parallel trials, and MLflow logging per trial
Optuna searches with an objective function. Distributing trials uses the cluster, and logging to MLflow keeps every trial comparable.
Remember: Distribute Optuna trials, log to MLflow.
How it works
Optuna trials parallelize and track well with MLflow.
In detail
- Objective function.
- Parallel trials, logged to MLflow.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Running each trial in a separate notebook by hand and copying the results into a spreadsheetWrong
Manual runs lose tracking.
B. An objective, parallel trials, and MLflow logging per trialRight
Distribute Optuna trials, log to MLflow.
C. One trial on the driver onlyWrong
One trial is not tuning.
D. Grid search inside Optuna with no loggingWrongMost tempting
Unlogged trials cannot be compared.
Why it tempts: Grid search is familiar.
Use case
An illustrative scenario, not a real incident.
Illustrative: 120 XGBoost trials run across 12 workers, each a nested MLflow run.
See it in different ways
flowchart LR S0["Define objective"] --> S1["Create study"] --> S2["Run trials in parallel"] --> S3["Log to MLflow"] --> S4["Best params"]
How to read this chart
- Read it in order: Define objective, then Create study, then Run trials in parallel, then Log to MLflow, then Best params.
sequenceDiagram participant P0 as Optuna study participant P1 as Workers participant P2 as MLflow P0->>P1: suggest params P1->>P2: log trial P1-->>P0: score
How to read this chart
- 1. Optuna study sends "suggest params" to Workers.
- 2. Workers sends "log trial" to MLflow.
- 3. Optuna study gets a reply from Workers: "score".