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
Machine Learning
Data Scientist
Amazon
November 29, 2026
Data Scientist
Onsite
Machine Learning
Hard

0

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
point-in-time correctness
label leakage
snapshot design
feature store
survival framing
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. 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 Prep
Sample 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 tt: features use events in [t−90d,t)[t - 90d, t), and the label is whether the member churns in [t,t+30d)[t, t + 30d). Every feature is built wi...


Submit Your Answer
Markdown supported