0
0
MLOpsdevops~20 mins

MLflow setup and basics in MLOps - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
MLflow Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2:00remaining
MLflow Tracking Server Start Output
You run the command mlflow server --backend-store-uri sqlite:///mlflow.db --default-artifact-root ./artifacts. What output indicates the server started successfully?
MLOps
mlflow server --backend-store-uri sqlite:///mlflow.db --default-artifact-root ./artifacts
A2024/01/01 12:00:00 WARNING mlflow.server: Artifact root not found
B2024/01/01 12:00:00 INFO mlflow.server: Starting MLflow server at http://127.0.0.1:5000
CSyntaxError: invalid syntax in command
DError: Could not find mlflow.db file
Attempts:
2 left
💡 Hint
Look for a log line that confirms the server is running and listening.
🧠 Conceptual
intermediate
1:30remaining
MLflow Experiment Default Behavior
When you run mlflow.start_run() without specifying an experiment, what happens?
AMLflow saves the run locally without associating it to any experiment.
BMLflow throws an error because experiment must be specified.
CMLflow logs the run to the last used experiment automatically.
DMLflow creates a new experiment named 'Default' if it does not exist and logs the run there.
Attempts:
2 left
💡 Hint
Think about what MLflow does when no experiment is given.
🔀 Workflow
advanced
2:30remaining
Correct MLflow Run Logging Sequence
Arrange these steps in the correct order to log parameters and metrics in MLflow:
A2,3,1,4
B1,2,3,4
C2,1,3,4
D1,3,2,4
Attempts:
2 left
💡 Hint
You must start a run before logging anything, and end it last.
Troubleshoot
advanced
2:00remaining
MLflow Artifact Storage Issue
You configured MLflow with --default-artifact-root ./artifacts but your artifacts are not saved after runs. What is the most likely cause?
AThe artifacts directory does not exist or MLflow lacks write permission.
BThe backend store URI must be a remote database, not SQLite.
CMLflow requires an absolute path for artifact root, relative paths are not supported.
DMLflow only saves artifacts if you call <code>mlflow.save_artifact()</code> explicitly.
Attempts:
2 left
💡 Hint
Check file system permissions and directory existence.
Best Practice
expert
3:00remaining
MLflow Model Versioning Strategy
Which approach best supports reproducibility and easy rollback when using MLflow model registry in a team environment?
ARegister each model version with a unique version number and add descriptive tags for context.
BOverwrite the same model name every time to keep only the latest version.
CStore models only locally and avoid using the MLflow model registry to reduce complexity.
DUse a single experiment for all models and track versions manually in a separate document.
Attempts:
2 left
💡 Hint
Think about how teams can track and revert models easily.