Quick revision
The short answer
I would try cloud storage tiering first, because most files are rarely read after a few weeks and moving cold blocks to cheaper classes may capture much of the saving, minding retrieval fees and minimum durations. Own storage with erasure coding, such as 6 data plus 3 parity fragments at about 1.5 times overhead instead of 3, can be cheaper at hundreds of petabytes with a known access pattern, but it brings hardware, staff and years of migration, and a durability bug would be existential. The decision goes to finance as a five-year total cost with a risk register and decision points, keeping the cloud for bursts, new regions and disaster recovery.
What to remember
In this answer, we framed the choice on the growth curve and asked first how the data is used. Tiering cold blocks into cheaper classes may capture much of the saving quickly, as long as retrieval fees, minimum durations and request charges are understood. Own storage with erasure coding, 6 plus 3 fragments at 1.5 times overhead instead of three replicas at 3 times, can pay at hundreds of petabytes, but it brings hardware, staff and years of migration, and durability risk demands end-to-end checksums, scrubbing, independent verification and gradual verified migration. The recommendation is a staged plan with a five-year total cost, a risk register and decision points, with the cloud kept for bursts, regions and disaster recovery.
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.
I would try cloud storage tiering first, because most files are rarely read after a few weeks and moving cold blocks to cheaper classes may capture much of the saving, minding retrieval fees and minimum durations. Own storage with erasure coding, such as 6 data plus 3 parity fragments at about 1.5 times overhead instead of 3, can be cheaper at hundreds of petabytes with a known access pattern, but it brings hardware, staff and years of migration, and a durability bug would be existential. The decision goes to finance as a five-year total cost with a risk register and decision points, keeping the cloud for bursts, new regions and disaster recovery.
Why this question is asked
When storage is the largest cost and growing 40 percent a year, the question 'should we build our own?' will come up, and a senior leader needs to answer it with numbers rather than enthusiasm or fear. Interviewers ask it to see whether we know the technology, erasure coding and storage classes, and whether we can weigh a large, risky, multi-year bet against simpler options. In this answer, we will project the growth, look at tiering first, explain erasure coding, count what own storage really costs, treat durability as the deciding risk, and shape the recommendation.
1Framing the Problem With Growth
At 400 PB growing 40 percent a year, the company will hold about 560 PB next year, 784 PB the year after and around 1.1 EB in three years. Any option must be judged on that curve, not today's size. It also means the decision is time-sensitive: the longer we wait, the more data a migration has to move.
The first question is not where to store the data but how it is used. We need the access pattern: how many bytes are read per month as a fraction of bytes stored, how that varies with the age of a block, and how much is deleted. For a sync service, a typical finding is that most blocks are read heavily in their first weeks and rarely afterwards, except when a device resyncs or a user restores old versions.
2Try Tiering Before Building Anything
Cloud object stores offer several storage classes. Standard storage is priced for frequent access; infrequent-access classes cost less per GB stored but charge for each GB read; archive classes cost far less again but take minutes to hours to retrieve and charge more for retrieval. If 70 percent of our 400 PB has not been read for 90 days, moving those blocks to an infrequent-access or archive class with lifecycle rules can cut the bill substantially within months and with little engineering.
There are catches, and they decide whether tiering works. Retrieval fees can surprise us if a cold block becomes hot, for example when a user restores an old folder. Many classes have minimum storage durations, so a block deleted after 10 days is billed for 30, 90 or 180 days depending on the class. Per-object request charges punish small objects, so millions of 4 MB blocks may need to be packed into larger objects before moving them to cold tiers. A tiering pilot on a slice of real data tells us the true saving before anyone discusses data centers.
3How Erasure Coding Cuts Raw Capacity
The usual way to keep data safe is three replicas, three full copies on different machines, which costs 3 bytes of raw disk per byte stored. Erasure coding splits data into k data fragments and computes m parity fragments, spreading all k + m across different disks or racks. Any k of them are enough to rebuild the data. With 6 data plus 3 parity fragments, we survive any three failures while storing only 9/6 = 1.5 bytes per byte.
The price is paid on failure and on reads of missing data. Rebuilding a lost fragment needs reading six others over the network and computing the missing one, so recovery uses more network and CPU than copying a replica. For cold, large data, which is most of our 400 PB, that is a good trade.
| Scheme | Raw bytes per byte | Failures survived | Cost of repair |
|---|---|---|---|
| 3 replicas | 3.0 | 2 copies lost | copy one replica |
| Erasure 6 + 3 | 1.5 | any 3 of 9 fragments | read 6 fragments, compute |
| Erasure 10 + 4 | 1.4 | any 4 of 14 fragments | read 10 fragments, compute |
4What Own Storage Really Costs
Raw disk is only one line. Own storage needs servers bought and replaced on a cycle of about five years, data center space, power and cooling, network between sites, a storage software team to build or run the system, on-call engineers, and a migration that will take years for hundreds of petabytes. Large storage companies that did this successfully had hundreds of petabytes, a well-understood and fairly predictable access pattern, and the patience to build a strong team first.
So the honest comparison is a five-year total cost: the cloud bill on the growth curve with tiering applied, against hardware, facilities, people, migration cost including the egress fees for moving data out of the cloud, and a contingency. At this scale own storage can come out ahead, but often by less than the first spreadsheet suggests, and only after the break-even year.
5Durability Is the Deciding Risk
For a storage company, losing customer files is existential; no cost saving survives a headline about lost data. A durability bug in our own system, such as a code path that acknowledges a write before parity is safe, or a repair process that rebuilds from a corrupt fragment, is far more dangerous than any cloud outage.
So I would make durability engineering a condition of the project, not a feature. That means end-to-end checksums from the client's hash to every fragment on disk, background scrubbing that reads and verifies all data on a schedule, and independent verification, a separate system that samples stored data and checks it against the metadata. The migration itself must be gradual: copy a slice of data, verify every block against its hash, serve reads from the new store for that slice, and delete the cloud copy only after a verification period.
- Copy a slice to own storagestart with cold, low-risk data
- Verify every block by hashindependent checker
- Serve reads from own storagecloud copy kept as fallback
- Clean for the verification period?for example 60 daysYesDelete the cloud copyNoInvestigate and fall back
- Next slicegrow slice size as confidence grows
5 steps in order. Play them, or step through them one at a time.
6Shaping the Recommendation
I would not present a yes or no. I would present a staged plan. First, tiering with lifecycle rules and block packing, measured on real data within a quarter. Second, a parallel study and small pilot of own storage on cold data, perhaps 20 PB, with the durability machinery in place. Third, a decision point a year later, using the measured cost per PB and the incident record of the pilot.
Even if we build, the cloud keeps a role: bursts of growth we cannot rack in time, new regions where we have no facilities, and disaster recovery copies of the most important metadata. The finance team gets a five-year total cost for each path, a risk register naming durability, hiring, migration delay and vendor pricing changes, and explicit decision points where we can stop.
7Follow-up questions
Can we negotiate with the cloud provider instead?
Yes, and a credible own-storage plan is the strongest negotiating position. Committed-use discounts at this scale can be large, and they should be in the comparison as a fourth option.
What does erasure coding do to read latency?
A normal read fetches the k data fragments in parallel and needs no computation. Only reads that hit a missing fragment pay for reconstruction, so for healthy data latency is similar to replicas, but tail latency during failures is worse.
How do you judge whether the team can run its own storage?
By whether we already have, or can hire, engineers who have operated storage at this scale. If the plan depends on hiring a whole team first, that hiring is the first milestone and the decision waits for it.
8Conclusion
In this answer, we framed the choice on the growth curve and asked first how the data is used. Tiering cold blocks into cheaper classes may capture much of the saving quickly, as long as retrieval fees, minimum durations and request charges are understood. Own storage with erasure coding, 6 plus 3 fragments at 1.5 times overhead instead of three replicas at 3 times, can pay at hundreds of petabytes, but it brings hardware, staff and years of migration, and durability risk demands end-to-end checksums, scrubbing, independent verification and gradual verified migration. The recommendation is a staged plan with a five-year total cost, a risk register and decision points, with the cloud kept for bursts, regions and disaster recovery.
Open with
I would start with how the data is used and with the growth curve, because at 40 percent a year 400 PB becomes over an exabyte in three years.
Then, if they want more
The cheapest win is usually tiering: most files are rarely read after a few weeks, so lifecycle rules can move cold blocks to infrequent-access or archive classes. The catches are retrieval fees if cold data becomes hot, minimum storage durations, and per-object charges, so small blocks may need packing.
For own storage, erasure coding with something like 6 data plus 3 parity fragments survives three failures at about 1.5 times raw overhead instead of 3 for replicas, but rebuilding lost fragments needs more network and CPU.
Owning storage also means hardware cycles, space, power, a storage software team, on-call and years of migration, and it tends to pay only at hundreds of petabytes with a well-understood access pattern.
The biggest risk is durability: a bug in our own system is existential, so I would require end-to-end checksums, background scrubbing and independent verification, and migrate gradually with verified copies before deleting any cloud data. I would keep the cloud for bursts, new regions and disaster recovery, and present a five-year total cost, a risk register and explicit decision points.
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 "As the senior technical leader, how do you evaluate moving bulk storage to your own data...": https://scrivio-interview-library.netlify.app/architecture/system-design-problems/8837367ebd/