Amazon S3 Operations: Versioning, Lifecycle, Replication, Encryption, Access Control, Events and Troubleshooting

AWS SysOps Associate 55 min min read Updated: Nov 17, 2026 Intermediate
Amazon S3 Operations: Versioning, Lifecycle, Replication, Encryption, Access Control, Events and Troubleshooting
Intermediate Topic 1 of 3

Storage Classes

ClassUseNotes
StandardFrequent accessDefault, 11 nines durability, 3+ AZs
Intelligent-TieringUnknown or changing accessAuto-moves between tiers, small monitoring fee, no retrieval fee
Standard-IAInfrequent, needs fast accessMin 30 days, 128 KB min billable size, retrieval fee
One Zone-IARe-creatable infrequent dataSingle AZ, cheaper
Glacier Instant RetrievalRare access, millisecond retrievalMin 90 days
Glacier Flexible RetrievalArchive, minutes to hoursMin 90 days. Expedited, Standard, Bulk
Glacier Deep ArchiveLong-term archive (compliance)Min 180 days, restore in about 12 to 48 hours
Express One ZoneSingle-digit ms, high request ratesDirectory buckets, single AZ

Versioning and MFA Delete

  • Versioning keeps every version. A delete adds a delete marker. Remove the marker to restore. Once enabled it can only be suspended, never fully disabled
  • Protects against accidental overwrite and delete. Costs storage for old versions, so pair with a lifecycle rule for noncurrent versions
  • MFA Delete requires MFA to permanently delete versions or change versioning (root user only, CLI)
bash aws s3api put-bucket-versioning --bucket ops-data --versioning-configuration Status=Enabled aws s3api list-object-versions --bucket ops-data --prefix report.csv aws s3api delete-object --bucket ops-data --key report.csv --version-id <delete-marker-id> # undelete

Lifecycle Rules

json {"Rules": [{"ID": "logs-tiering", "Status": "Enabled", "Filter": {"Prefix": "logs/"}, "Transitions": [{"Days": 30, "StorageClass": "STANDARD_IA"}, {"Days": 90, "StorageClass": "GLACIER"}], "Expiration": {"Days": 365}, "NoncurrentVersionExpiration": {"NoncurrentDays": 30}, "AbortIncompleteMultipartUpload": {"DaysAfterInitiation": 7}}]}
  • Actions: transition, expiration, noncurrent version transition/expiration, abort incomplete multipart uploads, remove expired delete markers
  • Always add AbortIncompleteMultipartUpload because hidden parts cost money
  • Transitions have minimum days and size rules, and small objects may cost more in IA classes

Replication

TypeUse
CRR (cross-Region)Disaster recovery, lower latency, compliance
SRR (same-Region)Log aggregation, prod/test copies, different owner accounts
  • Needs versioning on source and destination and an IAM role for S3
  • Replicates new objects only. Use S3 Batch Replication for existing objects and failed ones
  • Delete markers replication is optional. Version deletes are not replicated
  • Replication Time Control (RTC): 15-minute SLA with metrics. Monitor ReplicationLatency and OperationsFailedReplication
  • KMS-encrypted objects need extra settings and key permissions

Encryption

ModeKey ownerNotes
SSE-S3S3Default for all new objects (AES-256), free
SSE-KMSKMS keyAudit in CloudTrail, key policy control. KMS request quotas can throttle very high request rates. Use S3 Bucket Keys to cut KMS calls and cost
DSSE-KMSKMSDual-layer encryption
SSE-CCustomerYou supply the key on every request (HTTPS only)
Client-sideYouEncrypt before upload
  • Enforce TLS with a bucket policy condition aws:SecureTransport = false → deny
  • Bucket policy can require a specific encryption header or key

Access Control

