Reproducing ML runs with pinned data asset versions

AI-300 By islever Editorial Last updated

Short answer

C Publish immutable data asset versions and pin reproducible runs to a specific version so they replay the exact prior dataset snapshot.

Question

To reproduce a prior run exactly after a dataset's contents change, how should the dataset be managed?
  1. Keep one friendly asset name and replace its underlying files whenever data changes.
  2. Copy the changed files to each compute target and record only the local path in run logs.
  3. Publish immutable data asset versions and have reproducible runs reference a pinned version. Correct Answer
  4. Resolve the friendly asset name at runtime so the run always receives the newest contents.

Key Takeaways

Reproducible Azure Machine Learning runs depend on immutable, versioned data assets rather than a mutable friendly name. Publishing each dataset change as a new version and pinning the run to an explicit version guarantees the run receives the identical data snapshot even after newer data is published. Resolving the name at runtime, replacing files in place, or scattering local copies all break exact reproduction.

Expert Analysis

An immutable data asset version preserves the exact dataset contents used by a run even after newer data is published. Pinning the run to that version prevents a friendly name from resolving to changed files during reproduction. This stable reference links execution to a specific data snapshot, allowing the prior run to receive the same input rather than the latest contents.

The deciding constraint is that the run must reproduce a prior execution after the dataset's files have already changed, so the reference used by the run has to be independent of whatever the current files happen to be. Option C does this in Azure Machine Learning: a data asset is created as a versioned, immutable object (name plus version, e.g. training-data:3), and the run registers that exact version as an input. Publishing a new version writes a new version identifier and leaves the earlier version's backing blob snapshot untouched, so re-running the historical pipeline against training-data:3 hands the model the same bytes the original run consumed, even though a newer version now exists under the same friendly name.

Option A fails because it keeps only one mutable pointer: replacing the underlying files behind a single friendly name destroys the only copy of the prior contents, so the moment data changes there is nothing left to replay. Option B fails on both halves of its action — copying files to each compute target creates divergent, unmanaged copies rather than one governed snapshot, and recording only a local path in run logs does not identify which dataset content that path held, so the path can silently resolve to different files on a later machine. Option D fails for the opposite reason: resolving the friendly name at runtime is precisely what makes a run non-reproducible, because latest semantics guarantee the run receives the newest contents instead of the ones the original run saw.

A useful mechanism this scenario depends on but never spells out: in Azure Machine Learning, a data asset's name is the stable, human-friendly identifier, while the version is the immutable address of a specific blob snapshot — the name resolves to the highest published version only when no version is specified. So dataset means "whatever is newest now," while dataset:2 means "the exact files of version 2, forever." A reproducible run therefore must be configured with an explicit version (or a version recorded in the run's inputs), not merely with the asset name. This is why the pinning step in Option C is what converts a friendly, mutable label into a deterministic input, and why the other three options all leave the run's input subject to change after the fact.

The same reasoning carries into any reproducibility or lineage question on this exam: the correct answer will pair an immutable, explicitly identified artifact with a run that references that identifier, while distractors will either mutate the artifact in place, distribute copies, or resolve a name lazily at execution time.

Exam Strategy

When a question offers a mutable alias versus an immutable, explicitly versioned reference, choose the pinned version — reproducibility questions reward any option that decouples the run's input from current file state. Eliminate distractors that describe 'latest' resolution, in-place file replacement, or per-compute local copies, since each leaves the input ambiguous over time. Apply the same pattern to models, prompts, and environments: the answer is always the versioned identifier recorded at run time.

Practice All AI-300 Questions

Access 49 questions with complete answers and detailed explanations.

View Full AI-300 Practice Test →

← Back to AI-300 Study Guide