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.
True or False: additional volumes delete automatically upon instance termination?
False. They persist after termination and must be deleted manually
True or False: ECS instances and the EBS volume to be attached must be in the same AZ?
True.
True or False: you can only change volume types of Standard (Magnetic) storage?
False: In fact, you change all volume types EXCEPT magnetic.
Steps to duplicate an EBS volume in another AZ
- Create a snapshot of the volume
- Create a new volume from the snapshot.
- Choose the desired AZ from the menu
Steps to duplicate an EBS volume in another region
- Create a snapshot of the volume
2. Copy the snapshot to the desired region
Can you create an AMI image from an EBS snapshot?
Yes.
What is an EBS volume?
Virtual hard disk
Where are snapshots held?
S3.
True or False: Snapshots are incremental?
True. Only blocks that have changed will be copied since the last snapshot.
Is your first snapshot created immediately?
No. The first snapshot may take some time to create.
When creating a snapshot of a root volume, should you stop the instance first?
Yes. If you don’t, it can create latency
Can you create a snapshot of the root volume while the instance is on?
Yes. However, it is best practice to stop the instance.
True or False: Snapshots of encrypted volumes are encrypted automatically?
True
True or false: Volumes restored from encrypted snapshots are encrypted automatically?
True
True or False: Encrypted snapshots can be shared with the public, or other AWS accounts?
False. Snapshots must be decrypted to share.