EC2 Volume Types Flashcards

1
Q

What is the difference between instance volumes and EBS volumes?

A

Instance is ephemeral, EBS is persistant.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What 2 types of volumes are there?

A
Root Volume (where the OS is installed)
Additional Volumes (D:\, E:\, F:\, or /dev/sdb, /dev/sdc, /dev/sdd, etc
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

True or False: a root device can be either an EBS volume or an instance?

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the maximum volume size for an instance store?

A

10GB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the maximum volume size for an EBS volume?

A

1 or 2Tb, depending on the OS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Are root volumes deleted by default upon EC2 termination?

A

Yes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do you prevent an EBS backed root volume from being deleted upon EC2 termination using the console?

A

unselect the “Delete on Termination” option upon instance creation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do you prevent a root volume from being deleted upon EC2 termination using CLI?

A

Set the deleteontermination flag to false.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

True or false: Additional volume types (non-root) are preserved upon instance termination?

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

True or false: Upon EC2 instance creation, you can prevent instance-store backed root volume from deletion upon EC2 termination?

A

False. Instance-store backed root volumes cannot modify the Delete on Termination configuration, and will be deleted upon EC2 termination.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

True or False: rebooting an instance results in the loss of instance store data?

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

under what circumstances will data on an instance store be lost?

A

Failure of the underlying drive
Stopping the instance
terminating the instance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

True of false: It is best practice to not use instance store volumes for production data uses?

A

True. Use replication strategies, S3, or EBS volumes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Can you upgrade an instance-store backed EC2 instance?

A

No. Since you cannot stop the instance, you cannot make modifications that require stopping the instance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Can you modify an EC2 instance’s Delete on Termination atrribute after the instance has been launched?

A

No, this must be set at launch.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

True or False: additional volumes delete automatically upon instance termination?

A

False. They persist after termination and must be deleted manually

17
Q

True or False: ECS instances and the EBS volume to be attached must be in the same AZ?

A

True.

18
Q

True or False: you can only change volume types of Standard (Magnetic) storage?

A

False: In fact, you change all volume types EXCEPT magnetic.

19
Q

Steps to duplicate an EBS volume in another AZ

A
  1. Create a snapshot of the volume
  2. Create a new volume from the snapshot.
  3. Choose the desired AZ from the menu
20
Q

Steps to duplicate an EBS volume in another region

A
  1. Create a snapshot of the volume

2. Copy the snapshot to the desired region

21
Q

Can you create an AMI image from an EBS snapshot?

A

Yes.

22
Q

What is an EBS volume?

A

Virtual hard disk

23
Q

Where are snapshots held?

A

S3.

24
Q

True or False: Snapshots are incremental?

A

True. Only blocks that have changed will be copied since the last snapshot.

25
Q

Is your first snapshot created immediately?

A

No. The first snapshot may take some time to create.

26
Q

When creating a snapshot of a root volume, should you stop the instance first?

A

Yes. If you don’t, it can create latency

27
Q

Can you create a snapshot of the root volume while the instance is on?

A

Yes. However, it is best practice to stop the instance.

28
Q

True or False: Snapshots of encrypted volumes are encrypted automatically?

A

True

29
Q

True or false: Volumes restored from encrypted snapshots are encrypted automatically?

A

True

30
Q

True or False: Encrypted snapshots can be shared with the public, or other AWS accounts?

A

False. Snapshots must be decrypted to share.