Lesson 20 of 36 · see all lessons
Start here: cloud concepts (domain 1, 24%)
- 1. Start here: the exam, the plan and what you already know
- 2. What the cloud is: benefits, service models and deployment models
- 3. AWS global infrastructure: Regions, Availability Zones and edge locations
- 4. Cloud economics: what you pay for on-premises vs in the cloud
- 5. The AWS Well-Architected Framework: six pillars
- 6. Moving to AWS: the Cloud Adoption Framework and migration strategies
Security and identity (domain 2, 30%)
- 7. The shared responsibility model: who secures what
- 8. IAM basics: users, groups, roles and policies
- 9. Protecting the root user, MFA and credentials
- 10. Identity at scale: IAM Identity Center, federation and cross-account access
- 11. Encryption and keys: protecting data at rest and in transit
- 12. Threat protection: Shield, WAF, GuardDuty, Inspector and Security Hub
Governance, ways of working and compute (domains 2 and 3)
- 13. Logging, auditing and compliance: CloudWatch, CloudTrail, Config and Artifact
- 14. Governing many accounts: Organizations, Control Tower and Service Catalog
- 15. Ways to use AWS: console, CLI, SDKs and infrastructure as code
- 16. Amazon EC2: virtual servers and instance types
- 17. Elasticity: Auto Scaling and Elastic Load Balancing
- 18. Containers and serverless: ECS, EKS, Fargate, Lambda and more
Storage, databases and networking (domain 3, 34%)
- 19. Block and file storage: EBS, instance store, EFS and FSx
- 20. Amazon S3: buckets, storage classes and lifecycle policies
- 21. Hybrid storage, backup and disaster recovery
- 22. Databases: RDS, Aurora, DynamoDB, ElastiCache and more
- 23. Networking: VPCs, subnets, gateways and security layers
- 24. Connecting and delivering: Route 53, CloudFront, VPN and Direct Connect
Analytics, AI, integration and more (domain 3)
Billing, pricing and support, then exam practice (domain 4, 12%)
- 29. Pricing models: On-Demand, Savings Plans, Reserved, Spot and Dedicated
- 30. Billing and cost tools: Budgets, Cost Explorer, Pricing Calculator and tags
- 31. AWS Support plans, Trusted Advisor and where to get help
- 32. Final review and exam day: every decision on one page
- 33. Mock exam 1
- 34. Mock exam 2 Exam Pack · $12
Extra practice: mock exams 3 and 4
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.
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.
Cedar Lane Books must keep invoices for EU customers inside the EU. How does it meet this requirement in Amazon S3?
Pick one answer.
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.
| Class | Use it for | First byte | Min. days | AZs |
|---|---|---|---|---|
| S3 Standard (default) | Data read often. | Milliseconds. | None. | 3 or more. |
| S3 Intelligent-Tiering | Unknown or changing access. S3 moves objects between tiers for you. | Milliseconds. | None. | 3 or more. |
| S3 Standard-IA | Read about once a month. | Milliseconds. | 30. | 3 or more. |
| S3 One Zone-IA | Read about once a month, and you can re-create it. | Milliseconds. | 30. | 1. |
| S3 Glacier Instant Retrieval | Archive read about once a quarter. | Milliseconds. | 90. | 3 or more. |
| S3 Glacier Flexible Retrieval | Archive read once or twice a year. | Minutes to 12 hours. | 90. | 3 or more. |
| S3 Glacier Deep Archive | Archive 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.
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.
- S3 Glacier Deep Archive: less than once a year
- S3 Standard: more than once a month
- S3 Glacier Instant Retrieval: about once a quarter
- S3 Glacier Flexible Retrieval: once or twice a year
- S3 Standard-IA: about once a month
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.
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.
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.
Watch it happen · 13 s
An invoice moves through Cedar Lane Books' lifecycle rule
Day 0: the invoice is uploaded to S3 Standard.
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.
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.
What S3 costs
Exam depth: know it cold.
With S3 you pay for what you use:
- Storage: gigabytes per month, priced by storage class.
- Requests: each upload, download and list call.
- Retrievals: a per-GB fee to read from the IA and Glacier classes.
- Data transfer out: data leaving S3 to the internet, after a small free monthly allowance. Data coming in from the internet is free.
- Extras you turn on, such as replication and management tools.
Lesson 29 puts these next to the other AWS pricing models.
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.
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.
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.
Worth keeping
- S3 stores objects in buckets: globally unique names, one Region each, eleven nines durability, objects up to 50 TB.
- Pick the class by access: Standard often, Intelligent-Tiering unknown, IA monthly, Glacier for archives.
- Glacier Instant Retrieval reads in milliseconds; Flexible Retrieval and Deep Archive need a restore first.
- Lifecycle rules move objects to colder classes and delete them on a schedule.
- 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.
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.
- [4]AWS: CLF-C02 Content Domain 3: Cloud Technology and Services
- [217]AWS: What is Amazon S3?
- [218]AWS: Amazon S3 objects overview
- [219]AWS: General purpose bucket naming rules
- [220]AWS: Data protection in Amazon S3
- [221]AWS: Understanding and managing Amazon S3 storage classes
- [222]AWS: Understanding S3 Glacier storage classes for long-term data storage
- [223]AWS: Understanding archive retrieval options
- [224]AWS: Managing the lifecycle of objects
- [225]AWS: Blocking public access to your Amazon S3 storage
- [226]AWS: Bucket policies for Amazon S3
- [227]AWS: Configuring default encryption
- [228]AWS: Retaining multiple versions of objects with S3 Versioning
- [229]AWS: Replicating objects within and across Regions
- [230]AWS: Hosting a static website using Amazon S3
- [231]AWS: Amazon S3 pricing