During a custom evaluation job, an engineer saves a confusion-matrix image to a local path and wants it attached to the current MLflow run together with the trained sklearn model. What should she do?
Answer & explanation
Correct answer: D
WHY D: mlflow.log_artifact attaches local files such as images to the active run, and MLflow model flavors are used to log trained models in the same run, so both appear in the run metadata and artifacts.
WHY NOT A: Local files can be logged as artifacts, including ones generated in the same notebook session.
WHY NOT B: Arbitrary artifacts are supported and are displayed and retained alongside a logged model.
WHY NOT C: Logging artifacts and models can happen within the run workflow; registration does not close the run.
WHY NOT E: Tags are not a substitute for binary artifacts or model logging.