devHọc Dev

Week 1 - Day 5: EBS Deep Dive, EFS/FSx and AWS Backup

Week 1 – Day 5

This lesson combines 3 topics: EBS Deep Dive, EFS and FSx, AWS Backup.

Learning Objectives

  • Understand the performance characteristics of each EBS type in depth
  • Master how to calculate IOPS and throughput requirements
  • Know about Fast Snapshot Restore and Snapshot Archive
  • Apply EBS Multi-Attach and cluster filesystems
  • Understand EFS: managed multi-AZ NFS
  • Distinguish the 4 FSx flavors: Windows, Lustre, NetApp ONTAP, OpenZFS
  • Master EFS storage classes and performance modes
  • Know when to choose EFS vs FSx vs S3
  • Understand AWS Backup: a centralized backup service
  • Create a Backup Plan with a lifecycle policy
  • Cross-region and cross-account backup
  • Apply Vault Lock and Backup Audit

Part 1: EBS Deep Dive

1. Recap of EBS Volume Types

TypeIOPS maxThroughput maxSizeUse case
gp3 (new default)80,0002,000 MB/s1 GB - 64 TBGeneral-purpose
gp2 (legacy)16,000250 MB/s1 GB - 16 TBOld general-purpose
io2 Block Express256,0004,000 MB/s4 GB - 64 TBCritical, highest perf
io1 (legacy)64,0001,000 MB/s4 GB - 16 TBLegacy
st1500500 MB/s125 GB - 16 TBBig data, log throughput
sc1250250 MB/s125 GB - 16 TBCold archive HDD

Note on numbers: gp3 used to be capped at 16,000 IOPS / 1,000 MB/s / 16 TB — the exam may still use the old numbers. AWS docs now list only io2 Block Express for io2 (256,000 IOPS requires a Nitro instance; other instances are limited to 64,000 provisioned IOPS).

2. gp3 — The new default

Characteristics

  • Baseline: 3,000 IOPS, 125 MB/s (for any size)
  • You can provision more:
    • IOPS: up to 80,000 ($/IOPS-month) — old limit: 16,000
    • Throughput: up to 2,000 MB/s ($/MB/s-month) — old limit: 1,000 MB/s
  • IOPS and throughput are independent of storage size
  • ~20% cheaper than gp2

Migration from gp2 to gp3

  1. Modify volume (no downtime)
  2. Set baseline IOPS/throughput
  3. Can be adjusted live without stopping EC2

3. gp2 — Tied to size

IOPS rule

IOPS = 3 × Volume Size (GB), max 16,000

Examples:
- 100 GB → 300 IOPS baseline (burst 3,000)
- 1,000 GB → 3,000 IOPS
- 5,334 GB → 16,000 IOPS (cap)

Burst Bucket (for volumes < 1,000 GB)

  • Bursts up to 3,000 IOPS for a limited time
  • Initialized with 5.4M I/O credits (enough for 30 minutes of burst)
  • Refills while idle

Why gp3 replaces gp2

  • gp2 IOPS depends on size → to get more IOPS you must buy excess size
  • gp3: decoupled, buy exactly what you need
  • gp3 is cheaper

4. io2 and io2 Block Express

io2

  • Designed for mission-critical workloads (database, ERP)
  • IOPS:GB ratio: up to 500:1
  • 99.999% durability (5 nines) — much higher than the other types (gp2/gp3/io1/st1/sc1: 99.8-99.9% durability)
  • Cost premium over gp3 (~3x)

io2 Block Express

  • Next-gen io2
  • Max 256,000 IOPS, 4,000 MB/s, 64 TB
  • Sub-millisecond latency
  • Use case: SAP HANA, Oracle/SQL Server extreme workloads
  • Only on newer Nitro instances (R5b, X2idn...)

Provisioned IOPS pricing

  • io1/io2: charged per provisioned IOPS + per GB
  • Costs a lot if you over-provision

5. st1 and sc1 (HDD)

st1 (Throughput Optimized HDD)

  • Sequential workloads (read/write large blocks)
  • Big data, log processing, ETL
  • Max 500 MB/s, 500 IOPS
  • Cannot use as boot volume

