Engineer Point-in-Time Features for Prime Membership Churn
Last updated: November 29, 2026
Quick Overview
You are building a model that predicts whether a Prime member will cancel in the next 30 days. Describe how you would construct training examples and features with point-in-time correctness, and identify which tempting features would leak.
Amazon
November 29, 20260
0
0 solved
You are building a model that predicts whether a Prime member will cancel in the next 30 days. Describe how you would construct training examples and features with point-in-time correctness, and identify which tempting features would leak.
Prime is one of Amazon's most important subscriptions, and retention models feed marketing and save offers. The interviewer checks whether you can build a training set that matches what the model will see on scoring day, which is where most churn models silently fail.
What the Interviewer Expects
- Defines a snapshot date, a feature window before it and a label window after it
- Builds features with as-of joins that only use data available at the snapshot
- Identifies leaky features such as cancellation-flow visits or auto-renew toggles after the snapshot
- Samples multiple snapshots per member while handling correlation
- Validates with a time-based split that mirrors scoring
Key Topics to Cover
How to Approach This
- Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
- Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
- Feature engineering is often more impactful than model selection.
- Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
- Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
- How do you handle members who are on a free trial?
- What is the risk of using a feature table that is overwritten daily?
- How would you choose the label window length?
- How would you evaluate if save offers changed the outcome for some members?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Explore ML Interview PrepSample Answer
Clarify
Ask how the score is used (weekly save-offer targeting), what counts as churn (cancellation or failed renewal), and which data sources exist (orders, Prime Video streaming, shipping, support contacts,...
Approach
Use a snapshot design. For each member and each weekly snapshot date : features use events in , and the label is whether the member churns in . Every feature is built wi...