MLA-C01 Study Guide: Data Leakage and Validation Splits
Use this AWS Machine Learning Engineer Associate study guide to practice time-based splits, feature availability checks, and reproducible evaluation.
For MLA-C01 scenarios, decide when and for whom the model predicts. Choose a split that matches that deployment scenario, and build every training feature from information available at prediction time.
Start with a prediction-time contract
A subscription service wants to flag accounts likely to cancel in the next 30 days. It produces a prediction on the first day of every month. Build each training example around that date. Use eligible activity recorded before the prediction date for input features and record whether cancellation happens during the next 30 days as the outcome.
A field showing the reason for cancellation can be useful for later analysis. At the monthly prediction date it would be absent for nearly everyone whose cancellation is still in the future. Including it in training could produce a misleading validation score. Make a simple inventory listing the event time and the time each feature normally becomes available for use.
Choose validation rows from a later period
Suppose you have monthly snapshots from January through June and durable outcome records beyond June. Start with January through April for training, May for validation, and June for testing. Before using that arrangement, check whether training labels would have fully matured when evaluation is supposed to start. If a training label uses data beyond that boundary, move the split or leave a gap.
Repeated accounts also affect the question you can answer. If production predicts for existing subscribers every month, seeing the same account in later time periods may reflect real use. If the business wants to predict only for accounts never seen before, use a validation design that also separates accounts. Explain the deployment question and the resulting split together.
Fit preprocessing using the training data
Imagine a numeric feature with missing values. Compute the replacement median from training rows and apply it to validation and test rows using the same saved preprocessing rule. Calculating the median across all three partitions allows information from later periods into training. The same principle applies to a learned scaler or a vocabulary derived from text.
Use validation for model and threshold decisions. Freeze the chosen approach before looking at the final test set. If the team repeatedly revises the model after seeing test results, set aside a fresh holdout for a final check. Preserve the feature definition, split dates, and preprocessing settings so another engineer can reproduce the evaluation.
Solve an original MLA-C01 scenario
A teammate reports much higher accuracy after adding a variable that counts support tickets opened during the 30 days after the prediction date. They also shuffled all monthly snapshots together. Identify two ways to restore a useful evaluation. First, restrict the ticket feature to the approved lookback period. Second, rebuild the split so that later prediction dates evaluate a model trained on earlier examples with complete labels.
Then verify that the score refers to the business decision. At a chosen threshold, compare how many flagged accounts the retention team can contact with how many cancellations it caught. Report the dates and threshold with the result so an operational reviewer can tell exactly what the metric represents.
For a final drill, compare a one-month lookback with a three-month lookback using the same validation dates. Note which accounts lack sufficient history and how your preprocessing handles them. A leaderboard improvement has limited meaning if the models were evaluated on different eligible populations.
Your next steps
- Define feature availability relative to prediction time.
- Evaluate on later data when the live workload predicts future outcomes.
- Fit preprocessing before using validation or test data.
Sources & official resources
Linked resources checked on 2026-11-30. Technical behavior and provider guidance can change; check the documentation for the version you use.
About this guide and its recommendations
Published by Prep With Proof with AI-assisted drafting. Study routines and examples are editorial suggestions, not official exam instructions or claims of a learner's personal results. Cited provider facts are linked; ownership of recommended Prep With Proof products is disclosed. No competitor endorsement or guaranteed certification outcome is implied.
Suggest a correction →