sc1 (Cold HDD)

  • Infrequent access sequential
  • Max 250 MB/s, 250 IOPS
  • Cheapest EBS
  • Cannot use as boot volume

Important note

  • HDD volumes cannot be used as boot volumes
  • Random I/O workloads (database) → don't use HDD, too slow

6. EBS Resize (Elastic Volumes)

Features

  • Increase size (never decrease)
  • Change volume type (gp2 → gp3)
  • Modify IOPS/throughput (gp3, io1, io2)
  • No downtime — live operation

Workflow

# Modify volume
aws ec2 modify-volume \
  --volume-id vol-xxxx \
  --size 200 \
  --volume-type gp3 \
  --iops 6000 \
  --throughput 250

# On the EC2 instance, extend the filesystem
sudo growpart /dev/nvme0n1 1
sudo xfs_growfs /  # Or resize2fs for ext4

Cooldown

  • Only 1 modify operation per 6 hours per volume
  • Must wait for the state to return to "in-use"

7. EBS Performance Tuning

Throughput vs IOPS

  • IOPS (Input/Output Per Second): number of transactions
  • Throughput (MB/s): amount of data
  • Relationship: Throughput = IOPS × Block Size

Example

  • 16,000 IOPS × 16 KB block = 250 MB/s
  • 16,000 IOPS × 256 KB block = 4,000 MB/s in theory, but capped by the volume's max throughput (gp3: 2,000 MB/s)
  • → Larger block size → higher throughput, until you hit the throughput ceiling of the volume or the instance

Performance bottleneck

  • EC2 instance throughput limit: check the EBS bandwidth of the instance type
  • Example: m5.large EBS bandwidth is only ~593 MB/s burst → a stronger EBS volume still can't exceed it
  • Sizing: choose an instance type whose EBS bandwidth ≥ volume throughput

Pre-warming EBS (init)

  • A volume created from a snapshot has "lazy loaded" blocks — the first access to a block is slow
  • 2 ways to warm up:
    • fio or dd to read the whole volume
    • Fast Snapshot Restore (FSR)

8. Fast Snapshot Restore (FSR)

Definition

FSR = enables a snapshot to deliver full performance from the start, no warm-up needed.

Characteristics

  • Enabled per snapshot per AZ
  • Cost: $/data-service-unit-hour (~$0.75/hour per snapshot per AZ)
  • Automatically disabled when the snapshot is deleted

Use case

  • Fast DR drills
  • Critical workloads that must be ready immediately on restore
  • An ASG creating instances from a snapshot that need good perf right away

9. EBS Snapshot Archive

Definition

Snapshot Archive = a cheaper tier for long-term snapshots.

Characteristics

  • 75% cheaper than standard snapshots
  • Min retention: 90 days
  • Restore time: 24-72 hours
  • A restored snapshot becomes standard (billed at standard rates from the restore)

Use case

  • Compliance archive
  • Snapshots not accessed for months
  • Long-term backup retention

Comparison

TypeCostRestore time
Standard snapshot$$Instant (incremental)
Snapshot Archive$24-72 hours

10. Recycle Bin for EBS

Definition

Recycle Bin = "undo delete" for EBS volumes, snapshots, AMIs.

Setup

  • Create a Retention Rule: 1-365 days (for snapshots/AMIs), 1-365 (for volumes — a recent feature only)
  • Filter by tags
  • When deleted, the resource goes to the Recycle Bin instead of disappearing for good
  • Can be restored within the retention period

Use case

  • Protect against accidental delete
  • Compliance "delete protection"
  • DR scenario

11. EBS Multi-Attach (io1/io2)

Characteristics

  • 1 io1/io2 volume attaches to up to 16 EC2 instances in the same AZ
  • All instances have full read/write access
  • The filesystem must be cluster-aware (GFS2, OCFS2)
  • CANNOT be used with ext4, XFS (it will corrupt!)

Use case

  • Cluster databases with shared block storage
  • Active-active HA applications
  • Failover scenarios (the passive node can read state)

Architecture

