AWS · Storage
Amazon S3
Object storage for any amount of data, designed for eleven nines of durability, with storage classes, lifecycle rules and fine-grained access control.
What it is and what problem it solves
Amazon S3 (Simple Storage Service) stores objects (files plus metadata) in buckets. Each object is addressed by a key and read or written over HTTPS. There is no capacity to provision: buckets grow and shrink with what you store, and you pay for storage, requests and data transfer.
Storage classes trade price against access: S3 Standard for frequent access, Intelligent-Tiering to move data automatically, Standard-IA and One Zone-IA for infrequent access, the Glacier classes for archives, and S3 Express One Zone for single-digit-millisecond access in one Availability Zone. Lifecycle rules move or expire objects over time, versioning keeps every version of an object, and replication copies objects to other buckets and Regions.
When to use it
- Static assets, user uploads, backups, logs, data lakes, media and software distribution.
- Any data that should be very durable, accessed over HTTP, and grow without capacity planning.
- Archives that must be kept for years at low cost (Glacier classes) or locked against deletion (Object Lock).
- As the source or destination for analytics (Athena, EMR, Redshift Spectrum) and machine learning.
When to avoid it
- A file system shared by many servers with POSIX semantics: EFS or FSx.
- Block storage for an operating system or database on EC2: EBS.
- Frequently updated small records with queries: a database such as DynamoDB or RDS.
- Low-latency access where every millisecond matters: consider S3 Express One Zone, a cache, or a database.
Scaling model and bottlenecks
S3 scales automatically, with request rates per prefix: spread heavy workloads across many prefixes to multiply throughput. Use multipart upload for large objects (parallel parts, retry only failed parts), byte-range fetches for parallel downloads, and Transfer Acceleration for long-distance uploads.
Performance, latency and throughput
First-byte latency is milliseconds for most classes; Glacier Flexible Retrieval and Deep Archive need a restore that takes minutes to hours. S3 Express One Zone offers consistent single-digit-millisecond access by keeping data in one zone, close to compute.
Limits and quotas
Object size and upload method limits matter for large files; per-prefix request rates matter for very busy workloads.
| Item | Value | Context | Source |
|---|---|---|---|
| Maximum object size | 48.8 TiB (about 50 TB) Fixed limit |
Objects above 5 GB must be uploaded with multipart upload. | Source checked |
| Single PUT upload | 5 GB maximum | Source checked |
|
| Multipart upload parts | 10,000 parts, 5 MiB to 5 GiB each Fixed limit |
The last part has no minimum size. | Source checked |
| General purpose buckets per account | 10,000 Can be raised with a quota request |
Default quota. | Source checked |
| Request rate per partitioned prefix | At least 3,500 PUT/COPY/POST/DELETE or 5,500 GET/HEAD requests per second | There is no limit on the number of prefixes in a bucket. | Source checked |
| Designed durability | 99.999999999 % | Source checked |
|
| S3 Standard designed availability | 99.99 % | Stored across at least three Availability Zones. | Source checked |
Quotas and limits change. Check the linked source before designing around a number.
Cost model
What you pay for
- Storage per GB-month, by storage class.
- Requests per 1,000 (PUT, COPY, POST and LIST cost more than GET), plus lifecycle transition requests.
- Retrieval per GB from infrequent-access and Glacier classes, and Intelligent-Tiering monitoring per object.
- Data transfer out to the internet and between Regions; replication, Transfer Acceleration, Inventory, Storage Lens and Batch Operations add their own charges.
- Minimum storage durations and minimum billable sizes apply to IA and Glacier classes.
Where it is cost-efficient
Large objects stored for a long time in the right class: lifecycle rules moving older data to cheaper classes, Intelligent-Tiering for unknown access patterns, and CloudFront in front for frequently downloaded content.
Where costs grow
- Millions of tiny objects in IA or Glacier classes, where minimum billable sizes and per-request fees dominate.
- Deleting or moving objects before the minimum storage duration.
- Versioning without lifecycle rules for noncurrent versions, and incomplete multipart uploads left behind.
- Heavy data transfer out to the internet, and NAT gateway charges for S3 traffic from private subnets.
Cost controls and common surprises
Use lifecycle rules (including expiring noncurrent versions and aborting incomplete multipart uploads), Storage Lens to find waste, gateway endpoints instead of NAT for S3 traffic, and batch small objects together before archiving.
Prices differ by Region and change over time; see the pricing page linked under Sources.
Security
Controls the service provides
- Block Public Access at account and bucket level; bucket owner enforced object ownership (ACLs disabled by default).
- Encryption at rest for all new objects (SSE-S3 by default; SSE-KMS or DSSE-KMS for key control); TLS in transit.
- Bucket policies, IAM policies, access points, and VPC endpoint conditions.
- Object Lock (WORM) in governance or compliance mode, and MFA delete for versioned buckets.
What you configure
Keep Block Public Access on unless a bucket must be public (serve public content through CloudFront with origin access control instead), grant least privilege, require TLS, use SSE-KMS where you must control and audit keys, enable versioning for important data, and review access with IAM Access Analyzer.
Logging and monitoring
CloudTrail data events, S3 server access logs, Storage Lens metrics; Macie for sensitive data; GuardDuty S3 protection.
Related security services
KMS, Macie, GuardDuty, IAM Access Analyzer, CloudFront, AWS Backup.
Shared responsibility
AWS keeps the data durable and the service secure. You control who can access each bucket and object and how data is encrypted.
Availability, backup and failure behavior
Most classes store data across at least three Availability Zones; One Zone-IA and Express One Zone use one zone and can lose data if that zone is destroyed. Cross-Region Replication keeps a copy in another Region for disaster recovery and compliance; Same-Region Replication copies between accounts or buckets.
Common service combinations
CloudFront for delivery, Lambda and EventBridge for event-driven processing, Athena and Glue for analytics, AWS Backup, DataSync and Transfer Family for moving data, Storage Gateway for on-premises access.
Business application examples
- A media site stores images in S3 behind CloudFront and moves originals older than 90 days to Glacier Instant Retrieval.
- A data lake receives logs in S3 and queries them with Athena.
- Compliance records written once with Object Lock compliance mode for seven years.
Exam cues and common confusions
- Storage classes: Standard (frequent), Intelligent-Tiering (unknown patterns), Standard-IA (infrequent, multi-AZ), One Zone-IA (infrequent, re-creatable), Glacier Instant Retrieval (archive, milliseconds), Flexible Retrieval (minutes to hours), Deep Archive (cheapest, hours).
- Private bucket served publicly: CloudFront with origin access control.
- Prevent deletion for a fixed period: Object Lock (compliance mode cannot be shortened by anyone).
- Large uploads: multipart upload; long distance: Transfer Acceleration.
- Private access from a VPC: gateway endpoint.
- Copy to another Region automatically: Cross-Region Replication (requires versioning).
Related
Courses and lessons
- Amazon S3 storage classes and lifecycle rules · AWS Solutions Architect – Associate (SAA-C03) · Members
- S3 security, encryption, versioning, replication and Object Lock · AWS Solutions Architect – Associate (SAA-C03) · Members
- S3 performance: multipart upload, Transfer Acceleration and events · AWS Solutions Architect – Associate (SAA-C03) · Members
Services, comparisons and patterns
- Amazon S3 Glacier · Service
- Amazon CloudFront · Service
- Amazon Athena · Service
- Amazon Macie · Service
- AWS Key Management Service (AWS KMS) · Service
- AWS Backup · Service
- AWS DataSync · Service
- Athena vs Redshift vs EMR · Comparison
- Disaster recovery strategies: backup and restore vs pilot light vs warm standby vs multi-site · Comparison
- EBS vs EFS vs FSx vs S3 · Comparison
- S3 storage classes compared · Comparison
Sources
Independent study material, not affiliated with or endorsed by Amazon Web Services. AWS and service names are trademarks of Amazon.com, Inc. or its affiliates.