Lesson 19 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
18 min
Block and file storage: EBS, instance store, EFS and FSx
Tell block storage from file storage and pick EBS, instance store, EFS or FSx for a workload.
By the end of this lesson you can
- Explain block, file and object storage in plain words
- Choose between Amazon EBS and instance store for an EC2 instance
- Choose Amazon EFS or Amazon FSx for shared files
- Spot the word in a question that picks the storage service
From earlier lessons · 1 of 2
Cedar Lane Books wants to run its stock-check app in containers without managing any servers. Which option fits?
Pick one answer.
From earlier lessons · 2 of 2
On Black Friday, Cedar Lane Books needs more web servers when traffic rises and fewer when it drops. Which service adds and removes the EC2 instances?
Pick one answer.
Cedar Lane Books' web servers now run on EC2. Next comes everything they save. The MySQL orders database needs a disk that never loses an order. The 14 stores share Windows folders of price lists and rotas. And a nightly job that resizes book covers needs scratch space it throws away. Three needs, three different kinds of storage.
Block, file and object storage
Exam depth: know it cold.
Storage comes in three shapes. Once you know the shape, the service follows.
- Block storage splits data into blocks of equal size, like a hard drive. One server formats it and uses it as its own disk. It's fast, so it suits operating systems and databases. On AWS: Amazon EBS and instance store.
- File storage shares folders and files over a network, like the shared drive at your office. Many servers open the same files at once. On AWS: Amazon EFS and Amazon FSx.
- Object storage keeps each item whole, as an object: the data, its metadata (labels that describe it) and a unique ID. Apps reach it over the web, and it scales without limit. On AWS: Amazon S3, next lesson.
Cedar Lane Books has ten Linux servers that must open and edit the same folders of files at the same time. Which type of storage fits this need?
Pick one answer.
Amazon EBS: a network disk for one instance
Exam depth: know it cold.
Amazon Elastic Block Store (Amazon EBS) gives an EC2 instance a network disk called a volume. You use it like a hard drive: install software, store files, run a database.
- It persists. The volume lives on its own, separate from the instance. Stop the instance, start it again, and the data is still there.
- It's tied to one Availability Zone. The instance and the volume must be in the same AZ. AWS copies each volume across several servers inside that AZ.
- One instance at a time, usually. You can attach several volumes to one instance. Multi-Attach lets one Provisioned IOPS SSD volume (io1 or io2) attach to several instances in the same AZ. Recognize the name only.
- Volume types, recognize only: SSD volumes for frequent small reads and writes, like databases and boot disks. HDD volumes for large streaming jobs that read lots of data in sequence.
EBS snapshots: backups you can move
Exam depth: know it cold.
An EBS snapshot is a point-in-time backup of a volume. Snapshots are incremental: after the first one, each saves only the blocks that changed.
AWS stores snapshots in Amazon S3, in buckets you can't see. Snapshot data is copied across every AZ in the Region. So you can restore a new volume in any AZ there. You can also copy a snapshot to another Region or another AWS account.
AWS doesn't take snapshots for you. Under the shared responsibility model, backups are your job. You can automate them with Amazon Data Lifecycle Manager or AWS Backup (lesson 21).
Cedar Lane Books runs its MySQL orders database on one EC2 instance. The database files need a low-latency disk attached to that instance, and the data must survive when the instance is stopped for maintenance. Which storage should it use?
Pick one answer.
Instance store: fast, free and temporary
Exam depth: know it cold.
An instance store is temporary block storage on disks physically attached to the host computer that runs your instance. There's no network between the instance and its disk.
- It suits data that changes often and that you can lose: buffers, caches, scratch files.
- It costs nothing extra. It's part of the instance price.
- Not every instance type has one, and you add it only at launch.
- The data survives a reboot. It's erased when the instance stops, hibernates or terminates.
So never keep the only copy of anything valuable there. Copy it to EBS, S3 or EFS first.
Each night, Cedar Lane Books resizes book covers on an EC2 instance. The job writes temporary files that it deletes when it finishes. The team wants local block storage at no charge beyond the instance itself. Which option meets these requirements?
Pick one answer.
Amazon EFS: shared files for Linux, no capacity planning
Exam depth: know it cold.
Amazon Elastic File System (Amazon EFS) is a managed, serverless file system that many servers share. It speaks NFS (Network File System), the file-sharing protocol Linux uses.
- Elastic: it grows and shrinks as you add and remove files. You never set a size, and you pay for the data you store.
- Shared across AZs: a Regional file system stores data in several AZs. Instances in different AZs read the same files, even if one AZ fails. A One Zone file system keeps data in a single AZ.
- Many compute types: EC2, containers on ECS, EKS and Fargate, and Lambda functions can all use it.
- Linux only: EFS doesn't support Windows instances.
Storage classes, recognize only: EFS Standard for files used often, EFS Infrequent Access for files read a few times a quarter, and EFS Archive for a few times a year. Lifecycle management moves files between them.
Amazon FSx: managed file systems you already know
Exam depth: know it cold.
Amazon FSx runs popular file systems for you, fully managed. AWS sets up the file servers, patches the software, replaces failed hardware and takes backups. You pick the FSx type that matches the file system your team already uses. Windows shares use SMB (Server Message Block), the Windows file-sharing protocol.
| FSx type | Choose it when |
|---|---|
| FSx for Windows File Server | Windows apps. Shared folders over SMB. Microsoft Active Directory sign-in. |
| FSx for NetApp ONTAP | You already run NetApp ONTAP storage on premises. Recognize it. |
| FSx for OpenZFS | You're moving ZFS or other Linux file servers without changing apps. Recognize it. |
Know FSx for Windows File Server cold. The other two only need recognizing.
Cedar Lane Books' 14 stores use Windows PCs with mapped drives to shared folders. Staff sign in with Microsoft Active Directory. The company wants these shares on AWS with the LEAST operational overhead. Which service should it use?
Pick one answer.
Choosing block or file storage
| The scenario says | Pick |
|---|---|
| A disk for one EC2 instance. Data must survive a stop. | Amazon EBS |
| Temporary, scratch, cache. No extra cost. | Instance store |
| Back up a volume, or move it to another AZ or Region. | EBS snapshot |
| Many Linux instances share files. Grows on its own. | Amazon EFS |
| Windows shares, SMB, Active Directory. | Amazon FSx for Windows File Server |
| Moving NetApp ONTAP or ZFS file servers. | FSx for NetApp ONTAP or FSx for OpenZFS |
| Files, images or backups reached over the web. | Amazon S3 (next lesson) |
Decision rule: one instance needs a disk, so choose EBS, or instance store if the data is temporary. Many servers need the same files, so choose EFS for Linux or FSx for Windows.
Match
Match each Cedar Lane Books need to the storage that fits
Pick an item on the left, then its match on the right.
Exam-style practice
A company runs Linux web servers in three Availability Zones. All servers must read and write the same files. Storage must grow automatically without capacity planning. Which AWS service meets these requirements?
Pick one answer.
A company wants a point-in-time backup of an EBS volume that it can later use to create the same volume in a different AWS Region. What should it use?
Pick one answer.
A developer saves important customer files on an EC2 instance's instance store. Which event erases those files?
Pick one answer.
Worth keeping
- Block storage is a disk for one server, file storage is a shared folder, and object storage keeps whole objects reached over the web.
- EBS persists and lives in one AZ. Snapshots back it up and move it to other AZs and Regions.
- Instance store is free and temporary: it survives a reboot but not a stop.
- Shared files for Linux: EFS. Windows, SMB or Active Directory: FSx for Windows File Server.
- Look for the deciding word: temporary, persists, shared, Linux or Windows.
On the job
A store manager at Cedar Lane Books asks the project manager a plain question: "If the server breaks, do we lose the rotas?" Now the PM can answer it.
The rotas sit on FSx for Windows File Server, where AWS handles failed hardware and takes daily backups. The orders database sits on EBS, with snapshots on a schedule. The cover-resizing job uses instance store, and that's fine, because its files are meant to be thrown away. Knowing which data lives where turns a scary question into a two-minute answer.
Book covers, seven years of invoices and nightly exports don't need a disk or a shared drive. Next lesson: Amazon S3, its storage classes, and the lifecycle rules that move old data somewhere cheaper on their own.
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
- [7]AWS: CLF-C02 Out-of-Scope AWS Services
- [170]AWS: Instance store temporary block storage for EC2 instances
- [204]AWS: What's the Difference Between Block, Object, and File Storage?
- [205]AWS: What is Amazon Elastic Block Store?
- [206]AWS: Amazon EBS volumes
- [207]AWS: Amazon EBS volume types
- [208]AWS: Attach an EBS volume to multiple EC2 instances using Multi-Attach
- [209]AWS: Amazon EBS snapshots
- [210]AWS: Preserve data when an instance is terminated
- [211]AWS: Data persistence for Amazon EC2 instance store volumes
- [212]AWS: What is Amazon Elastic File System?
- [213]AWS: Features of Amazon EFS
- [214]AWS: What is FSx for Windows File Server?
- [215]AWS: What is Amazon FSx for NetApp ONTAP?
- [216]AWS: What is Amazon FSx for OpenZFS?