Skip to content

ONE QUESTION. YOUR REASONING.

Design real-time fraud detection

Design a fraud check on the payment path: every card payment gets a decision to approve, block or review before it is authorized, in under 100 ms.

System designPayments and ledgersSeniorStaff

YOUR BRIEF

What to work through

Work through real-time fraud detection as a spoken system design interview. Start by clarifying the scope, sketch a working design and explain the trade-offs behind your choices.

  • Score every payment and return approve, block or review before authorization
  • Combine fixed rules (block lists, velocity limits) with a model score
  • Let analysts add or change rules without a deploy
  • Send flagged payments to a manual review queue
  • Learn from chargebacks and fraud reports that arrive weeks later

BEFORE YOU START

Constraints to discuss

  • A decision in under 100 ms, as Stripe Radar does
  • Fraud is rare: about 1 payment in 1,000 at Stripe
  • Few good payments blocked: Radar wrongly blocks about 0.1% of legitimate payments
  • A payment still gets a decision when the fraud check is slow or down
Need a starting point?

Watch for these common gaps as you prepare:

  • Training on features recomputed later instead of the values logged at decision time
  • Scanning payment history at scoring time instead of reading precomputed counts
  • No plan for a slow or failed score, so the payment path waits or blocks everyone
  • Treating labels as instant, when chargebacks arrive weeks later
  • Judging the model by accuracy when fraud is 1 payment in 1,000
  • Rules shipped as code, so each change waits for a deploy
Read: System design questions and who asks them

Why this question is in the collection

These sources connect the problem to company interview reports or preparation guides. They do not guarantee what a company will ask you.

KEEP GOING

Your next question

Storage, files and linksDesign BitlyInfrastructure and platformDesign a rate limiterInfrastructure and platformDesign an A/B testing platformInfrastructure and platformDesign an ad click aggregator
Browse the collection
01

Pick a question

Read the brief and choose what you want to work on.

02

Talk it through

Explain your thinking. Respond to follow-ups. Draw when a design needs it.

03

Find your next improvement

Use the feedback from your interview to decide what to practise next.