Lesson 20 of 36 · see all lessons
  1. Start here: cloud concepts (domain 1, 24%)

    1. 1. Start here: the exam, the plan and what you already know
    2. 2. What the cloud is: benefits, service models and deployment models
    3. 3. AWS global infrastructure: Regions, Availability Zones and edge locations
    4. 4. Cloud economics: what you pay for on-premises vs in the cloud
    5. 5. The AWS Well-Architected Framework: six pillars
    6. 6. Moving to AWS: the Cloud Adoption Framework and migration strategies
  2. Security and identity (domain 2, 30%)

    1. 7. The shared responsibility model: who secures what
    2. 8. IAM basics: users, groups, roles and policies
    3. 9. Protecting the root user, MFA and credentials
    4. 10. Identity at scale: IAM Identity Center, federation and cross-account access
    5. 11. Encryption and keys: protecting data at rest and in transit
    6. 12. Threat protection: Shield, WAF, GuardDuty, Inspector and Security Hub
  3. Governance, ways of working and compute (domains 2 and 3)

    1. 13. Logging, auditing and compliance: CloudWatch, CloudTrail, Config and Artifact
    2. 14. Governing many accounts: Organizations, Control Tower and Service Catalog
    3. 15. Ways to use AWS: console, CLI, SDKs and infrastructure as code
    4. 16. Amazon EC2: virtual servers and instance types
    5. 17. Elasticity: Auto Scaling and Elastic Load Balancing
    6. 18. Containers and serverless: ECS, EKS, Fargate, Lambda and more
  4. Storage, databases and networking (domain 3, 34%)

    1. 19. Block and file storage: EBS, instance store, EFS and FSx
    2. 20. Amazon S3: buckets, storage classes and lifecycle policies
    3. 21. Hybrid storage, backup and disaster recovery
    4. 22. Databases: RDS, Aurora, DynamoDB, ElastiCache and more
    5. 23. Networking: VPCs, subnets, gateways and security layers
    6. 24. Connecting and delivering: Route 53, CloudFront, VPN and Direct Connect
  5. Analytics, AI, integration and more (domain 3)

    1. 25. Analytics services: Athena, Glue, Kinesis, Redshift and Quick
    2. 26. AI and machine learning services: SageMaker AI, Lex, Rekognition and Amazon Q
    3. 27. App integration and business apps: SQS, SNS, EventBridge, Connect and SES
    4. 28. Developer tools, end-user computing, Amplify and IoT
  6. Billing, pricing and support, then exam practice (domain 4, 12%)

    1. 29. Pricing models: On-Demand, Savings Plans, Reserved, Spot and Dedicated
    2. 30. Billing and cost tools: Budgets, Cost Explorer, Pricing Calculator and tags
    3. 31. AWS Support plans, Trusted Advisor and where to get help
    4. 32. Final review and exam day: every decision on one page
    5. 33. Mock exam 1
    6. 34. Mock exam 2 Exam Pack · $12
  7. Extra practice: mock exams 3 and 4

    1. 35. Mock exam 3 Exam Pack · $12
    2. 36. Mock exam 4 Exam Pack · $12
See the leaderboard

20 min

Amazon S3: buckets, storage classes and lifecycle policies

Use S3 for object storage, choose a storage class by access pattern and automate tiering with lifecycle rules.

By the end of this lesson you can

  • Explain buckets, objects and keys, and what S3 is used for
  • Choose an S3 storage class from how often data is read
  • Use lifecycle policies to move and delete objects automatically
  • Name the S3 security defaults and what S3 charges for

From earlier lessons · 1 of 2

Cedar Lane Books needs its orders database disk in a different Availability Zone. The volume can't attach to an instance in another AZ. What should the team do?

Pick one answer.

From earlier lessons · 2 of 2

Which service gives Windows servers managed shared folders over SMB, with Microsoft Active Directory sign-in?

Pick one answer.

Cedar Lane Books has two million book-cover images that its website shows all day. Finance must keep every invoice for seven years but almost never opens one. And the new European shop must keep EU customers' data in the EU. None of this needs a disk. It needs a place to put objects, and a smart way to pay less as they age.

[4]

Amazon S3: buckets, objects and keys

Exam depth: know it cold.

