This is a very common real-time production interview question, especially for DevOps and Cloud Engineer roles.
When you stop an EC2 instance:
The instance shuts down gracefully (like normal OS shutdown).
The EBS root volume remains attached.
You can start the instance again later.
The instance ID remains the same.
The private IP remains the same.
The public IP changes (unless Elastic IP is attached).
You are charged only for:
EBS storage
Elastic IP (if attached and not used properly)
You are not charged for compute hours while stopped.
AWS releases the underlying host machine, but keeps your EBS volume data intact.
When you terminate an EC2 instance:
The instance is permanently deleted.
The instance ID is gone forever.
The root EBS volume is deleted by default (unless “Delete on Termination” is unchecked).
You cannot restart or recover the instance.
All attached instance store data is lost permanently.
Billing for compute and storage stops (except retained volumes/snapshots).
| Feature | Stop | Terminate |
|---|---|---|
| Can restart? | Yes | No |
| Instance ID retained? | Yes | No |
| Root EBS volume | Preserved | Deleted (default) |
| Private IP | Same | Lost |
| Public IP | Changes | Lost |
| Compute charges | No | No |
| Use case | Temporary shutdown | Permanent removal |
In many companies:
Dev/Test servers are stopped at 8 PM daily using Lambda automation.
They are restarted next morning.
This reduces EC2 compute cost by 40–50%.
Stopping is ideal here.
Before upgrading an application:
Engineers stop the instance.
Take a snapshot.
Restart for testing.
If something breaks, they can recover easily.
When a project ends:
Instance is terminated.
Manual snapshot taken before termination.
Instance removed permanently to avoid cost leak.
Terminate is ideal here.
If the root volume has DeleteOnTermination = false, EBS volume will survive even after termination.
Instance Store data is always lost on stop or terminate.
If you want static public IP after restart → use Elastic IP.
Stopped instances still consume:
EBS cost
Snapshot cost
Elastic IP cost (if not attached properly)
“Stopping an EC2 instance preserves the EBS volume and allows restart later, while terminating permanently deletes the instance and its associated root volume.”
Not a member yet? Register now
Are you a member? Login now