EC2 Volume Types Flashcards
What is the difference between instance volumes and EBS volumes?
Instance is ephemeral, EBS is persistant.
What 2 types of volumes are there?
Root Volume (where the OS is installed) Additional Volumes (D:\, E:\, F:\, or /dev/sdb, /dev/sdc, /dev/sdd, etc
True or False: a root device can be either an EBS volume or an instance?
True
What is the maximum volume size for an instance store?
10GB
What is the maximum volume size for an EBS volume?
1 or 2Tb, depending on the OS
Are root volumes deleted by default upon EC2 termination?
Yes.
How do you prevent an EBS backed root volume from being deleted upon EC2 termination using the console?
unselect the “Delete on Termination” option upon instance creation.
How do you prevent a root volume from being deleted upon EC2 termination using CLI?
Set the deleteontermination flag to false.
True or false: Additional volume types (non-root) are preserved upon instance termination?
True
True or false: Upon EC2 instance creation, you can prevent instance-store backed root volume from deletion upon EC2 termination?
False. Instance-store backed root volumes cannot modify the Delete on Termination configuration, and will be deleted upon EC2 termination.
True or False: rebooting an instance results in the loss of instance store data?
False
under what circumstances will data on an instance store be lost?
Failure of the underlying drive
Stopping the instance
terminating the instance
True of false: It is best practice to not use instance store volumes for production data uses?
True. Use replication strategies, S3, or EBS volumes
Can you upgrade an instance-store backed EC2 instance?
No. Since you cannot stop the instance, you cannot make modifications that require stopping the instance.
Can you modify an EC2 instance’s Delete on Termination atrribute after the instance has been launched?
No, this must be set at launch.