Quick revision
The short answer
We start with showback, not chargeback: each team gets a trusted monthly report of what its databases cost, with trends and benchmarks against similar services. Everything is tagged and untagged resources are made visible, efficiency targets and automatically detected savings make action easy, chargeback comes only once teams trust the numbers, and cost becomes a normal part of design reviews and recognition alongside reliability.
What to remember
In this answer, we introduced cost accountability without slowing teams down. We started with showback reports per team and database with trends and benchmarks, tagged everything and made untagged spend visible, offered automatic savings suggestions and agreed efficiency targets, moved to chargeback only once reports were trusted, and made cost part of design reviews and recognition alongside reliability.
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.
We start with showback, not chargeback: each team gets a trusted monthly report of what its databases cost, with trends and benchmarks against similar services. Everything is tagged and untagged resources are made visible, efficiency targets and automatically detected savings make action easy, chargeback comes only once teams trust the numbers, and cost becomes a normal part of design reviews and recognition alongside reliability.
Why this question is asked
When a central budget pays for databases, nobody sees the cost of an oversized instance or a forgotten replica, so nobody has a reason to remove it. The opposite mistake is to send teams a surprise invoice and a demand for savings, which creates friction, slows delivery and teaches people to hide resources. Interviewers ask this leadership question to see whether we can change behaviour gradually, with information first and incentives later. In this answer, we will see why visibility comes first, how to make costs attributable, how to help teams act, when to move to chargeback, and how to make cost a normal design concern.
1Why Free Databases Grow
People respond to the information in front of them. If a team never sees that its staging database costs 2,000 a month, it has no reason to switch it off at night; the decision is not careless, it is uninformed. Over time this produces the familiar waste: production-sized test databases, replicas left from migrations, backup retention set to the maximum just in case.
So the aim is not to make teams feel guilty but to put cost next to the other things they already care about, like latency and error rates, and to make the cheaper choice easy. The most effective tool for that, at the start, is simply information.
2Showback First
Showback means telling each team what its resources cost without actually moving money between budgets. Each month the team receives a short report per database: cost, the change from last month, the main components (compute, storage, I/O, backups), and a benchmark such as cost per thousand requests compared with similar services. A team whose order service costs three times as much per request as a comparable one has a natural question to ask itself.
The reports must be accurate and stable. If teams find errors, such as a shared database charged entirely to one team, they will dismiss the whole effort. So we spend the first few months fixing attribution with the teams, which also builds trust.
- Tag everything, show untagged spendownership first
- Monthly showback per team and databasetrends and benchmarks
- Automatic savings suggestionsidle replicas, oversized, schedules
- Efficiency targets per teamagreed, not imposed
- Do teams trust the numbers?few disputes for several monthsYesMove to chargebackNoKeep improving showback
5 steps in order. Play them, or step through them one at a time.
3Tags and the Untagged Pile
Showback depends on knowing which team owns each resource. We require tags such as team, service and environment on every database, set automatically by the provisioning pipeline so engineers do not have to remember. For existing resources we run a tagging campaign with a deadline.
Untagged resources are shown openly, as a line on the company report with their total cost. Nobody wants to own the biggest pile of unexplained spend, and the visible total often motivates teams to claim their resources. After the deadline, untagged non-production resources can be scheduled for review and shutdown, with notice, which quickly finds owners.
4Making Savings Easy to Act On
Information alone helps, but people act faster when the action is obvious. So the platform detects savings automatically and puts them in the team's report: this replica had no connections for 30 days, this staging instance runs all night, this production instance peaks at 15 percent CPU and could be one size smaller, these 200 manual snapshots are older than a year. Each suggestion has an estimated monthly saving and, where possible, a one-click or one-line way to apply it.
We also agree efficiency targets with teams, for example keeping cost per transaction flat while traffic grows, or keeping non-production under 20 percent of production cost. Targets that teams helped set are accepted; targets handed down are resented. Because the platform does most of the work, accountability does not slow teams down.
5Chargeback Only When Reports Are Trusted
Chargeback means the cost actually moves into each team's budget. It creates a stronger incentive, but also stronger disputes: shared databases, platform overhead and committed discounts all need allocation rules everyone accepts. If we start with chargeback, those disputes dominate. If we start with showback and fix the numbers over several months, chargeback becomes a small step.
Some companies never need full chargeback; good showback, targets and recognition are enough. The decision depends on whether behaviour has changed.
6Cost as Part of Design and Culture
Lasting change comes from making cost a normal engineering concern. Design reviews for new services include a short cost estimate for their databases next to the reliability plan: expected size, replicas, retention and the monthly cost at launch and in a year. That conversation catches the expensive choices before they are built.
And we celebrate savings. A team that cut its database cost by 40 percent by fixing three queries and archiving old data gets recognised in the same forums as a team that improved reliability. Engineers like solving efficiency problems when they get credit for it.
| Aspect | Showback | Chargeback |
|---|---|---|
| Money moves between budgets | no | yes |
| Effort to start | tags and reports | allocation rules, finance process |
| Typical reaction | curiosity, quick wins | disputes if numbers are doubted |
| When to use | first, always | after reports are trusted |
7Follow-up questions
How do you handle shared databases?
We allocate their cost by a simple, agreed rule, such as share of queries or storage per service, and show the rule in the report. Simple and stable beats precise and disputed.
Won't teams cut reliability to hit cost targets?
Targets are about efficiency, such as cost per transaction, not absolute cuts, and design reviews keep reliability requirements visible next to cost. Changes that reduce redundancy go through the same review as any other risk.
Who owns the programme?
Usually a small FinOps function working with the platform team, with an executive sponsor. The platform builds the reports and automation; teams own their decisions.
8Conclusion
In this answer, we introduced cost accountability without slowing teams down. We started with showback reports per team and database with trends and benchmarks, tagged everything and made untagged spend visible, offered automatic savings suggestions and agreed efficiency targets, moved to chargeback only once reports were trusted, and made cost part of design reviews and recognition alongside reliability.
Open with
I would start with information, not invoices. Step one is ownership: every database tagged with team, service and environment, set automatically by the provisioning pipeline, and untagged spend shown openly as a line on the company report, which finds owners quickly.
Then, if they want more
Step two is showback: a monthly report for each team per database, with cost, the trend, the main components and a benchmark like cost per thousand requests against similar services. I would spend a few months fixing attribution errors with teams, because if the numbers are wrong people dismiss the whole thing.
Step three is making action easy: the platform automatically flags idle replicas, oversized instances, staging running at night and old snapshots, each with an estimated saving and a simple way to apply it, plus efficiency targets that teams help set, like keeping cost per transaction flat while traffic grows.
Only when reports are trusted would I consider chargeback, and maybe not at all if behaviour has changed. And I would make cost part of design reviews, next to reliability, and celebrate teams that save money, so it becomes part of engineering culture rather than a finance demand.
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.
- Official documentation
- PostgreSQL documentation, MySQL reference manual
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 "Teams treat databases as free because a central budget pays for them. How would you...": https://scrivio-interview-library.netlify.app/databases/database-operations/0c3b3caa04/