EBS Flashcards

1
Q

Can you have an EBS volume mounted in a different AZ than its instance?

A

No, they must be in same availability zone

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

Which volume types can you modify on the fly?

A

all except magnetic (standard)

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

Have an EC2 instance in one zone, want to create volume in different zone, how to do it

A
  1. snapshot the EC2 volume
  2. create volume from the snapshot
  3. Now can change the type of the volume and the AZ
  4. Can attach this volume to another EC2 instance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to move an EBS volume to different AZ or region

A

to move an EBS volume from one AZ to another
create snapshot first
copy snapshot to new location
then create new volume in new AZ

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

How to move EC2 instance from one region to other

A

create snapshot
copy / move snapshot to new region
create image from snapshot (then can boot to new EC2 instance)

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

Use case for snapshots

A

snapshots for backups

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

Use case for images

A

images for creating new EC2 volumes

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

Volumes exist on?

A

EBS

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

EBS is what

A

a virtual hard disk

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

snapshots exist where?

A

on S3

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

What are snapshots?

A

point in time copy of volumes. Incremental snapshots mean only changed blocks are copied to S3

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

First step to creating snapshot of EBS volumes serving as root devices?

A

Stop the instance. Optional but ensures files are not changing

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

Can you create an AMI from Volumes and Snapshots?

A

Yes, from both

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

What 2 things can you change for EBS volumes on the fly?

A

Yes including size and storage type

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

Will volumes always been the same AZ as the EC2 instance?

A

yes

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

To move EC2 volume from one AZ or region what do you do?

A

Take a snapshot or image

then copy to new location

17
Q

Are snapshots of encrypted volumes, encrypted automatically?

A

Yes

18
Q

Are volumes restored from encrypted snapshots automatically encrypted?

A

Yes

19
Q

When can you share snapshots?

A

any time if they are unencrypted.

20
Q

EBS vs Instance Store

A

Instances with EBS volume as boot device can be stopped

Instances with Instance Store for boot device can’t be stopped, only rebooted or terminated

Might want to stop an instance to move it around the datacenter, ie off of a failed hypervisor

21
Q

Can you detach an EBS volume from an instance and re-assign it to another instance?

A

Yes, even with root volumes

22
Q

Ephemeral Storage

A

Instance Store backed volumes

23
Q

AMI’s are categorized as backed by what?

A

EBS or instance store volumes

24
Q

EBS-backed AMI

A

root device is an EBS volume created from EBS snapshot

25
Q

Instance-store backed AMI

A

root device is an instance store volume created from a template stored in S3

26
Q

Can instance store volumes be stopped?

A

No

27
Q

Can EBS-backed instances be stopped?

A

Yes

28
Q

Can ephemeral / instance store backed instances be stopped?

A

No, only rebooted or terminated

29
Q

Can you reboot instance store, or EBS backed volumes without losing data?

A

yes

30
Q

Default behavior for both types of Root Volumes on termination

A

is to delete the the root volumes

With EBS you can change this

31
Q

AWS CLI command to create EBS snapshot

A

aws ec2 create-snapshot

32
Q

can you delete a snapshot of EBS volume used as root device of a registered AMI?

A

No

33
Q

Will an EBS root volume persist independently after its EC2 instance is terminated?

A

Only if you specify that it does

34
Q

How are EBS snapshots backed up to S3

A

incrementally. Only changes are copied each time