Design a Card Fraud Detection Model for Real-Time Authorisation

Last updated: November 29, 2026

Quick Overview

Design the machine learning system that scores card transactions for fraud during authorisation for a retail bank's debit and credit cards, including features, labels, model choice, serving, monitoring and how decisions are made from scores.

Deutsche Bank
ML System Design
Machine Learning Engineer
Deutsche Bank
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Hard

0

0

0 solved


Design the machine learning system that scores card transactions for fraud during authorisation for a retail bank's debit and credit cards, including features, labels, model choice, serving, monitoring and how decisions are made from scores.

Deutsche Bank's Private Bank and Postbank issue millions of cards in Germany and must block fraud without declining good customers, under strict latency and model governance rules. The ML system design round checks label design with delayed feedback, real-time feature computation, class imbalance, explainability for model risk review, and cost-based thresholds.

What the Interviewer Expects
  • Define the decision, latency budget and business cost of false positives and false negatives
  • Design labels that account for chargeback delay
  • Describe real-time velocity and behavioural features with a feature store
  • Choose a model and justify it with explainability and latency
  • Pick thresholds from expected cost, with step-up authentication as a middle option
  • Plan monitoring, drift detection and model governance
Key Topics to Cover
Delayed labels
Feature store
Gradient boosted trees
Cost-sensitive thresholds
Drift monitoring
Model governance
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
  • How would you evaluate a new model safely when you only observe fraud labels on approved transactions?
  • How do you handle a new fraud pattern that appears overnight?
  • What would a model risk validator ask about this model?
  • How would you use graph features such as shared devices or merchants?
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

Score each authorisation request in under about 50 ms of the overall authorisation budget, at peaks of a few thousand per second. Output: approve, decline, or step-up (for example 3-D Secure or an app...

High-Level Design
  • Online path: authorisation switch calls the scoring service with the transaction; the service fetches features from an online feature store (Redis or similar), runs the model, applies a rules la...

Submit Your Answer
Markdown supported

Related Questions