Scrivio Interview library
LeadershipAdvanced6 min read · updated 12 November 2026

Your multi-tenant platform stores all tenants' data in shared DynamoDB tables keyed by tenant. One very large customer is about to join with ten times the traffic of all others combined. What risks do you raise and what plan do you propose?

The risks are that the new tenant's keys become hot partitions and throttle, and that its load hurts every other tenant through shared tables and shared account limits. I would propose changing keys so the tenant's data spreads across many partitions, seriously consider isolating it in a dedicated table or AWS account with its own limits and cost visibility, load test with its realistic key distribution, add per-tenant rate limits in the API, and agree the SLA and the cost of isolation with the business before go-live.

Why this question is asked

Multi-tenant platforms usually start with shared tables because they are cheap and simple, and every tenant looks roughly alike. A customer ten times larger than all others combined breaks that assumption overnight. Interviewers ask this as a leadership question because the technical risks are only half of it: the decision involves money, contracts and timing, and the principal engineer has to make the trade-offs visible. In this answer, we will name the risks, look at how to spread the tenant's data, compare isolation options, plan the testing and protection, and see how to agree the result with the business.

1The Risks to Raise

In a shared table keyed by tenant, a tenant's data often sits under few partition keys, for example PK = TENANT#acme for its settings or TENANT#acme#ORDERS for its order list. For small tenants that is fine. A tenant with ten times the platform's current traffic would push those keys far past a partition's limits of roughly 3,000 reads and 1,000 writes per second, so its requests throttle.

The second risk is the noisy neighbour, a tenant whose load degrades others. Even if its keys spread well, the tenant consumes the shared table's capacity, and AWS accounts have quotas, such as the maximum throughput per table and per account in a region (check the current quotas). If the new tenant's spike reaches those, every tenant throttles. The third risk is visibility: in a shared table we cannot easily tell what this tenant costs, so we cannot price it correctly.

2Designing Keys for Spread

The first technical measure applies whatever we decide about isolation: no access pattern may rely on the tenant alone as the partition key. Each key combines the tenant with a high-cardinality attribute such as the user, order or device id.

Java
// Hot for a giant tenant: one key holds every order
// PK = TENANT#acme#ORDERS SK = 2026-11-06T10:00:00Z#o-981
// Spread: the order id is part of the partition key
// PK = TENANT#acme#ORDER#o-981 SK = HEADER
// PK = TENANT#acme#USER#u-17 SK = ORDER#2026-11-06#o-981 (a user's orders)
// A tenant-wide list that must stay: shard it
// PK = TENANT#acme#ORDERS#07 (bucket 00..31 from hash(orderId))

Notice that this costs something: a 'list all of the tenant's orders' screen must now read 32 buckets or use a search index. For a tenant this large, such screens usually need search and paging anyway. Changing keys means migrating existing data, so it is far cheaper to do before the tenant joins than after.

3Pool, Silo or Something in Between

The bigger decision is isolation. In the pool model all tenants share tables. In the silo model a tenant gets its own table, or even its own AWS account. A middle option is a dedicated table in the same account for the very large tenant, while everyone else stays pooled.

Options for the large tenant
OptionProtects othersCost visibilityExtra work
Stay in shared tablesweakpoorkey changes only
Dedicated table, same accountgood, except account quotasgood, per tablerouting by tenant, more tables
Dedicated AWS accountstrong, own quotasexact, own billdeploy pipeline, monitoring per account
A dedicated table is often the best first step; a dedicated account suits contractual isolation.

With a dedicated table, the tenant's capacity, alarms and backups are separate, and we can see its cost directly. With a dedicated account, even account quotas are separate, and the setup can satisfy security or regulatory requirements the customer might bring. The application needs a routing layer that maps a tenant id to its table or account, which is worth building once because the next large tenant will come too.

4Testing and Protecting Before Go-Live

I would run a load test with the tenant's realistic key distribution, which means using their real number of users, their expected request mix and their skew, where a few users or items take most of the traffic. A test with uniformly random keys would hide exactly the hot keys we worry about. The test should go to at least twice the expected peak.

In the API, I would add per-tenant rate limits, for example a token bucket per tenant, so one tenant's burst is rejected with a clear 429 response before it reaches the database. That protects other tenants even if our estimates are wrong. Per-tenant metrics for requests, latency, throttles and consumed capacity let us see problems early.

5Agreeing SLA and Cost With the Business

Isolation has a price: more tables or accounts, more pipelines and on-call scope, and capacity that may sit unused. I would present the options with rough monthly costs and the risk each one leaves, and ask the business to choose with the commercial terms in view. A customer this size often accepts, or even demands, a dedicated deployment as part of a premium contract, which can cover the cost. The SLA we promise them should match what the chosen design can deliver, and the rollout plan, including the data migration and the test results, should be agreed before the contract date, not after.

6Follow-up questions

Would on-demand capacity alone solve this?

No. On-demand scales the table, but per-partition limits and account and table quotas still apply, and a sudden jump far above previous peaks can still throttle while DynamoDB adapts. It removes capacity planning, not key design or noisy neighbours.

How do we migrate the tenant later if we start pooled?

Copy its items to the new table with a backfill job while dual writing new changes, verify counts and samples, then switch the routing entry for that tenant. With a routing layer in place this is a planned operation rather than an emergency.

Who owns the decision?

Engineering owns the risk assessment and the options; the business owns the choice of cost and SLA. The principal engineer's job is to make the trade-off clear enough that the decision is informed.

7Conclusion

In this answer, we raised the two main risks of a giant tenant in shared DynamoDB tables: its own keys becoming hot partitions, and its load hurting other tenants through shared tables and account quotas. We changed keys to combine the tenant with high-cardinality attributes, compared pooled, dedicated-table and dedicated-account isolation, load tested with realistic skew, added per-tenant rate limits, and took the cost and SLA choice to the business.

What to say in the interviewAbout 90 seconds aloud

Open with

I would raise two risks. First, our keys are partly keyed by tenant, so this tenant's keys would become hot partitions: ten times the platform's traffic on a few partition keys would blow past the per-partition limits and throttle.

Then, if they want more

Second, noisy neighbours: even with good keys, this tenant would consume the shared tables' capacity and our account and table quotas, so its spikes could throttle every other customer.

My plan starts with the data model: every access pattern must combine tenant with a high-cardinality attribute like user or order id, and any tenant-wide list gets sharded or moved to search. That needs a migration, so it should happen before go-live.

Then isolation: I would propose a dedicated table for this tenant, or a dedicated AWS account if they need contractual isolation, with a routing layer from tenant to table. That gives them their own limits, capacity and alarms, and gives us exact cost visibility.

Before launch we would load test with their realistic key distribution and skew at twice the expected peak, and add per-tenant rate limits in the API so a burst gets a 429 instead of hurting others.

Finally I would put the options and their monthly cost in front of the business, because isolation has a price, and agree the SLA and pricing with them.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Your multi-tenant platform stores all tenants' data in shared DynamoDB tables keyed by...": https://scrivio-interview-library.netlify.app/databases/cassandra-and-dynamodb/bd25ba0adf/