← Back to Home

Amazon S3

AWS CLF-C02 — Domain 3: Cloud Technology & Services

S3 Overview

Key Point:

S3 is object storage (not block or file storage). Bucket names are globally unique. Objects are accessed via keys. S3 provides 11 9s (99.999999999%) of durability.

S3 Security

Bucket Policies

Access Control Lists (ACLs)

S3 Encryption

TypeDescriptionKey Management
SSE-S3Server-Side Encryption with S3-managed keys. Default encryption.AWS manages keys entirely (AES-256)
SSE-KMSServer-Side Encryption with KMS keys. Gives you audit trail via CloudTrail.You manage keys in AWS KMS, control rotation
SSE-CServer-Side Encryption with customer-provided keys. Must use HTTPS.You provide and manage the key with every request
Client-SideEncrypt data on the client before sending to S3.You manage everything — encryption and keys
Exam Tip:

"Default encryption for S3?" → SSE-S3 (AES-256). "Encryption with audit trail of key usage?" → SSE-KMS. "Customer provides their own encryption key?" → SSE-C. All new buckets have SSE-S3 enabled by default.

S3 Static Website Hosting

S3 Versioning

Key Point:

Versioning is a prerequisite for S3 Replication (CRR/SRR). It is considered a best practice to enable versioning on all important buckets.

S3 Replication

TypeFull NameDescription
CRRCross-Region ReplicationReplicate objects to a bucket in a different Region. Use cases: compliance, lower latency, cross-account replication.
SRRSame-Region ReplicationReplicate objects to a bucket in the same Region. Use cases: log aggregation, live replication between production and test accounts.
Exam Tip:

"Replicate S3 data to another Region for compliance?" → CRR. "Aggregate logs from multiple buckets in the same Region?" → SRR. Both require versioning enabled.

S3 Storage Classes

Storage ClassDurabilityAvailabilityMin Storage DurationRetrieval TimeUse Case
S3 Standard99.999999999% (11 9s)99.99%NoneInstantFrequently accessed data, big data analytics, gaming, content distribution
S3 Standard-IA99.999999999%99.9%30 daysInstantInfrequently accessed but needs rapid access (disaster recovery, backups)
S3 One Zone-IA99.999999999%99.5%30 daysInstantInfrequent access, data you can recreate (secondary backups, thumbnails)
S3 Glacier Instant Retrieval99.999999999%99.9%90 daysMillisecondsArchive data accessed once a quarter with instant access
S3 Glacier Flexible Retrieval99.999999999%99.99%90 daysExpedited: 1-5 min, Standard: 3-5 hrs, Bulk: 5-12 hrsArchive data accessed 1-2 times per year
S3 Glacier Deep Archive99.999999999%99.99%180 daysStandard: 12 hrs, Bulk: 48 hrsLong-term archive, data retained for 7-10+ years, compliance
S3 Intelligent-Tiering99.999999999%99.9%NoneInstant (for frequent/infrequent tiers)Unknown or changing access patterns. Auto-moves objects between tiers. Small monthly monitoring fee, no retrieval charges.
Key Point:

All S3 storage classes have 11 9s (99.999999999%) durability. They differ in availability, retrieval time, and cost. One Zone-IA stores data in only 1 AZ (risk of AZ destruction).

Exam Tip:

"Cheapest long-term archive?" → Glacier Deep Archive. "Archive with instant access?" → Glacier Instant Retrieval. "Unpredictable access patterns?" → Intelligent-Tiering. "Infrequent access, can recreate data?" → One Zone-IA.

S3 Lifecycle Rules

Two Types of Actions

Action TypeDescriptionExample
Transition ActionsMove objects to another storage class after X daysMove to Standard-IA after 30 days, move to Glacier after 90 days
Expiration ActionsDelete objects after X daysDelete access logs after 365 days, delete incomplete multi-part uploads after 7 days
Exam Tip:

"How to automatically move objects to cheaper storage over time?" → S3 Lifecycle Rules with Transition Actions. "How to auto-delete old objects?" → Lifecycle Rules with Expiration Actions.

S3 Event Notifications

S3 Presigned URLs

Exam Tip:

"How to give temporary access to a private S3 object without making the bucket public?" → Presigned URL. This is a very commonly tested concept.

S3 Access Points

S3 Object Lock & Transfer Acceleration

S3 Object Lock

S3 Transfer Acceleration

Exam Tip:

"Prevent object deletion for compliance (WORM)?" → S3 Object Lock. "Speed up S3 uploads from far-away users?" → S3 Transfer Acceleration. "Even the root user cannot delete?" → Compliance Mode.

S3 Quick Reference

FeatureKey Fact
Max object size5 TB
Multi-part upload requiredFiles > 5 GB (recommended for > 100 MB)
Bucket nameGlobally unique, 3-63 characters, lowercase
Durability99.999999999% (11 nines) for all classes
Default encryptionSSE-S3 (AES-256)
VersioningBucket-level, required for replication
Lifecycle rulesTransition + Expiration actions
ReplicationCRR (cross-region) or SRR (same-region), requires versioning
Static hostingHTTP only (use CloudFront for HTTPS)
Free Tier5 GB Standard storage, 20,000 GET, 2,000 PUT for 12 months