Design Real-Time Card Fraud Scoring Inside the Authorization Path

Last updated: November 29, 2026

Quick Overview

Design an ML system that scores every debit and credit card authorization for fraud and returns approve, decline, or step-up within the network's response deadline.

Wells Fargo
ML System Design
Machine Learning Engineer
Wells Fargo
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Hard

0

0

0 solved


Design an ML system that scores every debit and credit card authorization for fraud and returns approve, decline, or step-up within the network's response deadline.

Card authorizations at a bank of Wells Fargo's size run at thousands per second with a hard time budget set by the card networks, and fraud losses and false declines both hit customers directly. Interviewers want a latency-aware feature and serving design, a labeling strategy that handles delayed chargebacks, and a safe fallback when the model is unavailable.

What the Interviewer Expects
  • A latency budget broken down by stage (for example 30 ms p99 for scoring)
  • Real-time features from streaming aggregates plus batch profile features with consistent definitions
  • Label design with delayed and noisy fraud labels
  • Decision layer that combines model score, rules and cost of errors
  • Fallback path and safe deployment with shadow and champion-challenger
  • Monitoring for drift and fraud-pattern shifts
Key Topics to Cover
Streaming features
Low-latency serving
Delayed labels
Cost-sensitive thresholds
Model risk management
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
  • Fraud labels arrive up to 60 days later. How do you train and evaluate without leakage?
  • How would you set the decline threshold differently for a $4 coffee and a $2,000 electronics purchase?
  • How do you keep online and offline feature values identical?
  • A fraud ring shifts tactics in a week. How do you respond faster than a retrain cycle?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice ML System Design Problems
Sample Answer
Requirements

Peak 5k to 10k auths/s, scoring p99 under 30 ms within a roughly 100 ms bank budget, availability higher than the model itself (the auth path must never hang). Outputs: approve, decline, or approve wi...

High-Level Design

Authorization switch calls a scoring service with the auth message. The service fetches features from an online store (Redis or Aerospike): card profile (tenure, typical MCCs, home geography), and str...


Submit Your Answer
Markdown supported

Related Questions