Courseiva
easyMultiple Choice

PMLE Practice Question: An ML team is moving from a prototype Jupyter…

An ML team is moving from a prototype Jupyter notebook to a production training pipeline. They want to ensure reproducibility. Which approach should they take?

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

✓

Use a container with fixed dependencies and record hyperparameters.

Using a container with fixed dependencies and recording hyperparameters ensures that the training environment and configuration are captured, enabling exact reproduction. Option A is wrong because interactive parameter tuning is not reproducible—it introduces manual adjustments. Option C is wrong because exporting the notebook's output model directly lacks environment tracking and hyperparameter records. Option D is wrong because saving the notebook as a .py file does not capture the full environment or dependencies.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Use interactive parameter tuning.

    Why it's wrong here

    Interactive parameter tuning adjusts hyperparameters during experimentation but records nothing about data versions, code commits or environment state, so runs cannot be replayed identically. It is genuinely useful for exploratory model selection, where rapid iteration matters more than auditability.

  • ✓

    Use a container with fixed dependencies and record hyperparameters.

    Why this is correct

    Pinning dependencies inside a container image plus logging hyperparameters captures every input that affects training, so any run can be reproduced exactly. Notebooks alone leave library versions and random seeds unpinned, breaking reproducibility across environments.

  • ✗

    Export the notebook's output model directly.

    Why it's wrong here

    Exporting the trained model captures only the fitted artefact, not the preprocessing steps, dependency versions or random seeds that produced it, so retraining cannot be reproduced. Export is correct when the goal is deployment inference rather than pipeline reproducibility.

  • ✗

    Save the notebook as a .py file.

    Why it's wrong here

    Converting the notebook to a .py file preserves code but not execution order, pinned library versions, data snapshots or seeds, so reruns still diverge. Script conversion suits scheduled batch jobs where the notebook's exploratory cells are already finalised.

About these practice questions

This PMLE question is part of Courseiva's 775-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This PMLE practice question is part of Courseiva's free Google Cloud 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 PMLE exam.