Quick revision
The short answer
Per-request pricing fits small or spiky workloads, provisioned or reserved capacity is usually several times cheaper at a steady high rate, and self-managed is cheapest in money but costs engineers and on-call time. The controls are a cost estimate in every design review that is redone whenever a new consumer is added, budgets and anomaly alerts per table and team with owner tags, unit costs on dashboards, and a separate path for bulk readers such as an export or CDC feed. Pricing choices are reviewed yearly with finance, because workloads change.
What to remember
In this answer, we compared per-request, provisioned and self-managed pricing and saw that utilisation decides between them. The bill jumped because a new bulk reader changed the access pattern of an on-demand table and nobody recomputed the cost. The controls are a cost estimate in design reviews that is redone for each new consumer, owner tags, budgets and anomaly alerts per table and team, unit costs on dashboards, a separate export or CDC path for bulk readers, and a yearly review of pricing models with platform and finance.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
Per-request pricing fits small or spiky workloads, provisioned or reserved capacity is usually several times cheaper at a steady high rate, and self-managed is cheapest in money but costs engineers and on-call time. The controls are a cost estimate in every design review that is redone whenever a new consumer is added, budgets and anomaly alerts per table and team with owner tags, unit costs on dashboards, and a separate path for bulk readers such as an export or CDC feed. Pricing choices are reviewed yearly with finance, because workloads change.
Why this question is asked
A bill that jumps fifteen times in a month is not a technical failure in the usual sense: nothing was down, and every request succeeded. That is exactly why it is a leadership question. The cause sits in a gap between teams, where one team chose a pricing model for its own workload and another team changed the workload without knowing what it would cost. Interviewers ask this to see whether we can explain the pricing models in plain numbers and set controls that work across a company without slowing every team down. In this answer, we will compare the three pricing models, see how the recommendation job caused the jump, and set up the controls and the ownership that prevent it.
1A Quick Recap of the Three Pricing Models
With per-request pricing, often called on-demand or serverless, we pay for each read and write, scaled by item size, and nothing when idle. There is no capacity to plan, and the table absorbs sudden traffic. With provisioned capacity, we buy a number of reads and writes per second, optionally with autoscaling and with a discount for a one or three year reservation, and pay for it whether we use it or not. With a self-managed database on our own instances, such as Cassandra or PostgreSQL on virtual machines, we pay for machines and disks and run everything ourselves.
The relationship between them is simple. Per-request prices per operation are several times higher than the effective price of provisioned capacity that is well used, so the break-even point is utilisation. A workload that averages 10 percent of its peak is cheaper on demand. A workload that runs near a steady rate all day is cheaper provisioned, and cheaper again reserved. Self-managed is usually cheapest per operation, but the saving has to pay for engineers, upgrades, backups and being woken at night.
| Model | Fits | Watch out for |
|---|---|---|
| Per request (on-demand) | new, small or spiky workloads | cost grows linearly with any new reader |
| Provisioned, autoscaled | steady or predictable traffic | paying for idle capacity, throttling on bursts |
| Reserved provisioned | steady baseline for a year or more | commitment if the workload shrinks |
| Self-managed | very large steady workloads, special needs | people, on-call, upgrades, backups |
2How a New Reader Turned 8,000 Dollars Into 120,000
The product feature was a good fit for on-demand pricing: modest traffic with peaks. Then a recommendation job started reading the table, probably scanning it repeatedly or reading every user's items every hour. On per-request pricing, every one of those reads is billed, and a batch job can issue more reads in an hour than the product does in a week. Nothing throttled it, because on-demand tables are designed to absorb load. So the bill grew fifteen times while every dashboard showed green.
Notice that the original choice was not wrong. The failure was that no one recomputed the cost when the access pattern changed, and that the bulk reader used the operational table at all.
3Cost Estimates in Design Reviews, Redone for Every New Consumer
The first control is a cost line in every design review, calculated from the access pattern: reads and writes per second, times item size, times the price per unit, for each pricing model. That takes ten minutes with the provider's calculator and turns a vague concern into a number someone can approve. The same estimate must be redone when a new consumer is added to an existing table, because a new consumer changes the access pattern, as it did here. In practice, we make a table's owning team approve new readers, and include their expected read rate in that request.
We do not need the exact price to make the decision. What matters is the shape: a steady 40,000 reads a second all month is the textbook case for provisioned or reserved capacity, or for not reading this table at all.
4Budgets, Alerts, Tags and Unit Costs
The second control is visibility that arrives within a day, not with the monthly invoice. Every resource is tagged with an owning team and a service, enforced by policy so untagged resources cannot be created. Budgets are set per team and per large table, with anomaly detection that alerts when daily spend jumps far above its usual range, here it would have fired on the first day of the job. The alert goes to the owning team, not only to a central finance mailbox.
We also show unit costs on team dashboards, such as storage and database cost per 1,000 orders or per active user. A total that grows with the business is fine. A unit cost that jumps tells the team something changed in how they work, and it makes cost a property of the service they own, like latency.
5A Separate Path for Bulk and Analytical Readers
The structural fix is to keep bulk readers away from the operational table. A recommendation job that needs all items every hour should read from a copy built for that: a periodic export to object storage in Parquet, or a CDC feed into the warehouse or a feature store. The export costs a fraction of the per-request reads, does not compete with users, and gives the data science team a better format for their work. The operational table then serves only the product's key lookups, and its cost model stays valid.
- Product APIkey lookups and writes
- Operational NoSQL tablebilled per request; owned by the product team
- CDC stream or periodic exportchanges or snapshots
- Object storage or warehouseParquet tables, cheap scans
- Recommendation job and analyticsbulk reads never touch the operational table
5 layers, from the top down. Step through them one at a time.
6Reviewing the Choice Over Time
A pricing model is right for a phase, not forever. A feature that starts as an experiment belongs on demand; a year later, with steady traffic, provisioned and reserved capacity may halve its cost; at very large scale, self-managing may pay off. So we set a yearly review with platform and finance of the largest data stores, with their utilisation and the cost under each model, and we make switching a normal, documented operation rather than an emergency.
7Follow-up questions
Who should own the decision to switch a table from on-demand to provisioned capacity?
The team that owns the table, because it knows the traffic and carries the risk of throttling if capacity is set too low. The platform team should give them the data and a recommendation, for example a monthly report of tables whose utilisation suggests a cheaper model, and finance sets the budget the team works within. Ownership with the owning team keeps cost and reliability decisions in the same hands.
Should we just ban on-demand tables?
No. On-demand is the right model for small, new and spiky workloads, and banning it pushes teams to over-provision, which wastes money in a different way. The control is visibility and re-estimation, not a ban.
How do you stop a runaway job before the month ends?
Daily anomaly alerts catch it within a day. For tables where a runaway reader is a real risk, we can also cap throughput with provisioned capacity or a maximum throughput setting where the store supports it, accepting that the job gets throttled instead of the company getting a surprise bill.
8Conclusion
In this answer, we compared per-request, provisioned and self-managed pricing and saw that utilisation decides between them. The bill jumped because a new bulk reader changed the access pattern of an on-demand table and nobody recomputed the cost. The controls are a cost estimate in design reviews that is redone for each new consumer, owner tags, budgets and anomaly alerts per table and team, unit costs on dashboards, a separate export or CDC path for bulk readers, and a yearly review of pricing models with platform and finance.
Open with
I would explain it in terms of utilisation. Per-request pricing has no idle cost and absorbs spikes, so it is right for new, small or spiky workloads, but each operation costs several times more than well-used provisioned capacity.
Then, if they want more
At a steady high rate, provisioned with autoscaling, and reserved on top of that, is usually much cheaper. Self-managed is cheapest in money but costs people and on-call time. In this case the original choice was fine; what broke was that a recommendation job started reading the operational table and nobody recalculated the cost.
So my controls are: a cost estimate in every design review, worked out from reads and writes per second times item size, and redone whenever a new consumer is added.
Every resource is tagged with an owner, with budgets and daily anomaly alerts per table and team, so a jump like this is caught on day one, and teams see unit costs like cost per thousand orders.
Bulk and analytical readers get their own path, an export to object storage or a CDC feed into the warehouse, instead of scanning the operational table. And once a year platform, finance and the owning teams review the biggest stores and switch pricing models where the workload has settled.
About this answer
- Last updated
- 13 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 official documentation for the version you use. 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 "How do you decide between per-request, provisioned and self-managed database pricing...": https://scrivio-interview-library.netlify.app/architecture/storage-and-pipelines/f260ca58b5/