In AWS, the EC2 ( Elastic cloud computing) instance is called a VM (Virtual Machine). Here’re the four stages of a Virtual Machine-status. Those are START, STOP, REBOOT, Terminate. Out of those, the STOP and Terminate are tricky, and many developers confuse here.
Below are the interview questions asked in major IT companies on EC2 instance.
AWS Instance (Virtual Machine) Status
This is just like starting of stopped machine. When you creating new machine, you need to select ‘Launch instance’.
Stopping the machine is like power off. The data will be available, till when you was issued STOP command.
After a multiple attempts of STOP and START, to refresh your machine from scratch, you can issue REBOOT. During this time it shuts all the main and sub-processes and boot the machine.
Terminate options deletes your instance permanently. You can’t start the instance. So, you need to create the new instance if you want.
Basically, STOP and Terminate both not the same. Also, while selecting these options you had better just double check.