When would you choose S3 over EBS?
Choose S3 when you need durable, virtually unlimited object storage accessible over HTTP from anywhere. Choose EBS when you need a block device attached to a single EC2 instance, such as a database data directory or a boot volume.
Reasons to pick S3:
- Eleven nines of durability across multiple Availability Zones by default.
- Massive scalability and pay-per-use pricing with no pre-provisioning.
- Features such as versioning, lifecycle policies, replication, and event notifications.
- Concurrent access from many clients and services.
Pick EBS for low-latency random I/O, filesystems, and single-instance workloads. EBS volumes are AZ-scoped and usually attach to one instance at a time, although io2 multi-attach exists. Many designs combine them: EBS for the OS and database, S3 for backups, logs, and static assets. Use EFS or FSx when you need shared POSIX file storage.