For block storage, what is the difference between IOPS and throughput, and how does it affect volume choice?
What they are really testing: Whether you know IOPS matters for small random I/O (databases) and throughput for large sequential I/O (big files/streaming), and pick the volume type to match the workload.
A real interview question
For block storage, what is the difference between IOPS and throughput, and how does it affect volume choice?
What most people say
drag me
“They both measure how fast the storage is, so faster is better.”
They measure different things, operations per second versus MB/s, and workloads are bound by one or the other. A database needs IOPS, a streaming/backup job needs throughput. Picking the wrong volume type wastes money or underperforms.
The follow-ups they ask next
Is a transactional database typically IOPS-bound or throughput-bound?
IOPS-bound: it does many small, random reads/writes, so it needs high operations-per-second (provisioned-IOPS SSD), not raw MB/s. A streaming/backup job is the opposite, throughput-bound.
Why does picking the wrong volume type cost you?
You either underperform (an IOPS-bound DB on a throughput-optimized HDD starves on operations) or overpay (a sequential job on expensive provisioned IOPS you do not need). Match the volume characteristic to the workload bottleneck.
What the interviewer is listening for
- IOPS = ops/sec (small random), throughput = MB/s (large sequential)
- Knows DB is IOPS-bound, streaming throughput-bound
- Matches volume type to bottleneck
What sinks the answer
- "Both just mean fast"
- Conflates the two
- Picks volume type by gut
If you genuinely do not know
Say this instead of freezing. Reasoning out loud from what you do know beats silence every single time, and a good interviewer is listening for exactly that.
“IOPS is [operations per second, matters for small random I/O like a database]. Throughput is [MB/s, matters for large sequential I/O like streaming/backups]. A workload is [IOPS-bound or throughput-bound, optimizing the wrong one does not help]. So [match the volume type: provisioned-IOPS SSD for transactional DBs, throughput-optimized HDD for big sequential], to get performance without overpaying.”
Keep going with storage
Foundation
What is the difference between durability and availability for storage?
Foundation
What is the difference between backup and replication, and why is replication not a backup?
Junior
Explain the difference between object, block, and file storage, and give one good use case for each.
Junior
How does object storage achieve such high durability?
Junior
What consistency guarantees does object storage give, and why does it matter?
Mid
Design durable, highly available storage for user-uploaded images. Which service do you choose and why?
Knowing the answer is not the same as recalling it under pressure
Sign in to send the questions you fumble to spaced recall, so they come back right before you would forget them, and learn the concepts behind them with hands-on labs.
Start free