Isolating tenant performance in multi-tenant SaaS databases
Short answer
C Separate databases per tenant with per-database resource quotas cap each tenant's CPU, memory and I/O so a heavy query cannot degrade co-tenants.
Question
Key Takeaways
Performance isolation in a multi-tenant SaaS database requires bounding each tenant's resource consumption, not just hiding rows from other tenants. Separate databases per tenant with resource quotas win because the per-database quota caps CPU, memory and I/O, while row-level security, schema-per-tenant and sharding all leave tenants competing on one shared instance. Sharding distributes data volume but still co-locates multiple tenants on each shard.
Expert Analysis
Isolation of query-driven resource consumption rather than isolation of rows is what this multi-tenant requirement demands, and only separate databases per tenant with resource quotas place an enforceable ceiling on what any single tenant can draw from CPU, memory and storage I/O.
Query contention, not row visibility, is what the multi-tenant SaaS design must isolate
The deciding condition is that the requirement names performance interference — one tenant's queries degrading another's — rather than data confidentiality, and every option except C leaves the tenants competing for the same compute. Row-level security in option A is a predicate appended to each statement: it hides rows, but the query still executes on the shared buffer pool, burns the same CPU cycles, consumes the same IOPS budget and occupies the same plan cache as every other tenant's workload. Option B moves each tenant into its own schema, which is a namespace boundary; the schemas still resolve to one database instance with one memory grant pool and one connection ceiling, so a runaway aggregation from a single tenant evicts everyone else's hot pages. Option D spreads rows by tenant ID, but sharding is a data-volume strategy and typically co-locates many tenants on each shard. Only option C changes the topology so that the maximum resource a tenant can draw is defined by its own database and capped by an assigned quota. In a multi-tenant SaaS product the tenants are unaware of one another by contract, and that contract is only enforceable when consumption is bounded.
Resource quotas take effect in the platform's governor, before storage is touched
The isolation is created at the scheduling and admission step, not at the query-writing step. A per-database quota — minimum and maximum vCores or eDTU inside an elastic pool, an IOPS ceiling on the volume, a capped memory grant per query — is applied by the engine when a statement requests resources, so an oversized sort or hash join is throttled, queued, or reduced in parallelism instead of spilling into capacity another tenant depends on. That distinction matters because governance is only real when it can refuse or slow a request; a quota that merely raises an alert after the statement completes is telemetry, not a boundary. Two further consequences follow. First, a dedicated database gets its own plan cache and buffer pool, so one tenant's bad plan cannot evict another's working set. Second, the quota must be provisioned below what the underlying host or cluster can deliver, leaving headroom so that a tenant hitting its ceiling does not saturate the shared physical resource underneath — otherwise the databases are separate on paper but co-tenants on the same disk. A useful verification is a synthetic heavy query from one tenant while measuring another tenant's p95 latency and CPU/I/O saturation.
Row-level security, schema-per-tenant and sharding each leave a shared bottleneck in place
Option A buys the highest tenant density at the lowest infrastructure cost, but the shared table, plan cache and buffer pool mean a single unindexed scan or lock escalation slows every tenant, and the security policy adds a predicate to each statement that is easy to misconfigure into a data leak. Option B improves operational isolation — per-tenant migrations, per-tenant logical backup, cleaner schema versioning — yet every schema still draws from the same instance memory, temporary workspace, connection limit and storage throughput, so a heavy reporting tenant still starves the other schemas, and restoring one tenant means extracting one schema rather than restoring an independent database. Option D distributes rows across shards and helps when a dataset outgrows one server, but shards are shared real estate: several tenants map onto the same shard, a hot tenant saturates that shard's IOPS and CPU for its neighbours, and rebalancing plus cross-shard query routing add engineering cost without producing a resource cap. Only option C accepts the higher spend per tenant and converts the shared-resource risk into a bounded, per-tenant limit that operations can measure and enforce.
Cost pressure at high tenant density would make schema-per-tenant the better answer
Option B becomes correct the moment the binding constraint shifts from performance isolation to cost per tenant or operational simplicity — for instance thousands of very small tenants, where a database per tenant would be economically absurd and isolation is needed mainly for schema versioning and per-tenant migration. Option A would be the right call if the requirement read "a tenant must never see another tenant's rows," because row-level security enforces exactly that at the lowest infrastructure cost. Option D would win if a single tenant's data volume or write rate exceeded what one database instance could hold or serve, forcing the rows to be partitioned across shards. None of those conditions holds here: the requirement says one tenant's queries must not affect other tenants' performance, which is a bound on consumed CPU, memory and I/O rather than on visibility, and neither schema separation nor sharding can express such a bound. The word "performance" is the pivot — swap it for "data access" and option A becomes defensible.
Official Reference
- https://learn.microsoft.com/en-us/azure/azure-sql/database/resource-limits-logical-server
- https://learn.microsoft.com/en-us/azure/architecture/guide/multitenant/approaches/storage-data
These links open the official vendor documentation in a new tab.
Exam Strategy
When a stem says one tenant or workload "cannot impact" another, classify the requirement before comparing options: is the constraint confidentiality (row visibility) or contention (CPU, memory, IOPS)? Only options that introduce a hard boundary — a dedicated instance, a quota, a rate limit — satisfy a contention requirement, while row-level security, schema separation and sharding merely reorganise the same shared pool. Also weigh cost language: an option described as more expensive but able to meet a strict "must" is usually the intended answer when isolation is stated as a hard requirement.
Related Analysis
Practice All CV0-004 Questions
Access 100 questions with complete answers and detailed explanations.
View Full CV0-004 Practice Test →