Design an online banking application with transfers and external payments
Company: Capital One
Role: Software Engineer
Category: System Design
Difficulty: medium
Interview Round: Onsite
Design an online banking application that lets a customer create accounts, deposit or withdraw money, transfer money between accounts at the bank, and send money through an external service such as Zelle. Discuss data entities, storage choices, core flows, and selected API designs.
```hint Follow a transfer through failure
Consider a request that changes one balance and then loses its response. Distinguish an internal atomic transfer from an external payment that requires reconciliation.
```
### Clarifying Questions
- What account types, currencies, and account-opening verification steps are required?
- Do deposit and withdrawal mean internal ledger changes, cash handling, or external funding rails?
- Are internal transfers immediate, and what balance and overdraft rules apply?
- Which sensitive-data and cloud-hosting requirements must the design satisfy?
### What a Strong Answer Covers
- Accounts, balances, ledger entries, transfers, and payment state
- Transactional correctness, idempotency, and external reconciliation
- Two representative APIs and their authorization and failure semantics
- Relational storage trade-offs, sensitive-data protection, and operations
### Follow-up Questions
- Why choose a relational database for the authoritative ledger?
- How would you handle an external payment whose provider response is unknown?
- What controls would be needed before storing sensitive customer data in a cloud environment?
Overview: Design online banking flows for account creation, funding, withdrawals, internal transfers, and external payments. Explain ledger consistency, relational storage, idempotency, authorization, reconciliation, and sensitive-data controls.
Read the full Capital One Software Engineer interview experience this question came from