Design Real Time Card Fraud Scoring at Authorization Time
Last updated: November 29, 2026
Quick Overview
Design an ML system that scores every credit and debit card authorization for fraud within the network's response deadline and decides approve, decline or step-up, while supporting retraining and regulatory model governance.
Bank of America
November 29, 20260
0
0 solved
Design an ML system that scores every credit and debit card authorization for fraud within the network's response deadline and decides approve, decline or step-up, while supporting retraining and regulatory model governance.
An ML system design round for fraud and risk teams at a bank with tens of millions of active cards. The interviewer checks the latency budget, point-in-time correct features, label delay from chargebacks, class imbalance, cost-based thresholds, and model risk management requirements such as explainability and monitoring.
What the Interviewer Expects
- Sub-100ms scoring path with an in-memory feature store
- Real-time aggregates such as spend velocity and new merchant flags
- Point-in-time correct training data and delayed labels
- Threshold chosen on fraud loss versus false decline cost
- Fallback rules when the model or features are unavailable
- Monitoring, explainability and model governance
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 labels that arrive 30 to 90 days later?
- How would you detect a new fraud pattern faster than the retraining cycle?
- How do you choose different thresholds for card-present and card-not-present?
- How do you explain a decline to a customer and to model validators?
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
Requirements
Score each authorization (amount, merchant, MCC, channel, device, location) and return a decision inside the issuer's processing budget, so the model gets roughly 30 to 50ms. Peak several thousand aut...
High-Level Design
Authorization switch calls a Scoring Service. It fetches features from a low-latency store (account profile, aggregates like count and sum over 1h, 24h, 7d, distance from last card-present location, m...