Scrivio Interview library
LeadershipPrincipal7 min read · updated 12 November 2026

Warehouse spending at your company has tripled in two years. How do you lead cost control without stopping the analytics teams?

I would lead it as a cost program with the analytics teams, not a freeze against them. First visibility: cost per team, per query pattern and per dashboard, shown back to teams or charged to them. Then engineering fixes such as partitioning and clustering, incremental models instead of full rebuilds, materialised aggregates and removing unused tables; guardrails such as quotas, auto-suspend, size limits and review of expensive scheduled jobs; commercial levers such as commitments and periodic evaluation of alternatives; and finally linking cost to value, so dashboards nobody uses are retired.

Why this question is asked

Warehouse costs grow quietly. Each new dashboard and model is cheap on its own, compute scales automatically, and nobody sees the total until finance asks why the bill tripled. The tempting response is to cut budgets or block new work, which stops the teams the company relies on for decisions. Interviewers ask this leadership question to see whether a senior engineer can reduce cost through understanding and engineering rather than blunt limits. In this answer, we will look at where warehouse money usually goes, and then at the program: visibility, engineering fixes, guardrails, commercial levers and linking cost to value, with a timeline and the measures that tell us it worked.

1Where the Money Usually Goes

Before acting, it helps to know the usual pattern, because it shapes the plan. In most warehouses, a small share of workloads drives most of the cost. Scheduled transformations that rebuild large tables from scratch every hour, dashboards that refresh every few minutes whether anyone looks or not, and a few analysts' exploratory queries that scan whole tables with SELECT * often account for well over half the bill. Storage is usually a smaller share, but grows with forgotten copies, long time-travel retention and staging tables nobody deleted.

Growth itself is not the problem; the company probably has more data and more users than two years ago. The question is how much of the tripled bill buys value and how much is waste. In most companies, a first pass finds 30 to 50 percent of spending that can be removed without anyone losing something they use.

2Make Cost Visible

People cannot manage what they cannot see. So the first step is attribution: every query is tagged with its team, its tool and, where possible, its dashboard or model, using the warehouse's query labels, separate compute clusters per team, or the BI tool's metadata. From the warehouse's query history we then build a cost dashboard: cost per team, the most expensive recurring queries, cost per dashboard and per model, and trends week by week.

SQL
-- example: top recurring query patterns by compute time in the last 30 days
-- (column and view names vary by warehouse; check your provider's query history views)
SELECT query_tag AS team, query_hash, COUNT(*) AS runs,
SUM(execution_seconds) / 3600.0 AS compute_hours
FROM warehouse_query_history
WHERE start_time >= current_date - 30
GROUP BY query_tag, query_hash
ORDER BY compute_hours DESC
LIMIT 20; -- often 20 patterns explain half the bill

With attribution in place we start showback: each team sees its own cost every month. Many teams act on that alone. Later, chargeback, where costs are charged to the team's budget, can follow if showback is not enough, but starting with showback keeps the conversation cooperative.

3Engineering Fixes With the Biggest Return

With the top consumers known, a small group of platform and analytics engineers fixes them, starting with the largest. Partitioning and clustering large fact tables by date lets queries that filter on recent data skip most of the table. Incremental models, which process only new or changed rows, replace full rebuilds: a model rebuilding 2 TB every hour to add 2 GB of new data can drop its cost by more than 90 percent. Materialised aggregates, such as daily sales per store, let dashboards read thousands of rows instead of scanning billions. Unused tables, old snapshots and staging copies are deleted, and time-travel retention is shortened where it is not needed.

SQL
-- dbt: from a full rebuild to an incremental model
{{ config(materialized='incremental', unique_key='order_id') }}
select order_id, order_date, customer_id, amount_eur
from {{ ref('stg_orders') }}
{% if is_incremental() %}
where updated_at > (select max(updated_at) from {{ this }}) - interval '1 hour'
{% endif %}
-- hourly run: reads about 2 GB of recent changes instead of 2 TB

4Guardrails That Prevent the Next Spike

Fixes remove today's waste; guardrails stop it returning. Compute clusters auto-suspend after a minute or two of inactivity, so idle warehouses do not bill all night. Each team's compute has a size limit and a monthly budget with alerts at 80 percent. Query timeouts and per-query byte limits stop runaway exploratory queries. New scheduled jobs above a cost threshold, for example one that would cost more than 500 dollars a month, get a short review by the platform team before they run on a schedule.

The guardrails are deliberately light. Analysts can still explore freely; they just cannot accidentally leave a large cluster running or schedule a full table scan every five minutes.

Step throughCost control program
  1. Attribute cost to teams and queriesquery tags, cost dashboard
  2. Showback to every teammonthly, with top queries
  3. Fix the biggest consumerspartitioning, incremental models, aggregates
  4. Add guardrailsauto-suspend, quotas, review of expensive jobs
  5. Negotiate and review commercialscommitments, alternatives
  6. Retire what nobody usesdashboards and models without users

6 steps in order. Play them, or step through them one at a time.

5Commercial Levers

Once usage is understood and stable, the commercial side can save another meaningful share. Committing to a yearly spend or buying reserved capacity usually earns a discount over on-demand prices. Choosing the right pricing model matters too: for example, moving from per-byte pricing to reserved slots or capacity for steady workloads, while keeping on-demand for spiky ones. We also evaluate alternatives every year or two, such as moving some workloads to cheaper engines over open formats, which is both a real option and useful in negotiations.

Commitments should come after the engineering fixes, not before; otherwise we commit to paying for waste.

6Link Cost to Value

The last step changes how people think about cost. For every dashboard and model, we can now see what it costs and how many people use it. A dashboard costing 2,000 dollars a month that nobody has opened in 90 days is a clear candidate to retire; one used daily by the sales team is worth its cost. We send owners a list of their unused assets, retire them after a notice period unless someone objects, and archive rather than delete where history matters.

Over time, teams start asking the right question by themselves: is this worth what it costs? That is the cultural outcome that keeps costs under control after the program ends.

7Measuring Progress Without Stopping Teams

We agree targets with the CFO and the analytics leads at the start. For example: cost per query or per active user down 40 percent in two quarters, total spend back to growing no faster than data volume, no increase in dashboard latency, and no blocking of new analytics work. Reporting monthly on both savings and analytics output keeps the program honest: if cost falls but teams deliver less, we have gone too far.

8Follow-up questions

Why start with showback rather than chargeback?

Showback makes cost visible without changing budgets, so teams engage with the data instead of arguing about allocation rules. Many teams reduce waste once they see it. Chargeback adds accountability later, once attribution is accurate and trusted.

What if one critical team is responsible for most of the cost?

Then we work with that team first, pairing a platform engineer with them on their biggest jobs. High cost is not a problem if it buys high value; the aim is to remove waste in their workloads, not to cut their capacity.

Would you consider moving to another warehouse to save money?

Only after fixing waste, because a migration moves inefficient workloads as well, and it costs months of engineering. Evaluating alternatives regularly, and keeping raw data in open formats, keeps the option real and helps commercial negotiations.

9Conclusion

In this answer, we led warehouse cost control as a program with the analytics teams. We made cost visible per team, query pattern and dashboard with showback or chargeback, fixed the largest consumers with partitioning, clustering, incremental models, materialised aggregates and removal of unused tables, added light guardrails such as quotas, auto-suspend and review of expensive scheduled jobs, used commitments and periodic evaluation of alternatives, and linked cost to value by retiring dashboards nobody uses, all measured against targets that include not slowing analytics down.

What to say in the interviewAbout 80 seconds aloud

Open with

I'd run it as a program with the analytics teams, not a freeze. First, visibility: tag every query with its team and tool, and build a cost dashboard showing cost per team, per recurring query pattern and per dashboard.

Then, if they want more

In my experience a couple of dozen patterns explain half the bill. I'd start with showback, each team seeing its own monthly cost, and consider chargeback later.

Second, engineering fixes on the biggest consumers: partition and cluster big fact tables by date, turn full rebuilds into incremental models, which can cut a job's cost by ninety percent, add materialised aggregates for heavy dashboards, and delete unused tables and old copies.

Third, guardrails so it doesn't come back: auto-suspend on compute, size limits and budgets per team with alerts, query timeouts, and a quick review for new scheduled jobs above a cost threshold. Fourth, commercial levers once usage is stable: commitments or reserved capacity, the right pricing model per workload, and an evaluation of alternatives every year or two.

Finally, link cost to value: retire dashboards and models nobody has used in ninety days. I'd agree targets with finance and the analytics leads, like cost per active user down forty percent in two quarters, while tracking that analytics output doesn't drop.

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 "Warehouse spending at your company has tripled in two years. How do you lead cost...": https://scrivio-interview-library.netlify.app/databases/analytics-and-cdc/f531b3832f/