┌────────AZ-1a─────────┐│││EC2-1─┐│││││EC2-2─┼─►io2vol│││(Multi-││EC2-3─┘Attach)│││└────────────────────────┘

Limitations

  • Same AZ (not cross-AZ)
  • Same VPC
  • Nitro-based instances
  • io1/io2 (NOT gp3)

12. EBS Snapshot Sharing

Share a snapshot cross-account

  • Unencrypted snapshot: simple sharing, a few clicks
  • Encrypted snapshot:
    • Must use a Customer-Managed KMS Key (not AWS-managed)
    • Grant the target account access to the KMS key
    • Share the snapshot
    • Target account: copy the snapshot, optionally re-encrypt with its own key

Public snapshot (be careful!)

  • You can share a snapshot publicly with every AWS account
  • RISK: data leak if made public by mistake
  • Best practice: Block public access for snapshots at the region level

13. EBS Use Case Decision Tree

Workload?│├──Database(transactional)│├──≤80,000IOPS,nohighSLAneeded→gp3(olderexams:16,000)│├──Missioncritical,99.999%durability→io2BlockExpress│└──>80,000IOPS,sub-mslatency→io2BlockExpress│├──Bootvolume│└──gp3(newdefault,cheap)│├──Bigdata/log(sequential,throughput-heavy)│└──st1│├──Coldarchive│└──sc1(orreplacewithS3Glacierifpossible)│├──Sharedblockstorage(clusterfilesystem)│└──io2Multi-Attach(withGFS2)│└──PredictableIOPSwithoptimizedcost└──gp3withprovisionedIOPS/throughput

Part 2: EFS and FSx

1. File Storage Options Overview

┌─────────────────────────────────────────────────────────┐│AWSManagedFileStorage│├─────────────────────────────────────────────────────────┤│││EFS(ElasticFileSystem)││├──NFSv4protocol││├──Linux-only││├──Multi-AZ,auto-scaling││└──PayperGBused││││FSxforWindowsFileServer││├──SMBprotocol││├──Windows-native││└──ActiveDirectoryintegration││││FSxforLustre││├──POSIX,high-performanceHPC││└──HundredsGB/sthroughput││││FSxforNetAppONTAP││├──Multi-protocol(NFS,SMB,iSCSI)││└──Enterprisefeatures(snapshot,dedup)││││FSxforOpenZFS││├──NFSprotocol││└──ZFSfeatures(snapshots,cloning)│││└─────────────────────────────────────────────────────────┘

2. EFS (Elastic File System)

Characteristics

  • NFSv4.1 file system, Linux only
  • Auto-scaling: grows/shrinks automatically, no provisioning
  • Multi-AZ: data replicated across AZs (Standard)
  • POSIX-compliant (full Unix permissions)
  • Multi-attach: thousands of EC2 instances mount it at the same time
  • Pay-per-use: you only pay for stored data (no pre-provisioning)

Use cases

  • Web applications with many EC2 instances that need shared content (WordPress)
  • CMS / Content management
  • Data sharing within a team / DevOps
  • Lift-and-shift Linux apps that need a shared filesystem
  • Big data analytics

Architecture

┌────────────────Regionus-east-1────────────────┐│││AZ-1aAZ-1bAZ-1c││┌──────────┐┌──────────┐┌──────────┐│││Mount││Mount││Mount││││Target││Target││Target│││└────┬─────┘└────┬─────┘└────┬─────┘│││││││└───────────────┼───────────────┘││▼││┌──────────────┐│││EFS││││(replicated││││acrossAZs)│││└──────────────┘│└──────────────────────────────────────────────────┘

Mount Targets

  • 1 Mount Target per AZ in the VPC
  • An ENI with a private IP
  • Mount via DNS: <fs-id>.efs.<region>.amazonaws.com

Mount example

# Install amazon-efs-utils
sudo yum install -y amazon-efs-utils

# Mount
sudo mount -t efs -o tls fs-1234567:/ /mnt/efs

# Or in /etc/fstab
fs-1234567:/ /mnt/efs efs _netdev,tls 0 0

