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

What is the difference between stopping, terminating and hibernating an instance?

BeginnerConceptEC2, Auto Scaling and Load Balancing
Answer

Stop: instance shuts down, EBS volumes persist, no compute charge, the instance may move hosts on start and loses public IP and instance store data. Terminate: instance is deleted; root volume goes away unless DeleteOnTermination is false. Hibernate: RAM contents are saved to the encrypted root EBS volume and restored on start, preserving process state.

Termination protection (--disable-api-termination) blocks API terminations, but not ASG scale-in or shutdown-behavior terminate unless you configure it.

aws All AWS questions Roadmap: AWS core services

More on EC2, Auto Scaling and Load Balancing