Quick revision
The short answer
We would start from the workloads, not the tools: map BI, product analytics, data science and operational reporting to their owners, latency needs and costs. Then we would make open table formats such as Apache Iceberg on object storage the long-term foundation, so several engines can share one copy of the data, decide build versus buy per workload on five-year total cost including people, and put cost governance in place from the first month. Migration happens in stages with exit criteria, and OLTP databases stay free of analytics as a fixed rule.
What to remember
In this answer, we approached a five-year data platform strategy by mapping workloads and their owners first, because BI, product analytics, data science and operational reporting need different latency, freshness and cost. Open table formats such as Iceberg or Delta Lake on object storage separate storage from engines and reduce lock-in. Build versus buy is decided per workload on five-year total cost including people. Cost governance means budgets, chargeback, size and time limits, lifecycle rules and a weekly review of the most expensive queries. The migration runs in stages with exit criteria, with the fixed principle that OLTP databases never carry analytical load.
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 would start from the workloads, not the tools: map BI, product analytics, data science and operational reporting to their owners, latency needs and costs. Then we would make open table formats such as Apache Iceberg on object storage the long-term foundation, so several engines can share one copy of the data, decide build versus buy per workload on five-year total cost including people, and put cost governance in place from the first month. Migration happens in stages with exit criteria, and OLTP databases stay free of analytics as a fixed rule.
Why this question is asked
A company that has grown quickly often ends up with three analytics stacks that each made sense when they were chosen: a cloud warehouse with a large bill, a self-hosted ClickHouse cluster that one team loves, and a bucket of raw files nobody fully understands. When leadership asks for a five-year strategy, they are really asking two things: how do we stop costs growing faster than value, and how do we avoid being trapped by the choices we make now. Interviewers ask this to see how a senior leader structures such a decision. In this answer, we will map the workloads, explain what open table formats change, compare building and buying with real cost thinking, set up cost governance, and plan the migration.
1Start by Mapping Workloads and Owners
The first mistake would be to compare tools before we know what they are for. So we start with an inventory of every analytical workload: who runs it, how fresh the data must be, how fast queries must answer, how much it costs today, and who pays.
In most companies this produces four groups with very different needs. BI reporting needs consistent, curated numbers but tolerates minutes of latency and hours of staleness. Product analytics needs sub-second queries over huge event volumes, which is why the ClickHouse cluster exists. Data science needs flexible access to raw history, often from Python or Spark. Operational reporting needs fresh data, minutes old, for teams like support or logistics.
| Workload | Latency | Freshness | Typical engine today |
|---|---|---|---|
| BI reporting | seconds | hours | cloud warehouse |
| Product analytics | under a second | minutes | self-hosted ClickHouse |
| Data science | minutes | days | notebooks on raw files |
| Operational reporting | seconds | minutes | replicas or the warehouse |
Notice that no single engine is best at all four. That observation shapes the rest of the strategy: the goal is not one tool, it is one copy of the data that the right engine can read for each job.
2What Open Table Formats Change
Raw files in object storage are cheap but awkward: no transactions, no schema evolution, no easy way to update a row. An open table format such as Apache Iceberg or Delta Lake adds a metadata layer on top of Parquet files that gives us tables with snapshots, atomic commits, schema changes and partition evolution, while the data itself stays as open files in our own bucket.
The strategic effect is that storage is separated from the engine. The same Iceberg table can be read by Spark for data science, by Trino or a cloud warehouse for BI, and increasingly by ClickHouse and DuckDB. If a vendor raises prices in year three, we can point a different engine at the same data instead of migrating petabytes. That lowers lock-in, which is the biggest long-term risk in a five-year plan.
But there is a catch: the formats and engine support are still evolving, and features like row-level deletes or streaming writes vary between engines. We would check the support of each engine we rely on for the features we need, and pilot before committing.
3Build Versus Buy, Measured Honestly
A managed warehouse charges for compute and storage, but it removes almost all operational work: no upgrades, no capacity planning, no on-call for the cluster. A self-hosted engine like ClickHouse can be several times cheaper per query at high volume, but only if we have a skilled team to run it, and that team is a real cost.
So we compare five-year total cost of ownership per workload, including people. Suppose the ClickHouse cluster costs 200,000 a year in machines and needs two engineers at 180,000 each: about 560,000 a year. If the same workload on the managed warehouse would cost 1.2 million a year in compute, self-hosting wins clearly. If it would cost 400,000, the cluster is losing money once people are counted. The numbers are illustrative; the method is what matters. We also price the risk: a self-hosted system run by two people has a key-person risk that a managed service does not.
4Cost Governance From Day One
Most warehouse bills grow because nobody owns them. We make spending visible and owned. Every team gets a budget, and costs are charged back (or at least shown back) to the team that ran the queries, using separate warehouses, accounts or tags per team.
We add guardrails that stop accidents: maximum warehouse sizes per team, query timeouts, auto-suspend for idle compute, and alerts when a team passes 80 percent of its monthly budget. For storage, lifecycle rules move raw data to cheaper tiers after 90 days and delete what the retention policy no longer requires. And we publish a weekly list of the 20 most expensive queries, because a handful of queries is usually responsible for a large share of the bill, and fixing them is the cheapest saving available.
5Planning the Migration in Stages
A five-year strategy is a sequence of reversible steps, each with clear exit criteria, rather than a big-bang migration. We also write down one rule that does not change with any vendor decision: OLTP databases never serve analytical load. Every analytics workload reads from the platform, never from production databases.
- Year 1: inventory, cost visibility, governancebudgets, chargeback, top-query reviews
- Year 1-2: land raw data in Iceberg on object storageone copy, readable by several engines
- Year 2-3: move BI to curated tables on the open formatexit criteria: same numbers, lower cost
- Does ClickHouse still beat alternatives on cost and latency?YesKeep it, reading or loading from the platformNoPlan its retirement
- Year 4-5: review engines yearly against the same dataswitching engines is now cheap
5 steps in order. Play them, or step through them one at a time.
Notice the last step: whether to keep ClickHouse is decided on evidence collected during the earlier stages, not at the start.
6Follow-up questions
How would you decide whether to retire the ClickHouse cluster?
I would compare it against the alternatives on the workload it actually serves: sub-second product analytics. We measure its full yearly cost including the engineers who run it, then run the same top queries on the candidate replacement, with the same data volume, and compare latency at the 95th percentile and cost per month. If ClickHouse is still clearly cheaper and faster and the team is healthy, we keep it and connect it to the shared data platform. If the managed option meets the latency target within a similar cost, or the team is down to one person, we plan retirement with a parallel-run period.
How would you present this to leadership?
As a small number of decisions with costs and risks attached, not as a technology diagram. For example: we spend X today, it grows Y percent a year, these three steps hold growth to Z, and this is what we will measure each quarter. Leaders need to know what they are approving and how they will know it is working.
Why not consolidate everything on the cloud warehouse?
It would simplify operations, and for many companies it is the right answer. The risk is concentration: all spend and all data in one vendor's pricing model. Keeping the data in an open format gives most of the simplicity while preserving the option to change engines.
7Conclusion
In this answer, we approached a five-year data platform strategy by mapping workloads and their owners first, because BI, product analytics, data science and operational reporting need different latency, freshness and cost. Open table formats such as Iceberg or Delta Lake on object storage separate storage from engines and reduce lock-in. Build versus buy is decided per workload on five-year total cost including people. Cost governance means budgets, chargeback, size and time limits, lifecycle rules and a weekly review of the most expensive queries. The migration runs in stages with exit criteria, with the fixed principle that OLTP databases never carry analytical load.
Open with
I would start from workloads rather than tools. I would inventory BI reporting, product analytics, data science and operational reporting, with their owners, latency and freshness needs and current costs, because they need different things and no single engine is best for all of them.
Then, if they want more
For the foundation, I would put raw and curated data in an open table format like Apache Iceberg or Delta Lake on object storage. That separates storage from compute, so the warehouse, Spark, Trino and even ClickHouse can read the same copy, and if pricing changes we switch engines instead of migrating data.
For build versus buy, I compare five-year total cost per workload including people: a self-hosted ClickHouse is cheaper per query at scale, but only if we fund the team that runs it, and I would price the key-person risk too.
For cost governance I want budgets and chargeback per team, warehouse size limits and timeouts, auto-suspend, lifecycle rules for raw data, and a weekly review of the most expensive queries. Then I would migrate in stages, each with exit criteria such as matching numbers and lower cost, and decide on ClickHouse with data from those stages. One principle stays fixed throughout: OLTP databases never serve analytical load.
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 "Your company spends heavily on a cloud data warehouse, runs a separate self-hosted...": https://scrivio-interview-library.netlify.app/databases/storage-internals/c6ec512c1a/