3. EFS Storage Classes

4 storage classes

ClassAZLatencyCost
StandardMulti-AZLow$$$$$
Standard-IAMulti-AZHigher (cold)$$$
One ZoneSingle-AZLow$$$
One Zone-IASingle-AZHigher (cold)$

EFS Lifecycle Management

  • Auto-moves files not accessed for N days to the IA tier
  • N = 7, 14, 30, 60, 90, 180, 270, 365 days
  • Move back to Standard on access (configurable)

Use case

  • Standard: Production, active data
  • Standard-IA: Backup files, accessible archived data
  • One Zone: Dev/test, reproducible data
  • One Zone-IA: Long-term archive where single-AZ is OK

4. EFS Performance Modes

2 modes (chosen at creation)

  • Low latency, most use cases
  • Now supports up to 250,000 read IOPS / 50,000 write IOPS with Elastic Throughput (the old limit of ~7,000 ops/second was raised in 2023 — older materials may still show this number)
  • Web servers, CMS
Max I/O (previous generation)
  • Higher latency per op, high aggregate throughput for extremely parallel workloads
  • Big data analytics, media processing
  • CANNOT be changed after creation; AWS now recommends General Purpose for all new workloads
  • AWS added the Elastic Throughput mode as the default
  • Auto-scales throughput, pay per usage
  • Replaces Bursting/Provisioned for most workloads

Throughput Modes (legacy/optional)

ModeHow it works
Bursting (legacy)Throughput scales with storage size
ProvisionedSet throughput independently of size
Elastic (new, recommended)Auto-scale, pay per use

5. EFS Access Points

Definition

Access Point = an enforced root directory + user/group ID for each application.

Use case

  • Multiple apps share 1 EFS with strict separation
  • POSIX user enforcement per app

Example

  • App A: Access Point /app-a, UID 1000
  • App B: Access Point /app-b, UID 2000
  • Same EFS, but each app only sees its own directory

6. EFS with On-Premises

EFS can be mounted from on-prem via:

  • Direct Connect
  • VPN
  • VPC Peering

Use case

  • Sync data on-prem ↔ AWS
  • Migrating data to the cloud
  • Hybrid burst compute

7. FSx for Windows File Server

Characteristics

  • SMB protocol (Windows native)
  • Integrates with Active Directory (AWS Managed AD or self-hosted)
  • Windows ACLs (NTFS permissions)
  • DFS Namespaces support
  • Multi-AZ option
  • Storage: SSD (1-100,000 IOPS) or HDD
  • Snapshots, shadow copies (Windows previous versions)
  • Automatic + on-demand backups

Use cases

  • Lift-and-shift Windows apps that need a shared filesystem
  • Windows user home directories
  • Media workflows (Avid, Adobe Premier)
  • Shared cluster data (SQL Server FCI, SharePoint)

Performance

  • Up to 2 GB/s throughput, 80,000 IOPS
  • Sub-ms latency

8. FSx for Lustre

Characteristics

  • Parallel POSIX filesystem for HPC
  • Hundreds of GB/s throughput, millions of IOPS
  • Designed for:
    • Machine Learning training
    • HPC (genomics, oil & gas, fluid dynamics)
    • Video rendering
    • Financial modeling

2 deployment types

  • Scratch File System: Temporary, no replication, max performance
  • Persistent File System: Long-term, replicated, durable

S3 Integration

  • Auto-import from S3 (lazy-loads files on access)
  • Auto-export to S3 after modification
  • Pattern: training data in S3, mount FSx Lustre, train, results sync back to S3 automatically

Architecture

S3Bucket─►FSxLustre(read-through)─►EC2cluster─►HPCcompute↑│└───────Auto-export─────────────┘

9. FSx for NetApp ONTAP

Characteristics

  • Multi-protocol: NFS (v3/4.1/4.2), SMB, iSCSI
  • Multi-OS: Linux, Windows, macOS
  • ONTAP features: SnapMirror, SnapVault, dedup, compression
  • Multi-AZ HA
  • Automatic data tiering: SSD (hot) + capacity pool (cold)

