Choosing Cloud Storage Wisely
Object, Block, and File Storage 🗄️
Compute is only half the picture. A virtual machine, a container, or a cloud function all need somewhere to put data, and cloud providers do not offer one kind of storage. They offer three, shaped differently because applications reach data in different ways. Choosing the wrong one is rarely catastrophic, but it usually shows up later as a surprising bill or an awkward limitation.
In this lesson, you will learn to:
- Distinguish object, block, and file storage by access pattern.
- Select a storage type for common application scenarios.
- Choose an object-storage tier based on retrieval frequency and cost trade-offs.
Three Ways to Organize Data đź§©
Object storage treats each item as a whole thing with a name, an identifier, and some descriptive information attached. You put a file in, you get it back by its identifier, and you cannot edit the middle of it: you replace it. It is reached over the web, and it grows essentially without limit. This is where photos, backups, and the static files of a website live. On Amazon Web Services it is Amazon S3, on Microsoft Azure it is Azure Blob Storage, and on Google Cloud it is Google Cloud Storage.
Block storage behaves like a disk attached to one machine. The data is split into fixed-size chunks, called blocks, and the operating system on that machine writes and rewrites them directly. That direct, fast, small-piece-at-a-time access is exactly what a database needs, and it is also what your virtual machine boots from. The services are Amazon EBS (Elastic Block Store), Azure Managed Disks, and Google Persistent Disk. The important constraint is that a block volume is normally attached to a single machine at a time.
File storage is the familiar shared folder, with directories and files, that several machines can mount at once and see the same contents. When three servers, or three people, need the same folder open simultaneously, this is the answer. Amazon EFS (Elastic File System), Azure Files, and Google Filestore all provide it.

Jessica, a product colleague watching the budget, asks Natalie, a cloud advisor, why database files need block storage instead of cheaper object storage.
- Jessica: Why can't we just put the database files in object storage? It's cheaper.
- Natalie: Because a database rewrites tiny pieces of a file thousands of times a second. Object storage doesn't let you edit part of an object; you replace the whole thing.
- Jessica: And block storage does let you?
- Natalie: That's its whole job. It behaves like a disk. The trade is that it attaches to one machine, so it's not a shared folder.
- Jessica: So the question isn't cost first. It's how the data gets touched.
Notice what Natalie does there. She does not compare prices; she compares how the application reaches the data, because that determines which type is even viable.
Matching Storage to Real Needs 🎯
Consequently, the way to choose is to ask how the data is accessed rather than what it contains. An archive of finished product photography is written once and read occasionally, whole file at a time, so it belongs in object storage. The disk beneath a running database, and the boot disk of any virtual machine, needs constant small reads and writes from one machine, so it belongs on block storage. A folder that three editors open at the same time needs simultaneous shared access, so it belongs on file storage.
Two cases catch people out. Static website files (images, stylesheets, downloadable brochures) feel like they belong in a folder, but they are served whole over the web to many users, so object storage is the right home and the cheapest one. Meanwhile, a shared drive of scanned supplier contracts that people browse and open through familiar folders is genuine file storage, even though the individual documents look a lot like objects.
Tiers, and What Cheap Storage Actually Costs đź’¸
Object storage adds one more decision: the storage tier, meaning how quickly you expect to need the data back. A hot tier (standard) costs the most per gigabyte per month, but retrieval is immediate and effectively free. Cooler tiers cut the monthly storage price substantially. Archive tiers cut it dramatically, sometimes to a small fraction of standard pricing.
That discount is not a gift, and it is worth being precise about what you are trading. First, retrieval is slower. An archived object may need minutes or even hours to become available before you can download it. Second, retrieval is charged per gigabyte pulled back, so data that seemed nearly free to store can produce a real bill the month someone needs it. Third, cold tiers usually carry a minimum storage duration, so deleting something after a week may still cost you months of charges. Moreover, providers can move data between tiers automatically on a schedule, which is excellent when access patterns are genuinely predictable and expensive when they are not.
The judgement, then, is honest frequency of access. Data touched twice a year suits an archive tier. Data someone might urgently need on any given Tuesday does not, no matter how tempting the storage price looks.
The single idea to carry: pick the storage type from how the application reaches the data, then pick the tier from how often anyone actually retrieves it. Next comes a quick matching and sorting check to see whether those three types and their real service names stick, followed by a written recommendation, the kind you would genuinely hand to a manager, assigning both a type and a tier to real data sets and stating plainly what the cheaper tier gives up.
