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

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 →

  1. Create an AMI from an instance: aws ec2 create-image --instance-id i-0abc --name web-v12
  2. Snapshots back EBS volumes and are incremental
  3. Instance store data is lost on stop or termination
  4. 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.

aws All AWS questions Roadmap: AWS core services

More on EC2, Auto Scaling and Load Balancing