Designing Amazon S3 Storage at Scale
This lesson explains professional-level S3 design: governing access for many teams, meeting retention rules, serving global users and controlling cost across petabytes.
Learning outcomes
After completing this lesson, you will be able to:
- Choose storage classes for access patterns.
- Govern access for many consumers with access points.
- Explain how Multi-Region Access Points and replication serve global users.
- Explain how request rates scale across prefixes.
Storage classes
S3 storage classes differ in how data is stored and how it is meant to be accessed. Most store data across three or more Availability Zones. S3 Standard serves frequently accessed data. S3 Intelligent-Tiering suits unknown or changing access: it moves each object between access tiers automatically for a small monitoring fee, with no retrieval charges. Standard-IA costs less to store but charges for retrieval and bills at least 30 days. The Glacier classes are archives. Instant Retrieval returns data in milliseconds, Flexible Retrieval in minutes to hours, and Deep Archive within 12 to 48 hours, with minimum periods of 90 or 180 days.
Two classes store data in one Availability Zone. One Zone-IA is cheaper but suits only data that can be recreated, such as secondary copies. S3 Express One Zone, using directory buckets, provides single-digit millisecond access for ML training and analytics placed in the same zone. The following table summarises the classes.
| Class | Availability design | Use |
|---|---|---|
| S3 Standard | Three or more AZs | Frequently accessed data |
| S3 Intelligent-Tiering | Three or more AZs | Unknown or changing access; moves objects between access tiers automatically, small monitoring fee |
| S3 Standard-IA | Three or more AZs | Infrequent access, retrieval fee, 30-day minimum |
| S3 One Zone-IA | One AZ | Re-creatable infrequent data such as secondary copies |
| S3 Express One Zone | One AZ (directory buckets) | Single-digit millisecond access for ML training and analytics |
| Glacier Instant / Flexible Retrieval / Deep Archive | Three or more AZs | Archives: milliseconds, minutes to hours, or up to 12-48 hours; 90 or 180-day minimums |
30days
Minimum billed duration for Standard-IA
90days
Minimum for Glacier Instant and Flexible Retrieval
180days
Minimum for Glacier Deep Archive
48hours
Longest retrieval from Glacier Deep Archive
Governing access for many consumers
A single bucket policy becomes unmanageable when dozens of applications and teams share a data lake bucket. S3 Access Points give each consumer its own named endpoint with its own policy, optionally restricted to a VPC; the bucket policy simply delegates to access points owned by the account. S3 Access Grants map identities, including corporate directory users through IAM Identity Center, to S3 prefixes and vend temporary credentials, which suits large numbers of human users. Object Ownership set to bucket owner enforced disables ACLs, and Block Public Access at account level prevents accidental exposure.
Global access and resilience
Multi-Region Access Points give an application one global endpoint for buckets in several Regions. Requests travel over the AWS network to the nearest bucket, and failover controls switch traffic between active and passive buckets, so a Regional problem does not require application changes. The buckets are kept in step with Cross-Region Replication, with Replication Time Control where an SLA is needed, and two-way replication keeps active-active buckets synchronised.
Object Lock in compliance mode enforces write-once-read-many retention, which meets regulatory requirements and protects backups against ransomware. S3 Transfer Acceleration speeds long-distance uploads by bringing them onto the AWS network at a nearby edge location.
Performance at scale
S3 supports at least 3,500 write and 5,500 read requests per second per prefix, and scales by adding prefixes, so spreading keys across many prefixes multiplies throughput. Large objects should use multipart upload and byte-range fetches in parallel. Analytics engines benefit from columnar formats (Parquet) and partitioned key layouts, which reduce the data each query must read.
A shared data lake bucket
A data lake bucket serves a fraud team (read and write under fraud/), a marketing analytics team (read only under curated/) and an ingestion pipeline. Instead of one ever-growing bucket policy, the bucket delegates to access points, and each access point carries a short policy for one consumer:
# Bucket policy: delegate access control to the account's access points
{
"Statement": [{
"Effect": "Allow", "Principal": { "AWS": "*" }, "Action": "s3:*",
"Resource": ["arn:aws:s3:::acme-lake", "arn:aws:s3:::acme-lake/*"],
"Condition": { "StringEquals": { "s3:DataAccessPointAccount": "111111111111" } }
}]
}
# Access point "marketing-ro", reachable only from the analytics VPC
aws s3control create-access-point --account-id 111111111111 --name marketing-ro --bucket acme-lake \
--vpc-configuration VpcId=vpc-0analytics
aws s3control put-access-point-policy --account-id 111111111111 --name marketing-ro --policy '{
"Statement": [{
"Effect": "Allow",
"Principal": { "AWS": "arn:aws:iam::111111111111:role/MarketingAnalytics" },
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:eu-west-1:111111111111:accesspoint/marketing-ro/object/curated/*"
}]
}'Adding a new consumer means adding an access point, not editing a shared policy that every other team depends on. For fine-grained, table-level permissions over the same data, Lake Formation is the next step (see Architecting Data Lakes and Analytics Platforms).
How do S3 Multi-Region Access Points help a global application?
Show answer
They provide one global endpoint that routes requests to the nearest of several replicated buckets and can fail over between Regions.
Exam Tips
Remember for the exam
- For unknown access patterns, use S3 Intelligent-Tiering.
- To give many applications separate, simple policies on one bucket, use S3 Access Points.
- To map directory users to S3 prefixes at scale, use S3 Access Grants with IAM Identity Center.
- For one global endpoint with routing to the nearest replica and failover, use Multi-Region Access Points.
- Request rates scale per prefix; spread keys across prefixes for higher throughput.
- For the lowest-latency object access in one AZ, use S3 Express One Zone.