Design Service Quota Tracking for AWS Account Resource Limits
Last updated: November 29, 2026
Quick Overview
Design the service that tracks how many resources each AWS account uses against its quotas (for example running vCPUs or Elastic IPs per region), rejects creates over the limit, and lets customers request increases.
Amazon
November 29, 20260
0
0 solved
Design the service that tracks how many resources each AWS account uses against its quotas (for example running vCPUs or Elastic IPs per region), rejects creates over the limit, and lets customers request increases.
A simpler quota problem than request-rate limiting, used in AWS phone screens. The interviewer checks that you distinguish usage counters for resources from rate limits, keep counts accurate under concurrent creates, and design the increase-request workflow.
What the Interviewer Expects
- Separate resource quotas (counts) from rate limits (requests per second)
- Track usage per account, region and quota type
- Reserve usage atomically at create time and release on delete
- Reconcile counters with actual resource inventory
- Support increase requests with approval rules
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- What happens if a launch fails after the quota was reserved?
- How do you auto-approve small increase requests safely?
- How would you alert a customer at 80 percent usage?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: per account and region, each quota has a limit and current usage; create calls check and reserve; delete releases; customers view usage and request increases. Non-functional: thousands of ...
High-Level Design
A Quota service owns a table keyed by account#region, sort key quota_code, with limit and usage. The service that creates resources (like EC2) calls `reserve(account, quota, amount, request_id...