Interview Prep/AWS/S3, EBS and EFS

A volume restored from a snapshot is very slow for the first hour of a DR test.

AdvancedTroubleshootingS3, EBS and EFS
Answer

Likely causes → Snapshot restores are lazy-loaded: each block is fetched from S3 the first time it is read, so first reads have high latency.

Diagnose →

aws ec2 describe-fast-snapshot-restores --filters Name=snapshot-id,Values=snap-0abc
# on the instance: high await on first reads
iostat -x 5

Fix →

  1. Pre-warm by reading every block: sudo fio --filename=/dev/nvme1n1 --rw=read --bs=1M --iodepth=32 --ioengine=libaio --direct=1 --name=init
  2. For critical paths, turn on Fast Snapshot Restore (paid per AZ-hour): aws ec2 enable-fast-snapshot-restores --availability-zones us-east-1a --source-snapshot-ids snap-0abc
  3. Or use a provisioned initialization rate where supported

Prevent → Count hydration time in your RTO, and test DR with real reads, not just "the instance is running".

aws All AWS questions Roadmap: AWS core services

More on S3, EBS and EFS