Cloud Storage Types and Trade-offs Questions
The core storage paradigms in the cloud and when to use each: object storage, block storage, file storage, and ephemeral local instance storage for workloads that need it. Covers durability, consistency, performance tiers, POSIX-semantics gaps in managed cloud file services, lifecycle and archival policies, and the cost-versus-latency trade-offs that drive storage selection for a given workload. Provider-agnostic; provider specifics (S3, Blob, Cloud Storage) sit under the platform entries.
Explain IOPS, throughput (MB/s), and latency as they relate to block storage. Give examples of workloads where IOPS is the limiting factor vs where throughput is the limiting factor. Describe how cloud vendors provide different volume types (e.g., gp3/io1/io2) to address these needs.
Sample Answer
Direct answer
IOPS (input/output operations per second) counts how many discrete read or write operations a volume completes per second, throughput (measured in MB/s or MiB/s) counts how many bytes move per second, and latency measures how long a single operation takes to complete. The three are related but genuinely distinct dimensions, because throughput is simply IOPS multiplied by the size of each operation, so the very same volume can be limited by its IOPS ceiling on small, random operations and limited by its throughput ceiling on large, sequential ones, often at the same provisioned performance level.
How the three dimensions relate
Throughput=IOPS×I/O size
Whichever ceiling a workload hits first, its IOPS limit or its throughput limit, is the one that actually constrains it; the other ceiling simply has unused headroom.
- Workloads where IOPS is the limiting factor: an online transaction processing (OLTP) database issuing many small, random reads and writes per transaction, commonly in the 4 KiB to 16 KiB range per operation, consumes relatively little throughput but generates a very high rate of individual operations. Such a workload hits its volume's IOPS ceiling long before it comes close to the throughput ceiling.
- Workloads where throughput is the limiting factor: a backup job streaming a large file, a video transcoding job reading large chunks, or an analytics job scanning big sequential files issues far fewer, much larger operations. Such a workload saturates the throughput ceiling while using only a small fraction of the available IOPS budget.
How cloud vendors expose this with volume types
Amazon EBS's current volume types illustrate the point concretely (figures below are as documented by AWS and will drift over time, verify current numbers before relying on them for capacity planning):
| Volume type | Baseline included | Maximum provisionable IOPS | Maximum throughput | Notes |
|---|---|---|---|---|
| gp3 (General Purpose SSD) | 3,000 IOPS and 125 MiB/s included at no extra cost | 80,000 IOPS | 2,000 MiB/s | IOPS and throughput are provisioned independently of volume size, a deliberate design change from the previous generation (gp2), where performance scaled with capacity |
| io1 (Provisioned IOPS SSD) | N/A, fully provisioned | 64,000 IOPS | 1,000 MiB/s | Sized for I/O-intensive database workloads needing sustained, guaranteed IOPS beyond gp3's ceiling |
| io2 Block Express (Provisioned IOPS SSD) | N/A, fully provisioned | 256,000 IOPS | 4,000 MiB/s | Highest ceiling of the three, designed for sub-millisecond average latency (under 500 microseconds for a 16 KiB operation) and 99.999% volume durability |
The key design point across all three: gp3 decoupled performance from capacity so you provision IOPS and throughput as their own dials, not as a side effect of how many gigabytes you bought, and io1/io2 exist specifically for workloads whose sustained performance needs exceed what gp3's ceiling can provide.
Worked example
Take a gp3 volume at its included baseline: 3,000 IOPS and 125 MiB/s. For a small, random 16 KiB operation size, the formula above gives 3,000 IOPS times 16 KiB, or about 46.9 MiB/s, well under the 125 MiB/s throughput cap. This workload is IOPS-bound: it hits the 3,000 IOPS ceiling with roughly 62% of the throughput budget still unused. Now take a large, sequential 1 MiB operation size on the same volume: reaching the 125 MiB/s throughput cap only requires 125 IOPS, a tiny fraction of the 3,000 IOPS available. This workload is throughput-bound: it saturates the throughput ceiling using barely 4% of the IOPS budget. Same volume, same provisioned performance, two completely different bottlenecks, purely because of I/O size.
Trade-offs and pitfalls
- AWS publishes EBS throughput ceilings in mebibytes per second (MiB/s, a binary unit, 1,048,576 bytes), not megabytes per second (MB/s, a decimal unit, 1,000,000 bytes). The gap is small in relative terms (about 4.9 percent) but it is real: reading a published 2,000 MiB/s ceiling as 2,000 MB/s and sizing a pipeline against that number leaves the pipeline about 100 MiB/s short of the volume's actual limit, which only shows up once the workload is close to saturating it.
- Provisioning extra IOPS for a workload that is actually throughput-bound, or extra throughput for a workload that is actually IOPS-bound, wastes money: you pay for whichever dimension you provision, regardless of whether the workload can use it.
- Sizing a volume by capacity (gigabytes) alone and forgetting that IOPS and throughput are separately configurable on gp3 is a common under-provisioning mistake, since unlike the previous generation, gp3's performance does not automatically scale with how much storage you bought.
- Reaching for io1 or io2 by default, rather than because the workload genuinely needs sustained performance beyond gp3's ceiling or needs a capability gp3 lacks entirely, pays a real cost premium for headroom that may never be used.
- Diagnosing "storage is slow" without first checking which of IOPS, throughput, or latency is actually saturated leads to fixing the wrong dimension, such as provisioning more throughput for a workload that was IOPS-bound the whole time.
You must optimize a high-throughput object storage workload that writes and reads hundreds of thousands of small objects per second. Explain strategies across client design, object key design (sharding/prefixes), batching, multipart requests, and consideration of choosing object storage vs block storage for specific patterns.
Sample Answer
Direct answer
At hundreds of thousands of operations per second against object storage, the object key namespace itself becomes the thing you scale, so the core move is designing keys so requests spread across enough independently-scaled prefixes, paired with a client built for high concurrency rather than a fast single connection, and batching wherever the workload's semantics allow it. It is just as important to recognize when this pattern is actually a mismatch for object storage altogether: a single process needing very high-rate access to its own private working set is usually a block storage or in-memory problem, not an object storage sharding problem, no matter how cleverly the keys are designed.
Strategies
- Client design: reuse connections (keep-alive) to avoid paying a fresh TCP and TLS handshake on every request, and run enough concurrent, in-flight requests to sustain a high request rate; since each individual request carries real latency (commonly tens of milliseconds), sustaining a high rate requires many requests in flight simultaneously, a fast single connection cannot get there through low latency alone. Retries need exponential backoff with jitter (a small randomized delay before retrying): a burst of clients all retrying at the same instant after a transient error recreates the very load spike that caused the error in the first place.
- Object key design (sharding and prefixes): object storage services commonly scale request rate per partitioned prefix, with request-rate headroom that scales as you add more distinct prefixes rather than as a single, fixed bucket-wide ceiling. A naive key scheme that shares a common literal prefix, such as a leading timestamp, funnels every request into one hot prefix and caps out far below the target rate. Spreading keys across many prefixes, for example by placing a hash of the object's identifier at the front of the key, lets the service scale each prefix's own allocation independently and in parallel.
- Batching: where the workload's semantics allow it, accumulating many small logical writes over a short window and writing them out as one larger object trades the overhead of many tiny requests for far fewer, larger ones, directly reducing the number of requests you need to sustain rather than only scaling the client harder against the original request count.
- Multipart requests: multipart upload, splitting one logical object's transfer across many parallel connections, helps large objects, not genuinely small ones (well under the roughly 100 MB threshold where multipart starts to make sense). Its relevance here is indirect: keeping large-object traffic elsewhere in the system on healthy multipart transfers frees connection and request budget that would otherwise compete with the small-object workload.
- Object versus block storage for this specific pattern: block storage decisively wins for tiny, latency-critical, single-writer random I/O, since it has no per-request HTTP overhead and sub-millisecond latency. Object storage wins when the real requirement is horizontal scale-out across many independent clients or producers. If the actual need is "one process needs 300,000 tiny reads and writes per second against its own data," that is a block storage or in-memory problem incorrectly pointed at object storage. If the need is "300,000 independent small writes per second are arriving from many different producers," that is exactly the pattern object storage, correctly sharded, is built to absorb.
Worked example
Target 300,000 PUT requests per second, against a documented baseline of at least 3,500 PUT requests per second per partitioned prefix.
prefixes needed=⌈3,500300,000⌉=⌈85.7⌉=86
That is the bare minimum to clear the target rate at the documented baseline. Because this kind of per-prefix scaling ramps up gradually rather than instantaneously, and real traffic is rarely perfectly even across prefixes, adding a working margin, for example 30%, gives:
86×1.3≈112 prefixes
Since 27=128≥112, a 7-bit hash prefix (128 possible values) gives enough distinct prefixes to comfortably clear the target with margin, assuming keys hash roughly evenly across that space. The design choice this makes concrete: the key scheme is not an implementation detail, it is the actual scaling mechanism.
Trade-offs and pitfalls
- Over-sharding into far more prefixes than the math calls for adds no real throughput benefit and makes any operation that needs to enumerate the whole key space, such as a full listing, more work to complete; shard to comfortably clear the target rate with margin, not to an arbitrarily large number.
- Because per-prefix scaling ramps up gradually, a prefix that suddenly receives a new burst of traffic can see transient throttling while the service scales that prefix's allocation up; a client with proper jittered backoff absorbs this gracefully, while a naive client without backoff can turn a brief, expected throttling event into a self-inflicted outage.
- Batching adds latency to any individual small write, since it now waits out the batch window before being durably written; this is a real trade-off against raw throughput, not a free win, and the window needs to be sized against how quickly downstream consumers actually need to see the data.
- Applying this entire toolkit to what is really a single-writer, block-storage-shaped problem, mistaking "I need higher IOPS (input/output operations per second) for one hot dataset" for "I need to shard an object-storage key space," wastes engineering effort chasing a sharding scheme that does not solve the actual bottleneck.
For a high-throughput analytics workload, decide between block storage, object storage, or a distributed file system. Describe your choice based on access patterns, throughput and latency requirements, cost, compute-data locality, considerations for streaming ingestion, and how to integrate with compute clusters (e.g., Spark, Presto).
Sample Answer
Direct answer
For most high-throughput analytics today, object storage is the right foundation: it decouples storage growth from compute cost, scales to the size these datasets actually reach, and its higher per-request latency is hidden by the same parallelism the analytics engine already uses to scan data fast. Local NVMe (Non-Volatile Memory Express, a low-latency SSD interface) or block storage still matters, but as an ephemeral shuffle and cache tier on the compute nodes themselves, not as the primary store; a true distributed file system keeps a narrower, genuinely useful role for workloads that are latency-critical and access data in small, random patterns rather than large sequential scans.
Reasoning through the decision
- Access pattern: analytics engines like Spark and Presto (also known as Trino) mostly issue large, sequential scans over columnar file formats such as Parquet or ORC, reading whole column chunks rather than random individual rows. That pattern plays to object storage's strength, high aggregate throughput across many parallel requests, rather than its weakness, per-request latency.
- Throughput and latency: a single object GET request has higher latency than a local disk read, tens of milliseconds versus microseconds, but an analytics job issues hundreds or thousands of parallel GET requests across many objects and prefixes at once. The engine's own parallelism hides individual request latency the same way it always has when reading from many files at once; what matters for the job's wall-clock time is aggregate throughput, not any single request's latency.
- Cost and compute-data locality: a Hadoop-style distributed file system (HDFS) traditionally colocated compute and storage on the same nodes specifically so a task could read from local disk instead of crossing the network, a real advantage when network bandwidth was the scarce resource. Inside a modern cloud region, network bandwidth between compute and object storage is high enough that this advantage has narrowed substantially for most workloads, while HDFS's cost model, storage capacity tied one-to-one to compute node count, forces you to over-provision compute just to hold more data, or vice versa. Object storage removes that coupling: storage and compute scale, and cost, independently.
- Streaming ingestion: writing every incoming event as its own small object creates the well-known small-file problem: each object carries fixed per-request overhead, so a scan touching a million tiny objects pays that overhead a million times over, dominating the actual data transfer time. The fix is to buffer incoming events (commonly through a streaming platform such as Kafka or Kinesis) and periodically compact them into fewer, larger, properly-sized columnar files, rather than letting the ingestion path write directly to the analytics layer's file layout.
- Integrating with Spark and Presto: both engines read object storage through a Hadoop-compatible filesystem connector (for example the S3A connector for Amazon S3) and benefit heavily from partition pruning and predicate pushdown, skipping whole files or column chunks the query does not need, which reduces both bytes scanned and requests issued. A subtler integration detail: object storage generally has no atomic rename the way a real filesystem does (renaming an object is really a copy followed by a delete), so both engines rely on specific output committers, protocols for finalizing a job's written files, that are designed around this limitation to avoid leaving partial, inconsistent output if a job fails partway through a write.
Worked example
Say a query needs to scan 1 tebibyte (TiB) of Parquet data and finish in 60 seconds. That requires 1,024 GiB divided by 60 seconds, or about 17.1 GiB/s of aggregate read throughput. Spread across 100 parallel executor tasks, each reading a different slice of the data, that is roughly 175 MiB/s per executor, comfortably within what a single object-storage connection sustains, and well within reach if each executor opens more than one concurrent connection. The same 17.1 GiB/s target against a single local disk on a single node would be impossible; the object-storage answer works precisely because the query is parallelized across many independent readers hitting many different objects (and, if key-partitioned data lands under enough distinct prefixes, many different request-rate allocations) at once, not because any individual request got faster.
Trade-offs and pitfalls
- A workload that is genuinely latency-critical and accesses data in small, random, iterative patterns, such as an interactive analytical workload issuing many small point lookups rather than large scans, still benefits from a real distributed file system or from staging hot data onto local NVMe; object storage's per-request latency does not disappear, it is only hidden by parallelism, and a workload without enough parallelism to hide it will feel that latency directly.
- The small-file problem is easy to reintroduce even after fixing it once: any new ingestion path that skips the batching and compaction step will quietly degrade scan performance for everyone querying that data, often noticed only as "queries got slower" months later with no obvious cause.
- Forgetting that object storage lacks atomic rename, and relying on a naive or misconfigured output committer, can leave partially-written, inconsistent data visible to readers after a failed job, which is a correctness bug, not just a performance one.
- Treating local NVMe scratch space on compute nodes as durable is a classic durability mistake: it is fast and appropriate for shuffle and cache, but anything that must survive a node failure belongs back in object storage.
A distributed training job or data-ingestion pipeline reads and writes data in parallel across many workers. Compare a POSIX-like file system (NFS, EFS, or Lustre) against an object store such as S3 for this workload: address semantics like atomic rename, directory-listing cost, small-file overhead, and metadata scalability, and explain how each difference affects checkpoint reliability and ingestion throughput.
Sample Answer
Direct answer
For a distributed training job or a parallel data-ingestion pipeline, prefer an object store (S3-style) over a POSIX, Portable Operating System Interface, filesystem (network file system/NFS, Amazon Elastic File System/EFS, or Lustre) whenever the workload writes checkpoints as whole files and reads training samples in bulk, because object storage's request-based scaling model tolerates massive read fan-out from thousands of workers far better than a POSIX metadata server does. The trade is real, though: object storage has no atomic rename, listing is a paginated, priced API call rather than a local syscall, and small individual objects are expensive per-byte in request overhead. A POSIX filesystem earns its place when the workload genuinely needs in-place mutation, directory-based coordination, or very low per-operation latency that a network filesystem's local caching can provide and an HTTP-based object API cannot.
Structured elaboration
Why S3-style object stores have no atomic rename. An object store's key is an opaque identifier, not a position in a directory tree; there is no inode-and-directory-entry structure to repoint. "Renaming" an object is really "create a new object at the new key, then delete the old one" (the copy+delete pattern), which is two separate operations, not one atomic one. If a process crashes between them, a reader can observe either both keys present or, if implemented delete-first, neither key present; the correct order within copy+delete is always copy-then-delete, never delete-then-copy, precisely to avoid a window where the object exists nowhere. Two patterns emulate the atomicity training pipelines actually need:
- Temp-key plus manifest/marker commit: write checkpoint shards under a temporary, unlisted prefix, then write a single small "commit marker" object (or update one manifest object) as the very last step. Nothing downstream reads the temp prefix directly; a reader only trusts a checkpoint once its marker exists. The marker write is a single-object PUT, which IS atomic (S3 has been strongly read-after-write consistent for GET/PUT/LIST since December 2020), so the marker itself is a safe, atomic commit signal even though the multi-shard write underneath it is not.
- Multipart upload's
CompleteMultipartUploadas a built-in version of the same idea: the assembled object never becomes visible under its final key until the complete call succeeds, so a crash mid-upload never exposes a partial object.
Directory-listing cost, for discovery and checkpoint-pruning. A POSIX readdir is a local (or NFS/Lustre round-trip) syscall; an object store's list() (ListObjectsV2 in the S3 API) is a paginated, rate-limited, billed HTTP API call returning at most 1,000 keys per page. Discovering "which checkpoints exist" (discovery) or pruning old ones by re-listing a bucket on every run (checkpoint-pruning) does not scale the way a local directory listing does. The fix used in production pipelines is to stop treating the bucket as the source of truth for discovery: maintain an external manifest (a small database table or a single JSON/Parquet index object updated transactionally alongside each checkpoint write) and only fall back to a full ListObjectsV2 sweep for periodic reconciliation, not for every run.
Small-file overhead and its mitigations. Object storage bills and rate-limits per request, not primarily per byte for small objects, so a dataset stored as millions of individual small files pays a request-count tax that swamps its actual data-transfer cost. The standard mitigations, in increasing order of how much they restructure the data:
- Sharding: group many small samples into a smaller number of larger objects (a few hundred MB to a few GB each) so the number of GET requests per epoch drops by orders of magnitude.
tarshards (the WebDataset convention): pack samples into tar archives and stream-read them sequentially per shard, which turns "one request per sample" into "one request per shard" while keeping the format simple and framework-agnostic.- TFRecord: TensorFlow's binary container format, purpose-built for exactly this: many serialized examples concatenated into one file the training pipeline reads sequentially.
- LMDB (Lightning Memory-Mapped Database): an embedded key-value store some PyTorch pipelines use to pack a dataset into one memory-mappable file with random-access reads by key, trading the pure sequential-read simplicity of tar/TFRecord for indexed random access within a shard.
All four reduce the same underlying cost: request count per training epoch, not raw bytes transferred.
Metadata scalability, on the POSIX side. A parallel filesystem's metadata server, MDS (Lustre's dedicated metadata-server role; NFS and EFS have an analogous, if less exposed, metadata path) handles file creation, stat, and directory listing through a comparatively small number of metadata nodes. Hundreds of workers simultaneously creating per-step checkpoint files or listing a shared directory can serialize on that metadata path long before the underlying data servers are anywhere near saturated: the bottleneck is operations per second on metadata, not aggregate data throughput (the total volume of bytes moved per second, as distinct from how many discrete operations happen per second). Object storage sidesteps this because there is no shared directory structure to contend over: every key is independent, and listing is explicitly a separate, poolable, paginated operation rather than something every read implicitly touches.
How each difference plays out for checkpoint reliability and ingestion throughput. Checkpoint reliability is primarily about the atomic-rename gap: a POSIX filesystem's rename() is a single atomic syscall a training loop can use directly to make a checkpoint appear all-at-once, while an object store needs the temp-key-plus-marker pattern above to get the same guarantee, an extra design step that is easy to skip under deadline pressure and easy to get wrong (see the delete-first ordering bug above). Ingestion throughput is primarily about the small-file and metadata-contention gap: a POSIX filesystem degrades as worker count and per-step file count grow, because every worker's opens and stats compete for the same metadata server, while an object store's throughput scales by adding more key prefixes and, more importantly, by restructuring the data into fewer, larger objects in the first place (the sharding/tar/TFRecord/LMDB techniques above), which sidesteps the request-count ceiling rather than fighting it.
Worked example
Real S3 request pricing (verified 2026-09) applied to one epoch over 5 million small training samples, individual objects versus bundled shards:
GET_PRICE_PER_1000 = 0.0004 # S3 Standard, GET/SELECT tier
LIST_PRICE_PER_1000 = 0.005 # S3 Standard, PUT/COPY/POST/LIST tier (LIST bills in THIS tier)
images = 5_000_000
images_per_shard = 10_000
individual_requests = images
shard_requests = -(-images // images_per_shard) # ceil
print(f"Individual objects: {individual_requests:,} GET requests/epoch -> "
f"${individual_requests/1000*GET_PRICE_PER_1000:,.2f}/epoch")
print(f"Bundled shards: {shard_requests:,} GET requests/epoch -> "
f"${shard_requests/1000*GET_PRICE_PER_1000:,.4f}/epoch")
print(f"Request-count reduction: {individual_requests/shard_requests:,.0f}x")
list_pages = -(-images // 1000) # 1,000 keys per ListObjectsV2 page
print(f"\nOne full-bucket enumeration: {list_pages:,} LIST pages -> "
f"${list_pages/1000*LIST_PRICE_PER_1000:,.3f} one-time")
Output:
Individual objects: 5,000,000 GET requests/epoch -> $2.00/epoch
Bundled shards: 500 GET requests/epoch -> $0.0002/epoch
Request-count reduction: 10,000x
One full-bucket enumeration: 5,000 LIST pages -> $0.025 one-time
The dollar amounts alone look small either way; the number that matters operationally is the 10,000x reduction in request COUNT, since request count, not the trivial per-request price, is what actually queues against S3's per-prefix rate limits and against every worker's network round-trip budget during training. Bundling into shards is what keeps request volume under those limits as worker count scales up, independent of dollar cost.
Trade-offs and pitfalls
- Bundling trades away fine-grained random access. Tar and TFRecord shards are naturally sequential-read formats; if the training pipeline needs true random access to individual samples (for example, hard-example mining or non-shuffled resumable iteration mid-shard), plain tar shards are a poor fit and LMDB's indexed random access, or a shard-plus-offset-index scheme, is the better choice, not a drop-in tar replacement.
- The temp-key-plus-marker commit pattern only works if every reader actually checks the marker. A pipeline that lists the temp prefix directly, or reads shard objects before the marker exists "because they were already there", defeats the whole mechanism; the discipline has to be enforced in the reader code, not just the writer code.
- S3's strong read-after-write consistency (since December 2020) is easy to over-trust. It guarantees a single PUT/GET/LIST is consistent; it does NOT give you a multi-object transaction. A checkpoint made of many shard objects plus one marker is only atomic as a whole if the marker is genuinely written last and genuinely gates every reader, not because the underlying store is "consistent" in some general sense.
- Metadata-server contention on Lustre/NFS is capacity-provisionable, not a hard ceiling. A dedicated, well-provisioned MDS tier, plus keeping small-file counts down, pushes the POSIX option a long way; it is not automatically disqualified for a lower worker count or a workload that genuinely needs POSIX semantics (flock-based coordination, memory-mapped shared checkpoints), it just needs to be sized and tested for the actual worker and file-creation rate, not assumed to scale.
Explain why object storage (for example S3, GCS, or Azure Blob) is commonly chosen as a data lake foundation, compared to a distributed file system like HDFS or to block storage. What are its main advantages and limitations for analytics and big-data processing?
Sample Answer
Direct answer
Object storage decouples storage from compute, so both can scale and cost independently, unlike a Hadoop Distributed File System (HDFS), where each data node in the cluster contributes both compute and its own local disk, tying storage capacity directly to however many compute nodes you have running. It also decisively beats raw block storage for this role, since block storage attaches to a single host and was never built for many independent analytics engines to read the same dataset in parallel at all. That combination, storage that scales independently of compute, durability handled by the provider rather than the team, and a standard HTTP API that essentially every analytics tool already speaks, is why object storage became the default data lake foundation. It comes with real limitations that show up specifically in big-data processing if they are not designed around: higher per-request latency than local disk, a small-file performance penalty, and no true atomic rename.
Advantages over HDFS and block storage
- Storage scales independently of compute. HDFS couples the two by design, so growing retained data means growing, or at least maintaining, the compute cluster's disks along with it, even in a season where query compute needs are low. Object storage removes that coupling: a compute cluster can be spun up, scaled, and torn down against a storage layer that does not care how many compute nodes happen to be attached to it right now.
- Durability without operating your own replication. HDFS's default triple replication is a real, ongoing operational responsibility: monitoring under-replicated blocks, rebalancing data across nodes, and managing disk failures across the whole fleet. With object storage, that operational burden shifts to the provider.
- Broad, standard tool support. Virtually every analytics engine speaks a major object storage API natively, whereas connecting a distributed engine directly to raw block storage is not even a meaningful option at cluster scale, since a block volume attaches to one host, not to a whole compute cluster's worth of parallel readers.
- Cost that tracks actual usage, including moving aging data to cheaper storage classes over time, rather than a fixed, provisioned cluster capacity the way HDFS's storage capacity is fixed by however many nodes and disks have been provisioned.
Limitations for analytics and big-data processing
- Higher per-request latency than local disk. Every read crosses the network; this matters for latency-sensitive or highly iterative, random-access patterns and matters far less for the large, sequential, columnar scans most analytics engines actually run.
- The small-file problem, though it is not unique to object storage. Many small files mean per-request overhead dominates actual data transfer time on object storage, but HDFS has its own version of the same underlying problem: too many small files strain the NameNode, HDFS's central metadata service, which must hold every file's metadata in memory. Both systems punish an unbatched, small-file write pattern, just through different failure modes, so "move to object storage" does not by itself fix a small-file problem, it only changes what the symptom looks like.
- No true atomic rename. A real filesystem can rename a file as an instant, metadata-only operation; object storage generally implements a rename as a copy followed by a delete, which is neither atomic nor cheap at scale. This is a correctness concern, not just a performance one: naive job-output commit protocols that assumed atomic rename to safely "publish" a completed job's output directory can leave partial, inconsistent output visible if a job fails partway through, which is exactly why modern analytics engines use output committers specifically designed around this limitation rather than relying on rename.
- Consistency guarantees vary by provider, and history here matters. Object storage's read-after-write consistency was a real, historically significant limitation: for years, some object stores, including Amazon S3 (Simple Storage Service) before a change introduced in December 2020, offered only eventual consistency for certain operations, which caused genuine correctness bugs in early data lake tooling that assumed a write was immediately visible to the next read. Today's major public cloud object stores are strongly consistent by default, but this is a "verify for the specific store in use," not a "assume it's always true," point, since not every self-hosted or alternative object-storage-compatible system necessarily offers the same guarantee.
Worked example
Consider a data lake retaining five years of historical data but running compute in bursts, heavy during quarterly reporting, light the rest of the time. On HDFS, the storage capacity for those five years of history is fixed by however many data nodes and disks were provisioned, meaning the cluster has to be sized for the storage need even during the months when almost no compute is running against it, an idle but still-paid-for cluster. On object storage, the historical data sits in the storage layer at its own cost, aging into cheaper storage classes as it goes, while compute clusters are provisioned only when a query actually needs to run, and torn down afterward. The structural reason this works is exactly the decoupling described above: storage cost and compute cost are no longer forced to move together just because they happen to live on the same disks in the HDFS model.
Trade-offs and pitfalls
- Moving to object storage without addressing the small-file problem or without using a commit protocol designed for the lack of atomic rename reproduces the same class of bug, "the data lake is slow" or, worse, "the data lake occasionally serves inconsistent output," without an obvious cause pointing back to the real issue.
- Assuming every object-storage-compatible product offers the same strong consistency guarantee as the major public cloud providers' primary services, without checking for the specific product in use, risks reintroducing a class of correctness bug the industry has mostly moved past.
- Treating the cost advantage as automatic, rather than something that requires actually implementing lifecycle tiering and sensible partitioning, leaves most of object storage's cost benefit uncaptured, all of the data sitting in the most expensive, hottest tier by default.
Unlock Full Question Bank
Get access to all 37 Cloud Storage Types and Trade-offs interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.