AI & Technical question
Design a ledger for a payment processing system.
- Stripe
- AI & Technical
- Hard
Practice this question out loud. An AI interviewer asks it, follows up like a real interviewer would, and scores your answer. Type or speak.
Start a mock interview on this question · Mock interview from a job description
What this question tests
Tests technical and financial systems design where correctness and auditability matter more than speed.
How to approach it
- Clarify scope: internal balance movements via double-entry ledger, or transaction logs, with the interviewer.
- Choose the core model: double-entry bookkeeping, every transaction debits one account and credits another.
- Design for immutability: append-only entries, corrections via new offsetting entries, preserving a full audit trail.
- Address consistency: a single source of truth with strict transactional guarantees, since partial writes corrupt balances.
- Address scale: periodic read-optimized balance snapshots from the append-only log, avoiding full recomputation.
- Define success as zero unbalanced entries and full reconciliation accuracy during periodic audits.
What a strong answer includes
- Chooses double-entry bookkeeping specifically, the standard model, not a generic 'database of transactions.'
- Makes the ledger append-only and immutable, reflecting how real financial systems maintain auditability.
- Names balance consistency as the concrete correctness metric, the real bar for a ledger system.
Common mistakes
- Designing a mutable transaction table where records can be edited or deleted.
- No mention of consistency guarantees, risking corrupted balances under concurrent writes.
Likely follow-up questions
- How would you handle a failed transaction partway through processing?
- How would you reconcile the ledger against an external bank statement?
- How would you scale balance lookups without recomputing the whole history?
More ai & technical questions
- How does the system design for Strava work?Google · AI & Technical · Hard
- How will you design a web service that enables other developers to create online chat applications?Microsoft · AI & Technical · Hard
- Imagine that you are a product manager at Google Maps and you wish to integrate with DoorDash so that users can order delivery. Your task is to design the API.Stripe · AI & Technical · Hard
- What are the technologies used for development of a streaming service app?Ask Media · AI & Technical · Easy
- Design a Shopify checkout system.Shopify · AI & Technical · Hard
- How do you design an API?Google · AI & Technical · Easy
More questions from Stripe
Learn the skill behind it
Chapters of the AI PM course that teach what this question tests.
- Chapter 1: Foundations: the model and the decisions it forces on you
- Chapter 8: Evals: define good and make the number defensible
- Chapter 6: Agents and agentic architecture