ToolNotes
Block Public AccessFour settings at account and bucket level. Keep on unless a public site is truly intended
Bucket policyResource policy: cross-account access, conditions (IP, VPC endpoint aws:SourceVpce, TLS, org id)
IAM policyIdentity-based permissions
ACLsLegacy. Set Object Ownership = Bucket owner enforced to disable ACLs
Access PointsNamed endpoints with their own policy per application or team, can be VPC-restricted
Pre-signed URLsTemporary access using the creator's permissions. Expiry limited by credentials' lifetime
Access Analyzer for S3Finds buckets shared outside the account or org

Data Protection Extras

  • Object Lock (WORM): Governance (privileged users can override) or Compliance (nobody can delete until retention ends), plus legal hold. Requires versioning
  • Glacier Vault Lock for vault policies in Glacier
  • S3 Object Lambda / Access Grants for dynamic access patterns

Events and Notifications

  • Send events (s3:ObjectCreated:*, ObjectRemoved, Replication, LifecycleExpiration) to SNS, SQS, Lambda or EventBridge (richer filtering, many targets)
  • Test with a prefix filter. Beware recursion: a Lambda that writes into the same bucket prefix triggers itself

Visibility: Inventory, Storage Lens, Metrics, Logs

FeatureGives you
S3 InventoryDaily or weekly CSV/Parquet list of objects and metadata for Athena queries
Storage LensOrg-wide usage and activity dashboards, cost optimization recommendations
CloudWatch request metrics4xxErrors, 5xxErrors, FirstByteLatency per prefix (opt-in, charged)
Server access logsBest-effort request log to another bucket
CloudTrail data eventsObject-level API audit (costs more), reliable

Performance

  • Each prefix supports at least 3,500 PUT/COPY/POST/DELETE and 5,500 GET/HEAD requests per second, and you can use many prefixes in parallel
  • Multipart upload for objects over 100 MB (required above 5 GB, max object 5 TB). Parallel byte-range GETs for downloads
  • Transfer Acceleration speeds long-distance uploads using edge locations
  • CloudFront for repeated reads. S3 Express One Zone for lowest latency

Troubleshooting 403 Access Denied

  1. Is the principal allowed by IAM and the bucket policy (cross-account needs both sides)?
  2. Any explicit Deny (policy, SCP, permission boundary, VPC endpoint policy)?
  3. Block Public Access or ownership settings blocking it?
  4. SSE-KMS: does the principal have kms:Decrypt/GenerateDataKey on the key?
  5. Bucket policy conditions: wrong IP, VPC endpoint, TLS, org id?
  6. Object owned by another account (ACL era)? Use bucket owner enforced.
  7. Wrong key name or Region, or an Access Point policy
ErrorMeaning
NoSuchKey vs AccessDeniedWithout s3:ListBucket, a missing object returns 403 instead of 404
SlowDown (503)Too many requests on a prefix: spread keys, add retries with backoff
RequestTimeTooSkewedClock mismatch on the client
BucketAlreadyExistsBucket names are global

Static Website Hosting

A bucket can serve a static site. Best practice: keep the bucket private, put CloudFront with Origin Access Control (OAC) in front, attach an ACM certificate and a WAF if needed, and do not make the bucket public.

Practice Tasks

  1. Enable versioning, delete an object and restore it
  2. Create a lifecycle rule for logs with transition, expiration and multipart cleanup
  3. Set up CRR to another Region and test with RTC metrics
  4. Write a bucket policy denying non-TLS requests and requiring KMS
  5. Run Access Analyzer and fix one external-access finding

Conclusion

Operate S3 by choosing storage classes and lifecycle rules, protecting data with versioning, replication and Object Lock, encrypting with SSE-S3 or SSE-KMS (use Bucket Keys), controlling access with Block Public Access and policies, watching with Inventory, Storage Lens and metrics, and debugging 403s step by step.

Quick Summary: storage classes; versioning; lifecycle; replication; encryption; access; Object Lock; events; visibility; performance; 403 troubleshooting.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators