EBS vs EFS vs S3: choose by data access pattern
EBS provides block storage for compute, EFS provides an NFS file system, and S3 stores API-accessed objects. Start with the interface the application needs, then consider performance, scope and cost.
Three storage models
| Service | Interface | Typical fit |
|---|---|---|
| Amazon EBS | Block device for EC2 | Operating-system or application data volume |
| Amazon EFS | Shared NFS file system | Linux workers need a shared directory tree |
| Amazon S3 | Objects through an API | Images, input datasets and static assets |
An image-processing pipeline
Users upload images to S3; workers retrieve objects and store results back. Workers can use temporary storage or EBS during computation, while original images remain independent of worker lifetimes. If software requires a shared NFS file system, evaluate EFS rather than mechanically replacing a file path with S3.
- An EBS volume belongs to one AZ. Conditional Multi-Attach support does not turn EBS into a shared file system across AZs.
- EFS offers Regional and One Zone choices; select the needed scope rather than assuming every configuration is multi-AZ.
- S3 is not a block device. Consider application semantics and limitations before using mounting tools or gateways.
Trade-offs to verify
Check latency, throughput, read/write patterns, client count and recovery needs. Include requests, capacity, transfer and storage classes when consulting current pricing. No service is cheapest for every workload; matching the interface while missing the access pattern can still increase cost.
References
Use AWS documentation to check current features and limits. Cloud Quest is an independent learning project and does not guarantee exam outcomes.