EBS, EFS And Storage Gateway Flashcards

1
Q

What is an instance store and why would you use one? Is there a cost?

A

Instance stores are physical storage attached to the physical host. As there is no network involved they are very fast and are used often for buffers, cache, scratch data - i.e temporary re-creatable data that needs very high IOPS (100’s of thousands). There is no cost to the instance store.

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

For IO1, GP2, ST1 - what is the maximum size you can provision?

A

16TiB

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

How would you use EFS as a cache for a web applications session state for multiple servers?

A

You would create an EFS volume and map it each individual server, they could then write session state data to the mapped volume.

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

What are the 4 types of EBS volume?

A

GP2, IO1, ST1, SC1

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

When you restore a snapshot of an EBS volume, when is the data available for use? Are there any latency impacts when using a restored snapshot?

A

Immediately. There are latency impacts if you don’t initialize (pull the blocks down from s3 ) the volume prior to using it with dd or fio.

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

What are the 2 PERFORMANCE modes for EFS? Why would you use them? Which has the higher latency and throughput?

A

General purpose and MaxIO. GP IOPS scales to 1000’s of concurrent connections, good for web servers, content sharing - general purpose use case. MaxIO Is higher latency but also higher throughput and is used for Big Data, media processing or anything that requires high IO.

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

Can you use EFS on a Windows EC2 instance?

A

No. Linux only, because Windows is arse.

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

Which storage type presents to an EC2 instance as a disk volume?

A

EBS

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

If I have a GP2 Drive sized at 100GB, how many IOPS do I have?

A

3*100=300IOPS

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

What are the two THROUGHPUT modes EFS supportS?

What are the 2 PERFORMANCE modes for EFS? Why would you use them?

A

Throughput
Bursting: Throughput will scale with file system size allowing for short bursts

Provisioned: Allows you to specify MB/S up to 1025MB/Sec.

Performance
General purpose and MaxIO. GP IOPS scales to 1000’s of concurrent connections, good for web servers, content sharing - general purpose use case. MaxIO Is higher latency but also higher throughput and is used for Big Data, media processing or anything that requires high IO.

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

I have a small group of machines in an autoscaling group which require access to an EFS volume. How do I secure access to that volume to allow only those machines in my ASG to access it?

A

You would use security groups with an inbound rule for your EFS volume allowing access from Ec2 instances in your ASG - those instances will have their own SG assigned on creation by the ASG so your inbound rule on EFS would reference your EC2 instances SG

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

You have a database that requires reliable IO of up to 230,000IOPS. Which storage solution would you use, why and what are the caveats

A

EFS cant be used as this is file storage, not block. EBS GP2 tops out at 3KIops or 16kIOPS with an additional fee. IO2 tops at at 32K (or 64K for Nitro). The only option is storage attached directly to the instance host - which leaves an instance store. As this data is ephemeral, we need to make sure that we have a replication and backup/restore mechanism as instance stores do not have an automated backup mechanism.

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

Is there a performance impact to snapshotting an EBS volume?

A

Yes. Snapshotting is a highly IO intensive activity and should ideally not be run during peak times.

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

On an EBS volume, do you pay by the amount of data stored, or the amount of storage you provision? Is this also the case for EFS?

A

You pay on the amount of storage you provision.

For EFS you pay based on the volume of data you store.

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

Why would I use an IO1 over a GP2 drive?

A

Max IOPS for GP2 is 16K. You would need IO2 if you had critical applications which required high, sustained consistent IOPS - I.e a large Database workloads.

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

What happens to an instances EBS root volume on instance TERMINATION?

A

The root volume is also terminated by default

17
Q

Given that EBS is locked to an AZ, how can you migrate an EBS volumefrom one AZ to another?

A

You need to create a snapshot of the EBS volume, copy it to the new AZ and restore it.

18
Q

What’s the ratio of IOPS to GB on IO1? Do you need to provision these on creation?

A

50 IOPS: 1GB, yes these need to be provisioned on creation.

19
Q

Can you resize an instance store volume?

A

No.

20
Q

What’s the minimum and maximum drive size for an IO1 volume?

AND

What are the minimum and the maximum IOPS?

A

4GB to 16TiB
100 IOPS minimum
64000 IOPS for Nitro instances
32000 IOPS for all others

21
Q

How many IOPS do you get per GB in GP2? What is the maximum IOPS for a GP2 volume? What about an IO1 drive?

A

GP2: 3IOPS:1GB with a max of 3000 or 16,000 IOPS with an additional fee
IO1: 50IOPS:GB to 32K (64K for Nitro)

22
Q

For EFS, what service is used to implement encryption at rest?

A

AWS KMS

23
Q

Is the GP2 EBS file type burstable? If so, to how many IOPS? What I have a GP2 drive which is 1200GB in size?

A

Yes to 3K IOPS. As there are 3IOPS/GB by the time my drive is over 1000GB I won’t get any burst capability as my 1200GB volume already has 3600IOPS.

24
Q

How many IOPS can GP2 burst to?

A

3K IOPS

25
Q

What EBS types can be used as boot volumes on an EC2 instance

A

IO1, GP2

26
Q

Is EFS Available across multiple AZs?

A

Yes

27
Q

Which protocol does EFS use?

A

NFSv4.1 (Port 2049)

28
Q

Does data on an instance store persist after REBOOT of an instance? What about on STOP or TERMINATION

A

Yes on Reboot, no on stop and termination

29
Q

What are the two tiers (not performance or throughput modes) for EFS?

AND

Why and how would you make use of these to deliver a COST EFFECTIVE EFS solution?

A

Standard storage: Frequently accessed files
EFS-Infrequently Accessed: Cost to access, but lower cost to store.
EFS is costed based on the amount of data you store. In this case, you would create a lifecycle rule to migrate content from the EFS standard to EFS-IA based on the number of days since the last time they were accessed.

30
Q

When you snapshot an EBS volume, is the volume available during the process?

A

Yes.