EC2 Basics Flashcards

1
Q

What are the 5 types of EC2 instances?

A
General Purpose
Memory Optimized
Compute Optimized
Accelerated Computing
Storage Optimized
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is EBS?

A

Elastic Block Store. Persistent storage that can be attached and reattached to an EC2 instance in one availability zone.

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

Where do EBS Snapshots live?

A

S3

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

How do you attach an EBS instance in AZ A to an EC2 instance in AZ B?

A

Create a snapshot, restore in another A Z, then attach

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

What are the General Purpose SSD EBS volumes?

A

GP2 and GP3

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

What are the Provisioned IOPS SSD types?

A

io1 and io2

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

What are the HDD based volume types?

A

St1 and Sc2

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

Why might you want to use GP2 or GP3?

A

Medium IOPS intense applications. Default, not as costly as io1/io2.

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

Why might you want to use io1 or io2?

A

Very IOPS sensitive workloads

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

Why might you want to use St1?

A

Throughput optimized workloads when cost is a factor

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

Why might you want to use Sc1?

A

“Cold” storage. Data requires few scans. Cheaper than St1.

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

What is an Instance store volume?

A

Temporary instance store that is very high performance

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

When would you lose instance store?

A

instance move (host change), resize, hardware failure.

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

How do EBS volumes typically restore?

A

Lazily. Data only fetched when requested.

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

How does KMS generate DEKs for EBS snapshots?

A

Same DEK that is used to encrypt volume initially is used for snapshots

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

True or False: Encryption can be turned off for EBS volumes.

A

False, once enabled it cannot be turned off.

17
Q

How can you recover an Ec2 instance when it doesn’t pass status checks?

A

Use CloudWatch to create an alarm on status checks, then can either stop, terminate, reboot.