Use cases

  • Replicating on-prem NetApp to AWS
  • Multi-protocol shared storage
  • Enterprise apps (Oracle DB, shared SAP HANA)

10. FSx for OpenZFS

Characteristics

  • NFS protocol (v3, v4, v4.1, v4.2)
  • ZFS features: snapshots, cloning, compression
  • Cost-effective compared to NetApp ONTAP
  • Up to 1 million IOPS, 21 GB/s throughput

Use cases

  • Lift-and-shift on-prem ZFS workloads
  • Media processing
  • Web hosting
  • Software development workspace

11. Comparison of all options

OptionProtocolOSMulti-AZUse case
EBSBlockAllNo (per AZ)DB, boot volume
EFSNFSLinuxYesShared Linux files
FSx for WindowsSMBWindowsYes (option)Windows shared
FSx for LustrePOSIXLinuxYes (Persistent)HPC, ML
FSx for ONTAPNFS, SMB, iSCSIAllYesEnterprise multi-protocol
FSx for OpenZFSNFSLinux/MacYes (HA option)ZFS workload
S3HTTP APIAllYes (≥3 AZs in the same region)Object storage

12. Decision Tree

Needsharedfilestorage?│├──Linuxecosystem?│├──SimplesharedNFS,multi-AZ││└──EFS│├──HPC/ML,highthroughput││└──FSxforLustre│└──ZFSfeaturesneeded│└──FSxforOpenZFS│├──Windowsecosystem(AD,SMB)?│└──FSxforWindowsFileServer│├──Multi-protocol(mixLinux+Windows+iSCSI)?│└──FSxforNetAppONTAP│└──ObjectstorageOK?└──S3(cheaper,scalable,nomountneeded)

Part 3: AWS Backup

1. AWS Backup Overview

AWS Backup = a fully managed centralized backup service for AWS services.

Why use AWS Backup

  • Centralized: one place to manage backups for many services
  • Compliance: policy-based, audit ready
  • Cross-region/cross-account: DR built-in
  • Lifecycle: automatically transitions and expires backups
  • Vault Lock: immutable backups against ransomware

Supported services (2025)

  • EC2 (instance + EBS volume)
  • EBS standalone
  • RDS, Aurora
  • DynamoDB
  • EFS, FSx (all flavors)
  • Storage Gateway (Volume Gateway)
  • Redshift
  • Neptune, DocumentDB
  • VMware Cloud on AWS workloads
  • S3 (selective backup)
  • AWS Organizations: backup across accounts

2. Core Components

Backup Plan

  • Schedule + Rules for backup
  • Applied to Resources (selected by tag or resource type)

Backup Vault

  • A container storing backups (recovery points)
  • Each vault has an encryption key (KMS)
  • An access policy limits who can use the vault

Recovery Point

  • 1 snapshot/backup instance of a resource at a point in time
  • Stored in a Backup Vault

Backup Job

  • An instance of a backup operation
  • Status: created, running, completed, failed, aborted

Restore Job

  • An instance of a restore operation from a recovery point

3. Backup Plan Configuration

Components

Backup Plan:
  Plan Name: daily-prod-backups
  Rules:
    - Rule Name: daily-rule
      Schedule: cron(0 5 ? * * *)   # 5 AM UTC daily
      Window:
        Start: 60 minutes
        Complete within: 120 minutes
      Lifecycle:
        Move to Cold Storage: 30 days  # Glacier tier
        Delete: 365 days
      Backup Vault: prod-vault
      Copy Actions:
        - Destination: cross-region-vault (us-west-2)
          Lifecycle: { delete: 90 days }

Resource Assignment

  • Tag-based: every resource tagged Backup=true is included
  • Resource ID: Specific instance/volume
Resource Selection:
  IamRoleArn: arn:aws:iam::111:role/AWSBackupDefaultServiceRole
  Resources:
    - "arn:aws:ec2:*:*:instance/*"
  Conditions:
    StringEquals:
      "aws:ResourceTag/Backup": "true"

4. Backup Lifecycle

Storage tiers

  • Warm storage (default): immediate access
  • Cold storage (Glacier-equivalent): cheaper but slower to retrieve

