AWS, Azure & GCP · Cloud across providers
What is block storage and how does it differ from object storage?
Short answer
Block storage presents raw volumes that an instance formats with a filesystem and mounts as a disk. It offers low-latency random I/O for databases and boot volumes, but volumes are tied to one AZ.
A block volume behaves like a virtual disk. The guest sees a device, formats it, and reads and writes blocks. That makes it suitable for operating systems, databases and anything that needs a filesystem with random access.
How it differs
- Block: low-latency random I/O, attached to one instance, tied to an AZ, snapshots for backup
- Object: HTTP API, whole-object writes, highly durable and globally accessible, not mountable as a disk
- File: shared POSIX filesystem over NFS or SMB, useful for shared content but with different latency
sudo mkfs.ext4 /dev/nvme1n1
sudo mkdir -p /data
sudo mount /dev/nvme1n1 /data
df -h /dataVolume type determines the performance envelope. General-purpose SSD volumes balance price and IOPS, provisioned IOPS volumes cost more for databases with strict latency, and throughput-optimised volumes suit large sequential reads. Snapshots are incremental and stored separately, but a snapshot is not a running replica.
Follow-ups you should expect
Interviewers use these to check whether the first answer was understanding or memorisation.
- 1How do IOPS and throughput differ for block volumes?
- 2Why does a block volume not survive an AZ failure automatically?
- 3When would you choose a shared file system instead?
- 4How do snapshots differ from replication?
Say it in the interview
Block storage gives an instance a raw volume that it formats and mounts, which is what databases and boot disks need. It offers low-latency random I/O but is tied to an availability zone and usually to one instance. I use snapshots for backup and replicate at the database or application layer for resilience, rather than treating the disk as highly available by itself.
Use this as a model, not a script. Saying it in your own words is what makes it survive follow-up pressure.
Related questions
Reading is step one
Now say it out loud.
Understanding an answer and delivering it under pressure are different skills. Rehearse this topic in a live AWS, Azure & GCP mock interview and get scored feedback on depth, clarity and confidence.