Design vCPU and Resource Quota Enforcement for Azure Subscriptions
Last updated: November 29, 2026
Quick Overview
Design the system that enforces per-subscription, per-region quotas (for example total vCPUs per VM family) when customers create, resize or delete resources, and lets them request quota increases.
Microsoft
November 29, 20260
0
0 solved
Design the system that enforces per-subscription, per-region quotas (for example total vCPUs per VM family) when customers create, resize or delete resources, and lets them request quota increases.
Azure Resource Manager and Compute teams ask this to see how a candidate keeps a consistent count under concurrent deployments, unlike a request-rate limiter. The interviewer checks reservation semantics, reconciliation with actual resources and the increase workflow.
What the Interviewer Expects
- Distinguishes allocation quotas (count of owned resources) from request rate limits
- Reserves quota before provisioning and releases it on failure
- Uses a strongly consistent counter per subscription, region and family
- Reconciles usage counters against actual resource inventory
- Supports automated and manual quota increase requests
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
- Two ARM templates each request 60 vCPUs against a 100 vCPU quota at the same time. What happens?
- A VM creation fails after quota was reserved. How is it returned?
- How do you prevent quota from drifting over months?
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
Quotas like 'Standard Dv5 family vCPUs in East US: 100' per subscription. Create and resize operations must be rejected with a clear error if they exceed quota. Deletes return quota. Thousands of oper...
High-Level Design
ARM receives the deployment and calls the compute resource provider. Before provisioning, the provider calls a quota service reserve(sub, region, family, delta, operationId). The quota servi...