Rules

  • Min 90 days in cold storage (for every backup moved to cold)
  • Min 1 day in warm before moving to cold
  • Total minimum lifecycle (warm + cold) = 90 days

Example

Warm 7 days → Cold 90 days → Delete
Total: 97 days minimum

Warm 30 days → Cold 60 days?  → INVALID (cold < 90 days)

5. Cross-Region Backup (Copy)

Configuration

  • In the Backup Plan, add a Copy Action:
    • Destination Vault (another Region)
    • A separate lifecycle for the copy

Use case

  • Disaster Recovery: backups stored in another region to survive a region-wide failure
  • Compliance (data in multiple geos)

Cost

  • Cross-region data transfer charge
  • Storage cost in both regions

6. Cross-Account Backup

Setup (requires AWS Organizations)

  1. Enable Backup in the delegated administrator account
  2. Trust accounts in the organization
  3. Backup Plan in the management/delegated account
  4. Backups stored in the central account vault

Use case

  • DR: back up from the production account to a security/DR account
  • Compliance: a separate backup vault account (isolation)
  • Ransomware protection: backups cannot be accessed from the production account

7. Backup Vault Lock

Definition

Vault Lock = WORM (Write Once Read Many) for backups: NOBODY can delete them during the retention period.

2 modes

ModeBypassModify policy
Governance ModeUsers with the IAM permission backup:DeleteBackupVaultLockConfiguration can remove the lockYes
Compliance ModeNOBODY (including root)No (after the grace period)

Don't confuse: s3:BypassGovernanceRetention is a permission of S3 Object Lock, unrelated to AWS Backup Vault Lock.

Grace period

  • Compliance Mode: has a minimum grace period of 3 days (72 hours), configurable to be longer, for testing before locking
  • After the grace period → Vault Lock is permanent, cannot be removed

Use case

  • Ransomware protection
  • Regulatory compliance (SEC 17a-4, HIPAA, FINRA)
  • Audit-proof backups

8. Restore

Process

  1. Select a Recovery Point in the Backup Vault
  2. Configure restore options:
    • EC2: Restore as a new instance or replace
    • EBS: Create a new volume from the snapshot
    • RDS: Restore as a new DB instance
    • EFS: Restore to a new EFS or the same EFS (selective restore)
    • DynamoDB: Restore as a new table
  3. IAM role for restore
  4. Start the restore job

Cross-Region Restore

  • Restore from a recovery point in another Region back to the source Region
  • Or restore into another Region

Restore Testing (2024)

  • Restore Testing Plan: AWS Backup automatically restores backups into a sandbox account/region to verify them
  • Validates backup integrity periodically

9. AWS Backup Audit Manager

Definition

Audit Manager for Backup = continuous compliance reporting for backup policies.

Framework controls

  • 30+ pre-defined controls:
    • "Resources are backed up at least daily"
    • "Backups have cross-region copy"
    • "Backup retention ≥ 30 days"
    • "Vault Lock enabled"
  • Custom controls

Output

  • Compliance reports
  • Dashboard in the Backup console
  • CloudWatch events when non-compliant

10. AWS Backup with Organizations

Backup Policies (Organizations)

  • Centrally define backup plans across OUs/Accounts
  • Inherited from the root OU → child OU

Example

RootOU├──ProductionOU│├──BackupPolicy:dailybackup,30dayretention,cross-region│└──Accounts:Prod-1,Prod-2└──DevOU└──Accounts:Dev-1,Dev-2(nomandatorybackup)

11. Use Case Examples

Example 1: Back up EBS volumes daily, keep for 90 days

Backup Plan: ebs-daily
Schedule: 2 AM UTC
Lifecycle: Delete after 90 days
Resources: tag Backup=true

Example 2: Cross-region DR backup

Backup Plan: prod-dr
Rule 1: 
  Schedule: 12 AM UTC daily
  Local vault: us-east-1
  Lifecycle: 30 days warm + cold
Copy Action:
  Destination: us-west-2 vault
  Lifecycle: 7 days warm only

