Xoxoftware - XOXO Creative Studio | Web & Mobile App Development | Fred Cheung | Hong Kong
AWSStorage

Amazon S3

Amazon Simple Storage Service (S3) — scalable object storage. Covers storage classes, lifecycle policies, security, versioning, replication, and cross-cloud equivalents.

Overview

Amazon Simple Storage Service (S3) is AWS's object storage service providing industry-leading scalability, durability (99.999999999% — 11 nines), and availability. It stores data as objects inside buckets.

Key properties:

  • Global namespace — bucket names must be globally unique across all AWS accounts
  • Region-scoped — data is stored in a specific AWS region but accessible globally via HTTP/S
  • Flat structure — no real hierarchy; "/" in key names creates a visual folder structure
  • Unlimited storage — no capacity limits; individual objects up to 5 TB

Exam Trap: S3 is object storage, not a file system. It does not support POSIX operations (file locking, append in-place, etc.). Use Amazon EFS for shared file system access.


Storage Classes

Storage ClassUse CaseAvailabilityMin. Storage DurationMin. Object SizeRetrieval Fee
S3 StandardFrequently accessed data99.99%NoneNoneNone
S3 Intelligent-TieringUnknown or changing access patterns — auto-moves between tiers99.9%NoneNoneNone (monitoring fee applies)
S3 Standard-IA (Infrequent Access)Infrequently accessed but needs millisecond retrieval99.9%30 days128 KBPer-GB
S3 One Zone-IAInfrequent access, non-critical, can be recreated99.5% (single AZ)30 days128 KBPer-GB
S3 Glacier Instant RetrievalArchive with millisecond access99.9%90 days128 KBPer-GB
S3 Glacier Flexible RetrievalArchive — retrieval in minutes to hours99.99%90 daysNonePer-GB
S3 Glacier Deep ArchiveLongest-term archive — retrieval in 12 hours99.99%180 daysNonePer-GB

Exam Trap: S3 Standard-IA and One Zone-IA have a minimum storage duration of 30 days and a minimum billable object size of 128 KB. Storing many small objects or short-lived objects here can cost more than Standard.

SAA/SAP Tip: S3 Intelligent-Tiering is ideal when access patterns are unpredictable — AWS automatically moves objects between access tiers at no retrieval cost. Small objects (< 128 KB) are always charged at the Frequent Access tier rate.


Key Features

Versioning

  • Keeps multiple variants of an object in the same bucket
  • Protects against accidental overwrites and deletes
  • Required prerequisite for S3 Replication and Object Lock

Replication

TypeDescription
Cross-Region Replication (CRR)Asynchronously replicates objects to a bucket in a different region — for DR, compliance, or latency reduction
Same-Region Replication (SRR)Replicates to a bucket in the same region — for log aggregation, account separation

Object Lock (WORM)

Write-Once-Read-Many (WORM) protection for compliance and data immutability.

  • Governance mode — most users can't overwrite/delete; accounts with special permissions can
  • Compliance mode — nobody (including root) can overwrite or delete before retention expires

Exam Trap: S3 Object Lock in Compliance mode cannot be overridden even by the AWS account root user. Choose Governance mode when admin override capability is still needed.

Lifecycle Policies

Automate transitioning objects between storage classes or expiring them after a set period — the primary cost-optimization tool for S3.


Security

ControlDescription
Bucket PoliciesResource-based JSON policy attached to a bucket; can grant cross-account access
IAM PoliciesIdentity-based policy attached to users/roles
Block Public AccessAccount- or bucket-level setting to prevent public exposure — enabled by default for new buckets
Server-Side Encryption (SSE)SSE-S3 (AWS-managed keys), SSE-KMS (AWS Key Management Service), SSE-C (customer-provided keys)
Presigned URLsTime-limited URLs granting temporary access to a private object without AWS credentials

SAA/SAP Exam Tips

SAA/SAP Tip: For cost optimization scenarios, the typical recommendation is: use Lifecycle Policies to transition objects to cheaper classes (IA → Glacier → Deep Archive) as they age.

SAA/SAP Tip: An S3 bucket can host a static website, but it cannot run server-side code. For dynamic content, pair it with Lambda or EC2 behind CloudFront.


Cross-Cloud Equivalents

ProviderService / SolutionNotes
AWSAmazon S3Baseline
AzureAzure Blob StorageSupports similar tiered storage; lifecycle management available; slightly different ACL model
GCPGoogle Cloud StorageUnified bucket model; Autoclass feature similar to S3 Intelligent-Tiering
On-PremisesMinIOS3-compatible object storage API; suitable for air-gapped or hybrid environments

Pricing Model

  • Billed per GB-month stored
  • Billed per request (PUT, GET, DELETE, etc.)
  • Billed for data transfer out to the internet or other regions; inbound is free
  • Lifecycle transitions reduce storage cost but incur one-time transition request fees

Built by Fred Cheung @CookedRicer · Powered by Fumadocs & Github Copilot

On this page