In SageMaker Pipelines, you need to ensure that data preprocessing artifacts used during training are exactly the ones stored during the preprocessing step, even across repeated executions with different inputs. What is the most correct approach?
Answer
Pass preprocessing outputs as explicit pipeline step outputs/inputs (data/ModelArtifacts) and reference them by step properties so downstream steps consume the same artifacts.
Explanation
Explicit artifact wiring ensures the same preprocessing artifacts produced in an earlier pipeline step are consumed by later steps, preventing accidental drift.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
You must deploy a model to a highly variable traffic pattern with strict latency SLOs and cost controls. Which SageMaker deployment approach best balances scaling responsiveness and steady-state cost?
View question →
You plan to use SageMaker Feature Store to provide online features for a model trained offline on historical data. Which configuration best aligns online training-serving consistency to avoid training/serving skew?
View question →
For a workload with mixed feature types, which strategy best reduces risk of leakage when performing end-to-end training/validation splits across S3-based offline datasets?
View question →
A candidate model is trained with an imbalanced dataset and shows strong accuracy but poor recall for the minority class. Which approach most directly targets the evaluation objective without distorting inference-time behavior?
View question →
A regression model in production exhibits systematic underprediction for high target values. Which root-cause analysis is most likely if you trained with standard MSE loss and targets have heavy tails?
View question →
You need reproducible training for a multi-run experiment using SageMaker Training with distributed workers. Which set of actions most directly supports determinism for both data ordering and model initialization?
View question →