Question bank

No. 35 · Security & reliability

Design a login and authentication system

Intermediate40 minSecurity · API design · Data modeling · Rate limiting · Consistency models · Estimation

Your sketch
Opening the sketchbook…

OFF-SITE READING · OTHER PEOPLE’S WORK, OUR NOTES

Further reading

Partial reading

Vetted reading covers part of the design or the underlying paper, not the whole problem. Links go to other sites; we credit and describe them rather than copy them.

  1. Authentication Cheat Sheet

    OWASP Cheat Sheet SeriesDocsPartialFreeVetted

    The checklist for login flows: generic error messages, account lockout vs throttling, re-authentication for sensitive actions, and MFA. Covers the security requirements an interviewer will probe; does not cover storage schemas or scaling the auth service.

    Link checked 2026-12-06

  2. Password Storage Cheat Sheet

    OWASP Cheat Sheet SeriesDocsBackgroundFreeVetted

    Which password hash to use (Argon2id, scrypt, bcrypt, PBKDF2), salts, peppers and work factors, plus how to upgrade legacy hashes. Exactly what to say when asked "how do you store the password"; nothing on sessions.

    Link checked 2026-12-06

  3. Session Management Cheat Sheet

    OWASP Cheat Sheet SeriesDocsBackgroundFreeVetted

    Session ID entropy, cookie flags, idle and absolute timeouts, and rotation on login. Pairs with the session-vs-token decision; it assumes server-side sessions and treats JWTs only briefly.

    Link checked 2026-12-06

  4. Design a Simple Authentication System | System Design Interview Prep

    Interview Pen (YouTube)VideoPartialFreeVetted

    A 17-minute interview-style walkthrough: sessions, cookie vs local storage, CSRF, moving to stateless JWTs and token lifetimes. Good on the session/token trade-off; skips password hashing, resets and MFA.

    Link checked 2026-12-06

  5. NIST SP 800-63B-4: Authentication and Authenticator Management

    NISTDocsBackgroundFreeVetted

    The 2025 revision of NIST password and authenticator rules: length over composition rules, breached-password checks, no forced periodic rotation, and phishing-resistant MFA. Long and normative; read the password and reauthentication sections only.

    Link checked 2026-12-06

  6. Session Vs JWT: The Differences You May Not Know!

    ByteByteGo (YouTube)VideoBackgroundFreeVetted

    Short animated comparison of server-side sessions and JWTs, including the revocation problem and the shared session store. Background only, but a fast refresher before you pick one.

    Link checked 2026-12-06

  7. RFC 9700: Best Current Practice for OAuth 2.0 Security

    IETF / RFC EditorDocsBackgroundFreeVetted

    Read this only if the design adds "Sign in with X" or issues tokens to other apps: PKCE, refresh-token rotation and why the implicit grant is out. Not needed for a first-party username/password system.

    Link checked 2026-12-06

Report a bad or misleading link

Reference audit: 2 of 5 links from the audited catalog kept
  • hackernoon.com/designing-functional-authentication-and-authorization-s Has factual errors (describes passwords as stored encrypted, sizes 2,500 KB as about 2 GB) and sizes the system at 0.04 requests per second; superseded by OWASP guidance.
  • finalroundai.com/interview-questions/google-design-login-endpoint Broken in effect: now redirects to Final Round AI's paid mock-interview product page; the original content is gone.
  • youtube.com/watch?v=zt8Cocdy15c Public video on password hashing, but superseded by the OWASP Password Storage Cheat Sheet, which covers the same ground with current algorithm parameters.

We audited the public catalog at systemdesign.io on 2026-12-06. Dropped links are not linked here on purpose.

COMPANY EVIDENCE · NOT A FREQUENCY CLAIM

Where it has been reported

Candidate reports

Catalog tags (unverified)

GoogleVisaGusto

Assigned by the reference catalog (audited 2026-12-06). We have not verified that these companies ask this question.

Report or add attribution evidence · How we label evidence

KEEP GOING

Related questions