Design a Sign-In Attempt Throttler for Google Accounts

Last updated: November 29, 2026

Quick Overview

Design a service that slows down brute-force and credential-stuffing attacks against Google Account sign-in without locking legitimate users out of their own accounts.

Google
System Design
Software Engineer
Google
November 29, 2026
Software Engineer
Phone Screen
System Design
Easy

0

0

0 solved


Design a service that slows down brute-force and credential-stuffing attacks against Google Account sign-in without locking legitimate users out of their own accounts.

Identity is a core Google surface, and a short design question on throttling login attempts is a common phone-screen warmup. The interviewer checks whether you pick the right keys to limit on and avoid creating a lockout-based denial of service.

What the Interviewer Expects
  • Choose multiple throttle keys: account, IP, device, and global failure rate
  • Explain why hard lockouts enable denial of service against victims
  • Use escalating friction (delays, challenges) instead of fixed blocks
  • Store counters with expiry in a fast store
  • Mention signals from known devices and locations
Key Topics to Cover
sliding window counters
credential stuffing
progressive friction
risk signals
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How do you handle many accounts attacked from a large botnet with one attempt each?
  • How would a user on a shared campus IP be affected?
  • What do you log for later abuse analysis?
Sharpen Your Skills on Codemia

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

Practice System Design Problems
Sample Answer
Requirements
  • Count failed password attempts and react before an attacker gets many guesses.
  • Never fully lock the true owner out; attackers should not be able to lock someone out by typing wrong passwords.
  • Ha...
High-Level Design

The sign-in frontend calls a throttle service before verifying the password and reports the outcome afterward. The throttle service reads and updates counters in a regional in-memory store (Memcac...


Submit Your Answer
Markdown supported