Code RoomCAPTCHA challenge service
MediumPrep Room Coding #3793

CAPTCHA challenge service

System designSecurityReliability & on-callMid–Senior~35 min

Design a CAPTCHA / challenge service that protects high-value endpoints (signup, login, checkout, password reset) across many customer websites, issuing 1M challenges/s globally with under 100ms to render a challenge token. Threat model: automated solvers, cheap human CAPTCHA-farms, and token replay/sharing. Goals: stop bots while keeping friction near-zero for real humans (accessibility matters), and stop a solved token from being reused or transferred. Cover the challenge types, the verification/token flow, replay/transfer protection, and the score-vs-block decision.

What a strong answer looks like

Clarify scale and constraints first. Propose a clean component breakdown, then go deep on the hard parts (data model, bottlenecks, consistency, failure modes) and name the trade-offs you are making.

Clarify4:00 left
Estimate4:00 planned
Design11:30 planned
Deep dive9:30 planned
Failure6:00 planned
0:00
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.