What is the difference between an AMI, a snapshot and an instance store?
BeginnerScenarioEC2, Auto Scaling and Load Balancing
Answer
Situation read → AMI is a template, a snapshot is a block-level backup in S3, instance store is ephemeral local disk.
What I'd do →
- Create an AMI from an instance:
aws ec2 create-image --instance-id i-0abc --name web-v12 - Snapshots back EBS volumes and are incremental
- Instance store data is lost on stop or termination
- Use it only for caches or scratch
Why → Knowing which storage persists is basic to not losing data.
Interview tip → EBS persists after stop; instance store does not.