Amazon Simple Storage Service (Amazon S3) is AWS's object storage. You store objects (a file plus its metadata) in containers called buckets.

  • Bucket: you name it and choose its Region when you create it. Names are globally unique by default: no other AWS account can use the same name. Objects never leave that Region unless you copy them.
  • Key: the object's unique name inside the bucket, such as covers/9780141.jpg.
  • Size: a bucket holds as many objects as you like. One object can be up to 50 TB. Older study guides say 5 TB; AWS raised the limit.
  • Durability: S3 is designed for 99.999999999% (eleven nines) durability. Most classes store copies in at least three Availability Zones.

What it's for: backups and archives, static websites, data lakes for analytics, and media such as images and video.

[217][218][219][220]

How S3 is organizedRegion: Europe (Ireland)Bucket: cedarlane-eu-invoicesObject: invoices/2026/1001.pdfObject: invoices/2026/1002.pdfAZ aAZ bAZ cName unique across all AWSaccounts; Region chosen atcreationThe key is the full name,folders includedCopies in at least three AZsfor most classes

[217][220]

Cedar Lane Books must keep invoices for EU customers inside the EU. How does it meet this requirement in Amazon S3?

Pick one answer.

[217]

Storage classes: match the price to how often you read

Exam depth: know it cold.

Every object has a storage class. Colder classes cost less to store but charge more to read, and some charge for a minimum number of days. Every class in this table has the same eleven-nines durability.

ClassUse it forFirst byteMin. daysAZs
S3 Standard (default)Data read often.Milliseconds.None.3 or more.
S3 Intelligent-TieringUnknown or changing access. S3 moves objects between tiers for you.Milliseconds.None.3 or more.
S3 Standard-IARead about once a month.Milliseconds.30.3 or more.
S3 One Zone-IARead about once a month, and you can re-create it.Milliseconds.30.1.
S3 Glacier Instant RetrievalArchive read about once a quarter.Milliseconds.90.3 or more.
S3 Glacier Flexible RetrievalArchive read once or twice a year.Minutes to 12 hours.90.3 or more.
S3 Glacier Deep ArchiveArchive read less than once a year. Lowest cost in AWS.Within 12 hours, or 48 for bulk.180.3 or more.
S3 Express One Zone (recognize)Fastest access for latency-sensitive apps.Single-digit milliseconds.None.1, you choose it.

"IA" means infrequent access. Decision rule: read often, Standard. Don't know, Intelligent-Tiering. Rarely, IA. Archive, Glacier: the longer you can wait, the deeper and cheaper.

[221][222][223]

Put in order

Order these storage classes from the data you read most often to the data you read least often

Drag, or focus an item and press Space, move with the arrow keys, then Space to drop.

  1. S3 Glacier Deep Archive: less than once a year
  2. S3 Standard: more than once a month
  3. S3 Glacier Instant Retrieval: about once a quarter
  4. S3 Glacier Flexible Retrieval: once or twice a year
  5. S3 Standard-IA: about once a month

[221]

[221]

Cedar Lane Books stores marketing videos. Some are watched daily for a week, others for months, and nobody can predict which. The company wants to cut storage costs without retrieval fees or manual work. Which storage class fits?

Pick one answer.

[221]

S3 Glacier Deep Archive: the cheapest shelf in AWS. Asking for a file back takes hours, not minutes. Picture: Retro pixel art, 16-bit video game style.

Finance at Cedar Lane Books must keep tax records for seven years for compliance. The records are almost never read, and a two-day wait is fine when they are. Which storage class is MOST cost-effective?

Pick one answer.

[222][223]

Lifecycle policies: let S3 move and delete for you

Exam depth: know it cold.

An S3 Lifecycle configuration is a set of rules on a bucket that S3 runs for you. Rules take two kinds of action:

  • Transition: move objects to a cheaper storage class after a number of days.
  • Expiration: delete objects after a number of days.

Rules apply to objects already in the bucket and to new ones.

Cedar Lane Books' invoice rule: upload to S3 Standard. After 30 days, move to Standard-IA. After 90 days, move to Glacier Flexible Retrieval. After a year, move to Deep Archive. After seven years, delete. Nobody has to remember any of it.

[224]

Watch it happen · 13 s

An invoice moves through Cedar Lane Books' lifecycle rule

Day 0: the invoice is uploaded to S3 Standard.

Scene 1 of 5

A company keeps application logs in S3. Logs are read only in the first 30 days, must then move to cheaper storage, and must be deleted after one year. Which option meets these requirements with the LEAST operational effort?

Pick one answer.

Keeping buckets safe: public access, policies and encryption

