Block, file and archive storage
Choose the storage interface before the product
Our fictional bookstore has three new requirements: a database needs a virtual disk for frequent small writes, two editors need a shared directory for manuscript files, and the business needs to preserve old invoices for years. Use block storage for the database disk, file storage for the shared directory, and object storage with an appropriate archive class for inactive invoices. These choices follow the required access interface, not the size or extension of the files. A database managed by a provider may hide its underlying storage; you may not need to choose a disk yourself.
Block storage: a virtual disk
A block volume exposes addressable blocks to a host. The guest operating system can put a filesystem on it or a database can manage storage directly. Applications normally see a disk device or files on that device, not an object API. Amazon EBS, Azure Managed Disks, and Google Cloud Persistent Disk and Hyperdisk are examples. They differ in attachment rules, redundancy, supported VM types and performance settings. A boot disk contains the operating system; a data disk holds application data. Separate disks may help operational organization, but two disks attached to one VM do not by themselves protect against a VM or zone failure.
Understand location and attachment
An EBS volume attaches to a compatible EC2 instance in its Availability Zone. Google Cloud offers zonal disks and certain regional disk types that replicate between two zones. Azure managed disk redundancy and attachment eligibility depend on SKU and location. Verify the actual disk and VM compatibility before planning a move. Do not assume a disk can be attached in a different zone merely because it belongs to the same region. A snapshot restored into an eligible target volume can be a migration option. The operating system still needs to recognize the device and mount the correct filesystem. Multiple attachments, when supported, do not automatically provide safe concurrent writes: they require a coordinated application or cluster-aware filesystem.
File storage: shared paths
A file share exposes a directory tree with paths, file operations and protocol-specific permissions and locking. Clients mount a share through protocols such as NFS or SMB. Amazon EFS and the FSx family, Azure Files, and Google Cloud Filestore are candidates. EFS is an NFS service; FSx products vary by filesystem and protocol. Azure Files offers SMB and NFS shares, not both protocols on the same share. Filestore is a managed NFS service with protocol support depending on tier and configuration. Choose by client support, locking, identity integration, latency, throughput, availability and recovery requirements. A reachable mount is not proof that the user should be allowed to read or edit its files.
Compare object, block and file access
A product image is retrieved by its object identifier and can be served through a controlled delivery layer. A database disk receives small reads and writes at offsets; a shared manuscript folder needs directory operations and coordinated file access. Mount adapters for object storage may present paths, but their semantics can differ from a traditional filesystem. Check rename, locking, random write and consistency requirements rather than assuming an adapter turns objects into a shared disk. A managed file service can reduce infrastructure maintenance, but the application owner still manages access, data lifecycle and recovery.
Archive is a lifecycle choice, not a universal disk type
Archived invoices may need less expensive long-term storage at the cost of access charges or delay. S3 Glacier Flexible Retrieval and Deep Archive require a restore before ordinary object reads; Glacier Instant Retrieval is a different class. Azure Blob Archive requires rehydration into an online tier. Google Cloud Storage Archive supports direct online access, with higher access charges and a minimum storage duration. These are object storage offerings, not interchangeable mounted file shares. Minimum durations documented at review: S3 Glacier Flexible Retrieval 90 days and Deep Archive 180 days; Azure Blob Archive 180 days; Google Cloud Storage Archive 365 days. Check exceptions, eligible regions, redundancy, retention policy and pricing before applying a transition. A billing minimum is not a legal retention rule.
Estimate archive cost using invented rates
Assume 100 GB is archived for 60 days, the toy minimum is 180 days and storage costs $0.0002 per GB-day. Ordinary storage costs $1.20; the remaining 120 days add $2.40 if early deletion is charged at the same rate. The modeled storage total is $3.60, before retrieval, requests, network transfer and temporary restored copies. A 20 GB retrieval at a fictional $0.02/GB adds $0.40. These are teaching rates, not provider quotes; real billing may include other units, exceptions and minimum object sizes. If the business needs invoices within 15 minutes, an archive class with hours of restore delay is not an eligible sole copy even if its storage cost is lower.
Plan access, encryption and safe disposal
Keep shares and disks private, grant only the needed operations to approved identities, and configure encryption at rest and in transit where supported. Verify access to encryption keys during recovery; deleting a key can make encrypted copies unusable. Inventory attached disks, retained snapshots, backups and archive copies before any cleanup. Use only a synthetic resource inventory in this lesson; never format, detach or delete a real disk to practice. For the offline exercise, match four workload requirements to storage interfaces and calculate the archive bill. Next, measure whether a selected disk can meet the workload and design a verified recovery path.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Block, file and archive storage — knowledge check
Choose the best answer for each offline scenario.
A VM database needs frequent small writes to its data disk. Which interface is the natural candidate?
Two editors need shared directory operations and file locking. What should they evaluate first?
A normal EBS volume is in zone A; the target EC2 VM is in zone B. What is the correct plan?
Which archive service supports direct online object access without a restore step?
100 GB at $0.0002/GB-day is deleted after 60 days under a toy 180-day minimum. What is the modeled total storage cost?