Configuring S3 Buckets for Versioning and Deletion Protection

45 minutes
  • 4 Learning Objectives

About this Hands-on Lab

In this lab, students will work with Amazon Simple Storage Service (S3) to configure two S3 buckets with encryption, versioning, lifecycle rules, and deletion protection.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Configure 2 S3 Buckets

Configure 2 S3 buckets. 1 bucket should start with the name labdata, and 1 bucket should start with the name lablogs.

1 bucket is for the data, and 1 bucket is for the logs.

Both buckets should block public access.

Configure KMS Encryption for the Labdata Bucket

Configure KMS encryption for the labdata bucket using a KMS key you create.

Configure Protection for Accidental Deletion of Data for Both Buckets

Configure the S3 buckets to protect against accidental deletion of data.

Configure Lifecycle Configuration for Both Buckets

Configure Lifecycle policies for the S3 buckets. Name the Lifecycle "lablifecycle". Below are the requirements identified by our fictional company.

After 45 days, the files will be accessed infrequently.
All current files should be retrievable and accessible within 24 hours in the event of an audit.
After 10 years (3,652 days), objects in the bucket should be deleted.

Additional Resources

Update: Amazon S3 Glacier is for archival data that occasionally needs to be restored within:

  • 1-5 minutes (expedited)
  • 3-5 hours (standard)
  • or 5-12 hours (bulk).

S3 Glacier Deep Archive is for archival data long-term backups that might infrequently need to be restored within:

  • 12 hours (standard)
  • or within 48 hours (bulk).

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?