Design a fraud detection system
Company: Amazon
Role: Software Engineer
Category: ML System Design
Difficulty: hard
Interview Round: Technical Screen
Design a real-time payment fraud detection system. Discuss: events and labels (chargebacks, disputes), feature store (user, device, merchant, graph features), model selection (tree ensembles, deep models, anomaly detection), rule engine + model ensemble, data pipeline and streaming inference, latency budgets and fallbacks, thresholding to balance false positives vs. fraud loss, human-in-the-loop review, concept drift and adversarial adaptation, explainability requirements, online experiments, monitoring (precision at top-K, approval rate, fraud rate), and incident response/rollback.
Quick Answer: This question evaluates competency in ML system design for fraud detection, including real-time streaming inference, feature store architecture, delayed/noisy label handling, model selection and ensembling, latency budgeting, monitoring, and operational MLOps considerations.