Exam depth: know it cold.

  • Private by default. New buckets and objects don't allow public access. S3 Block Public Access settings override any policy that tries to make data public. You can set them per bucket, per account or for a whole AWS Organization.
  • Bucket policy: a JSON permissions document attached to the bucket. It allows or denies access by who asks, what they do and conditions such as their IP address.
  • Encrypted by default. Since January 2023, S3 encrypts every new object with S3-managed keys (SSE-S3), at no cost. Choose AWS KMS keys (SSE-KMS) for more control over keys (lesson 11).

Recognize these two:

  • S3 Versioning keeps every version of an object, so you can undo an overwrite or a delete. It's off until you turn it on, and every version is billed.
  • S3 Replication copies objects automatically to another bucket, in the same Region or a different one.

[225][226][227][228][229]

An employee at Cedar Lane Books overwrote the current price list in S3 with a broken file. The company wants to be able to restore earlier copies after mistakes like this. Which S3 feature should it turn on?

Pick one answer.

[228]

What S3 costs

Exam depth: know it cold.

With S3 you pay for what you use:

  1. Storage: gigabytes per month, priced by storage class.
  2. Requests: each upload, download and list call.
  3. Retrievals: a per-GB fee to read from the IA and Glacier classes.
  4. Data transfer out: data leaving S3 to the internet, after a small free monthly allowance. Data coming in from the internet is free.
  5. Extras you turn on, such as replication and management tools.

Lesson 29 puts these next to the other AWS pricing models.

[221][231]

Exam-style practice

A company stores thumbnail images that it can regenerate from the originals at any time. Thumbnails are read about once a month and need millisecond access. Which storage class is MOST cost-effective?

Pick one answer.

[221]

A clinic keeps patient scans for years. Each scan is opened about once a quarter, and it must appear in milliseconds when a doctor asks. Which storage class is MOST cost-effective?

Pick one answer.

[222]

Cedar Lane Books wants to publish a holiday gift guide made only of HTML pages and images. It wants no servers to manage and low cost. Which AWS service can host the files?

Pick one answer.

[217][230]

FlashcardsIndex cardsFlashcards ⚡

Card 1 of 18

[217][218][221][222][223][224][225][227]

Worth keeping

  1. S3 stores objects in buckets: globally unique names, one Region each, eleven nines durability, objects up to 50 TB.
  2. Pick the class by access: Standard often, Intelligent-Tiering unknown, IA monthly, Glacier for archives.
  3. Glacier Instant Retrieval reads in milliseconds; Flexible Retrieval and Deep Archive need a restore first.
  4. Lifecycle rules move objects to colder classes and delete them on a schedule.
  5. Buckets are private and encrypted by default; versioning protects against overwrites.

On the job

Cedar Lane Books' finance lead asks why the storage bill keeps growing. The answer: every invoice since launch sits in S3 Standard, priced for files read every day.

A cloud practitioner doesn't need to write code to fix this. They ask two questions: how often is each kind of data read, and how long must we keep it? Those answers become one lifecycle rule. The bill drops, the seven-year rule is met, and old invoices delete themselves on time.

[221][224]

The 14 stores still keep files on servers in back rooms, and backups go to tapes in a drawer. Next lesson: hybrid storage, AWS Backup and disaster recovery.

Leaderboard

Loading…

50 XP for each lesson you finish, 10 for each right answer. Names show only for learners who turn on Show me on leaderboards.

Embed this practice on your site

Free for classrooms, blogs and study groups. Paste this into any page that accepts HTML.

Report a copyright problem with this lesson

Sources for this lesson (16)

Each fact in the lesson is marked with the number of the page it comes from.

  1. [4]AWS: CLF-C02 Content Domain 3: Cloud Technology and Services
  2. [217]AWS: What is Amazon S3?
  3. [218]AWS: Amazon S3 objects overview
  4. [219]AWS: General purpose bucket naming rules
  5. [220]AWS: Data protection in Amazon S3
  6. [221]AWS: Understanding and managing Amazon S3 storage classes
  7. [222]AWS: Understanding S3 Glacier storage classes for long-term data storage
  8. [223]AWS: Understanding archive retrieval options
  9. [224]AWS: Managing the lifecycle of objects
  10. [225]AWS: Blocking public access to your Amazon S3 storage
  11. [226]AWS: Bucket policies for Amazon S3
  12. [227]AWS: Configuring default encryption
  13. [228]AWS: Retaining multiple versions of objects with S3 Versioning
  14. [229]AWS: Replicating objects within and across Regions
  15. [230]AWS: Hosting a static website using Amazon S3
  16. [231]AWS: Amazon S3 pricing