Example 3: Immutable 7-year compliance archive

Backup Plan: compliance-archive
Schedule: monthly (cron 0 0 1 * ? *)
Lifecycle: 30 days warm → cold for 7 years
Vault: vault-lock-compliance-mode

12. Best Practices

Strategy

  1. Tag resources systematically (Backup=true, Tier=production)
  2. Test restores quarterly (Restore Testing plan)
  3. Cross-region for critical production
  4. Cross-account for ransomware protection
  5. Vault Lock Compliance Mode for compliance data
  6. Monitor backup jobs with CloudWatch alarms
  7. Audit periodically with Backup Audit Manager

Cost optimization

  • Lifecycle to cold storage for old backups
  • Right-size retention (don't keep too long)
  • Delete old recovery points you don't need

Review Questions

  1. What is the gp3 baseline IOPS? Does it depend on size?

    Show answer

    The gp3 baseline is 3,000 IOPS and 125 MB/s throughput — independent of size (even a 1 GB volume gets 3,000 IOPS). You can provision more, up to 80,000 IOPS and 2,000 MB/s (extra charge; the exam may still use the old 16,000 IOPS and 1,000 MB/s). This is the main difference from gp2: the gp2 baseline = 3 × size in GB, with a minimum of 100 IOPS and a maximum of 16,000; volumes < 1,000 GB can only burst temporarily to 3,000 IOPS using I/O credits, and need ≥ 1,000 GB for a 3,000 IOPS baseline.

  2. Which volume types support Multi-Attach?

    Show answer

    Only io1 and io2 Block Express support Multi-Attach. Requirements: all instances must be in the same AZ, same Region. Up to 16 instances. gp2, gp3, st1, sc1 are not supported. Multi-Attach requires a cluster-aware filesystem or application-level locking to avoid data corruption from concurrent writes.

  3. What is the Snapshot Archive minimum retention? Restore time?

    Show answer

    Minimum 90 days retention in the Archive tier. Restore time: 24-72 hours (to restore the snapshot from archive to the standard tier before it can be used). Snapshot Archive saves up to 75% compared to standard snapshot pricing — suitable for compliance/audit snapshots that must be kept long but are rarely accessed. Not suitable for DR if you need a fast restore.

  4. When resizing an EBS volume, do you need to stop the EC2 instance?

    Show answer

    No — EBS Elastic Volumes allow you to modify a volume live (resize, change type, change IOPS/throughput) without stopping EC2. However, after AWS finishes the resize, you must extend the filesystem from within the OS (resize2fs for ext4, xfs_growfs for XFS) to use the new space. Note: you can only increase size, not decrease it.

  5. Can HDD volumes (st1, sc1) be used as boot volumes?

    Show answer

    No. st1 (Throughput Optimized HDD) and sc1 (Cold HDD) cannot be boot volumes — they can only be additional data volumes. A boot volume must be an SSD type: gp2, gp3, io1, or io2. HDD volumes suit big data, sequential workloads, log processing — not an OS boot, because the OS needs random IOPS.

  6. Does EFS support Windows?

    Show answer

    No — EFS uses the NFS protocol (NFSv4.1/4.0) and only supports Linux-based instances. For a shared filesystem for Windows, use FSx for Windows File Server (SMB protocol, Active Directory integration). FSx for NetApp ONTAP supports both NFS and SMB, so it can serve both Linux and Windows.

  7. What use case is FSx for Lustre for?

    Show answer

    FSx for Lustre is for High Performance Computing (HPC) workloads that need extremely high throughput: Machine Learning training, computational simulations, financial modeling, media processing. Speeds reach hundreds of GB/s and millions of IOPS. It can be linked to an S3 bucket to lazy-load data — files are only loaded from S3 when first accessed.

  8. How many EFS Mount Targets are there per AZ?

    Show answer

    1 Mount Target per AZ. Each Mount Target has an IP address in a subnet of that AZ. EC2 instances in the AZ mount EFS through that AZ's Mount Target to optimize latency. An EFS filesystem can have Mount Targets in multiple AZs (and multiple VPCs via VPC peering or Transit Gateway).

  9. What does FSx for Windows integrate with for authentication?

    Show answer

    Microsoft Active Directory (AD) — both AWS Managed Microsoft AD and on-premises AD. FSx for Windows is a fully managed Windows file system supporting the SMB protocol, DFS Namespaces, DFS Replication, and Windows ACLs. Authentication via AD lets you use existing Windows credentials without managing users separately.

  10. When do you choose EFS vs S3?

Show answer

Choose EFS when: you need a shared filesystem across many Linux EC2 instances at once (concurrent read/write), applications need POSIX filesystem semantics (file locks, directory structure), workloads like CMS or web servers using an NFS mount. Choose S3 when: object storage, data lake, static files, backup, archival, HTTP access, cross-Region distribution, serverless access from Lambda. S3 is much cheaper for cold/archival data.

  1. Which services can an AWS Backup vault hold backups for?
Show answer

AWS Backup supports many services: EC2, EBS, RDS (Aurora, MySQL, PostgreSQL...), DynamoDB, EFS, FSx, S3, DocumentDB, Neptune, VMware workloads on Outposts. It is a centralized backup service — one Backup Plan can cover many resource types with consistent policies instead of configuring backup separately for each service.

  1. What is the minimum retention in cold storage?
Show answer

90 days minimum retention when moving a backup to the cold storage tier in AWS Backup. This is similar to Glacier — for backups that must be kept long-term but are rarely restored. Deleting before 90 days incurs a charge for the remainder. Cold storage is significantly cheaper than warm storage for long-term retention.

  1. How does Vault Lock Compliance Mode differ from Governance Mode?
Show answer

Compliance Mode: once locked, nobody (including the root account and AWS Support) can change or delete backups before the retention period ends — fully immutable. Governance Mode: administrators can manage backups (they can override the lock if they have the backup:DeleteBackupVaultLockConfiguration permission). Compliance Mode is for regulatory requirements (HIPAA, SEC); Governance Mode is for operational protection with override capability.

  1. Does cross-account backup require AWS Organizations?
Show answer

Yes — cross-account backup requires the accounts to be in the same AWS Organizations. The organization's management account must enable cross-account backup in the AWS Backup settings. This is a DR best practice: back up to a separate account so ransomware or accidental deletion cannot affect both the source and the backup at the same time.

  1. What is Backup Restore Testing used for?
Show answer

Backup Restore Testing (launched in 2023) automatically tests the usability of backups by periodically restoring and verifying them. It solves a common problem: you have backups but don't know whether they can be restored until disaster strikes. You can configure the schedule, resource type, cleanup after the test, and alerts when a restore fails — ensuring your RTO/RPO objectives are actually met.

Hands-on Exercises

Part 1: EBS Deep Dive

  • Migrate 1 gp2 volume to gp3, observe the cost reduction
  • Resize gp3 from 10 GB → 30 GB live, extend the filesystem
  • Create a 100 GB io2 volume with 10,000 IOPS, attach it to an m5.xlarge EC2 instance
  • Enable Fast Snapshot Restore for 1 snapshot, restore and measure performance vs no FSR
  • Set up a Recycle Bin retention of 7 days for EBS snapshots
  • Test Multi-Attach of an io2 volume with 2 EC2 instances (careful with the filesystem!)

Part 2: EFS and FSx

  • Create an EFS file system with Lifecycle: move to IA after 30 days
  • Mount EFS on 2 EC2 instances (different AZs), write a file from EC2-1 and read it from EC2-2
  • Create FSx for Windows File Server, join the AD domain
  • Set up FSx for Lustre with S3 integration (auto-import)
  • Compare the price of EFS Standard vs One Zone-IA for 1 TB

Part 3: AWS Backup

  • Create a Backup Vault with KMS encryption
  • Create a Backup Plan: daily at 2 AM, 7-day retention, for tag Backup=true
  • Tag 1 EBS volume with Backup=true, observe the backup job
  • Set up a cross-region copy to another Region
  • Enable Vault Lock Governance Mode, 30-day retention
  • Restore an EBS volume from a recovery point

References


Next lesson →