Design Coupon and Promotion Abuse Detection for Prime Day
Last updated: November 29, 2026
Quick Overview
Prime Day promotions such as first-order credits and limited-per-customer coupons attract abusers who create many accounts to redeem them repeatedly. Design a system that detects and blocks this abuse without slowing checkout.
Amazon
November 29, 20260
0
0 solved
Prime Day promotions such as first-order credits and limited-per-customer coupons attract abusers who create many accounts to redeem them repeatedly. Design a system that detects and blocks this abuse without slowing checkout.
An ML system design question in the style of Amazon's promotions abuse and buyer risk teams, set during a peak event. The interviewer looks for entity linking across accounts, graph features, a decision point that fits checkout latency, and a plan for a traffic surge where yesterday's model may not hold.
What the Interviewer Expects
- Identifies that abuse is about linked identities, not single accounts
- Builds an identity graph from shared devices, addresses and payment instruments
- Scores at redemption time with precomputed cluster features
- Separates prevention at checkout from later clawback
- Plans for peak load and new abuse patterns during the event
- Measures promotion dollars saved against good customers blocked
Key Topics to Cover
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
- How do you handle households that legitimately share an address?
- What happens when abusers use fresh devices and gift cards?
- How do you retrain during a two-day event?
- Which decisions should be reversible after the fact?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice ML System Design ProblemsSample Answer
M
- Promotions: one-per-customer coupons, new-account credits, limited quantity deals.
- Decide at redemption (checkout) within about 30 ms added latency.
- Actions: allow, deny promotion (order still p...
L
- Identity graph: nodes are accounts; edges are shared device fingerprints, normalized shipping addresses, payment instruments, phone numbers and email patterns. Built in batch daily with streami...