Skip to content
VirtualLP Virtual Learning Platform

Amazon S3 in Depth: Storage Classes, Security, Versioning and Lifecycle

14 min read Topic 9 of 30 1 hands-on lab

Amazon Simple Storage Service (S3) stores any amount of data as objects in buckets, with 11 nines (99.999999999 %) durability. It backs websites, data lakes, backups, logs, ML datasets and RAG document stores.

Core concepts

Concept Meaning
Bucket Container with a globally unique name, created in one Region
Object Data + metadata, up to 5 TB (multipart upload above 100 MB)
Key Full name of the object, e.g. reports/2026/nov.pdf – “folders” are just prefixes
Consistency Strong read-after-write consistency

Storage classes

Class Access pattern Notes
S3 Standard Frequent Default
Intelligent-Tiering Unknown / changing Moves objects between tiers automatically
Standard-IA / One Zone-IA Infrequent, fast when needed Retrieval fee; One Zone stores in a single AZ
Glacier Instant Retrieval Rare, milliseconds Archives you still read
Glacier Flexible / Deep Archive Rare, minutes–hours Cheapest, long-term retention

Lifecycle rules move or expire objects automatically, e.g. after 30 days → Standard-IA, after 365 days → Deep Archive, delete after 7 years.

Protection and security

Feature Purpose
Versioning Keep every version; recover from overwrite/delete (delete markers)
Encryption SSE-S3 (default), SSE-KMS (your key, audit), client-side
Block Public Access Account/bucket switch that prevents accidental public data – keep it ON
Bucket policy Resource policy – who can do what on the bucket
Object Ownership “ACLs disabled” – the recommended setting
Presigned URLs Time-limited link to download/upload a private object
Replication (CRR/SRR) Copy objects to another bucket/Region
Object Lock WORM retention for compliance
{
  "Version": "2012-10-17",
  "Statement": [{
    "Sid": "CloudFrontReadOnly",
    "Effect": "Allow",
    "Principal": { "Service": "cloudfront.amazonaws.com" },
    "Action": "s3:GetObject",
    "Resource": "arn:aws:s3:::my-site-bucket/*"
  }]
}

Static website hosting

S3 can serve a static site (index.html, error.html) from a website endpoint. For production use CloudFront + private bucket for HTTPS and security; the S3 website endpoint itself is HTTP-only and requires public read.

Event-driven S3

Event notifications (or EventBridge) can trigger Lambda, SQS or SNS on ObjectCreated/ObjectRemoved – e.g. resize an uploaded image or index a document for RAG.

Key point

Pick the storage class by access frequency, protect data with versioning + encryption + Block Public Access, and share private objects with presigned URLs, not public buckets.

Practise it

Virtual lab · Amazon Web Services · 20 min

Store objects and host a static website on Amazon S3

Create a globally-unique bucket, upload objects, turn on versioning and configure static website hosting – object storage as a service.

Open lab

Quick revision

  1. Buckets are global-name, regional; objects addressed by key.
  2. 11 nines durability; storage classes trade cost vs access.
  3. Lifecycle rules automate tiering and expiry.
  4. Versioning, encryption, Block Public Access and bucket policies secure data.
  5. Presigned URLs share private objects; events trigger Lambda.

Practise this topic

Hands-on virtual lab

Apply what you just read in a realistic, guided simulation. Free with a verified account.

Create a free account to track your progress and unlock virtual labs.