Interview Prep/AWS/EC2, Auto Scaling and Load Balancing

How do EBS snapshots work and what is lazy loading?

AdvancedConceptEC2, Auto Scaling and Load Balancing
Answer

Snapshots are stored in S3 (managed by AWS) and are incremental at block level: the first is full, later ones store changed blocks, and deleting an older snapshot keeps data still referenced by newer ones. A volume restored from a snapshot is usable immediately but blocks are fetched lazily from S3 on first read, causing high latency on first access.

Mitigate with Fast Snapshot Restore (pre-warmed per AZ, billed) or by pre-reading with fio/dd for critical restores.

aws All AWS questions Roadmap: AWS core services

More on EC2, Auto Scaling and Load Balancing