EC2 Instance Storage Flashcards

(125 cards)

1
Q

What is an EBS

A

Elastic Block Store

EBS Volume is a network drive you can attach to your EC2 instance while they run

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

What does an EBS allow?

A

For instance data to persist after termination

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

In how many instances can EBS volumes be attached at the same time?

A

Only one

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

Are EBS bound to specific AZ?

A

Yes

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

EBS Analogy?

A

Network USB stick

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

Why is there latency for an EBS volume?

A

Because it is a network drive

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

Benefit of using an EBS volume and many EC2 instances?

A

Can detach & attach quickly to different EC2

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

Downside of EBS in regard to AZ?

A

They are locked to 1 AZ at a time.
If you want to move it to another AZ you need to snap shot it and use the snap shot

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

How do you get billed for EBS volumes?

A

Provisioned Capacity (size in GBs & IOPS)
Can increase capacity over time

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

EBS and different EC2

A

Cannot attach 1 EBS to 2 instances at a time but can attach 2 EBS to 1 instance.

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

Do EBS have to be attached?

A

No, they can remain unattached

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

Delete on Termination attribute

A

Root volume is deleted by default when EC2 is terminated.

Any other EBS (other than root) is not

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

EBS Snapshot

A

Backup at point in time

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

Can you copy snapshots across AZ or Regions?

A

Yes

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

How do you transfer an EBS volume from one AZ or Region to another?

A

Snapshot it first

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

What is EBS Snapshot Archive?

A

You archive your snapshot (tier) and it is 75% cheaper

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

How long does EBS Snapshot Archive take to restore?

A

24 to 72 hours

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

What is Recycle Bin for EBS Snapshots

A

Rule to retain deleted snapshots for recovering them later

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

How long can you retain EBS Snapshots in Recycle Bin?

A

1 day to 1 year

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

What is Fast Snapshot Restore (FSR)

A

Force full initialisation of snapshot to have no latency on first use ($$$)

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

When do you use Fast Snapshot Restore (FSR)?

A

If your snapshot it big and it takes time to initialise

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

What does AMI mean?

A

Amazon Machine Image

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

What is an AMI?

A

Customisation of an EC2 instance

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

What can you control with AMI?

A

OS, config, monitoring

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What are some benefits of using an AMI when building an EC2 machine?
Faster boot / config time - everything is pre packaged
26
What do you do if you want to move an AMI across region?
First you create it to a specific region, and then copy it across another region
27
Which AMI can you lunch instances from?
Public AMI (AWS Provided) Own AMI (make and maintain it) Marketplace AMI (someone else made it)
28
AMI Process (from EC2)
Start EC2 and customise it Stop instance Build AMI - creates EBS snapshots Lunch instance from other AMI
29
What is EC2 Instance Store?
It is a physical storage drive that can be attached to your EC2's physical hardware
30
What is EBS performance?
It is limited
31
Which storage do you use if you want high performance?
EC2 Instance Store
32
Unlike EBS (Elastic Block Store) what happens to EC2 Instance store when the instance is terminated?
It loses all their storage (ephemeral) The physical drive gets detached and released so it can be attached to a new EC2 instance
33
Good use case for EC2 Instance Store?
Buffer Cache Scratch data temporary content
34
Which is better for longterm storage? EBS or EC2 instance store?
EBS
35
What is a risk that EC2 instance store has?
Data loss if hardware fails
36
How many types of EBS are there?
6
37
What are gp2 / gp3 (SSD) EBS volumes used for?
General purpose SSD volume that balances price and performance a wide variety of workload
38
What are io 1 / io2 (SSD) EBS volumes used for?
Highest-performance SSD volume for mission-critical low-latency or high-throughput workloads
39
What is st 1 (HDD) EBS volume used for
low cost HDD volume designed for frequently accessed, throughput-intensive workload
40
What is sc 1 (HDD) EBS volume used for
lowest cost HDD volume designed for less frequently accessed workloads
41
What are EBS Volumes characterised in?
Size Throughput IOS (I/O Ops Per Sec)
42
Which EBS volume types can be used as boot volumes?
gp2/gp3 & io1/io2 ONLY
43
gp2/gp3 use cases
Coste efective storage, low-latency System boot volumes, VMs, Dev and test env
44
Storage size of gp2/gp3
1 GiB - 16 TiB
45
What is the baseline of IPS and throughput of gp3?
3000 IOPS and 12 MiB/s throughput
46
How high can IOPS and Throughput go for gp3?
16000 IOPS, and 1000 MiB/s throughput
47
What is the baseline of IPS and throughput of gp2?
3000
48
Is size of volume and IOPS linked or independent for gp2?
Linked, with max IOPS of 16000
49
what does 3 IOPS per GB mean at 5,334 GB for gp2?
max IOPS it can do
50
What are provisioned IOPS used for?
Critical business applications with sustained IOPS performance
51
When do you use provisioned IOPS ?
apps that need more than 16000 IOPS
52
What are Provisioned IOPS great for?
database workloads (sensitive to storage performance and consistency)
53
io 1 / io2 Gib - Tib?
4 GiB to 16 TiB)
54
Max PIOPS for io1/io2?
64000 for Nitro EC2 instances & 32000 for other
55
Can you increase PIOPS independently from storage size?
Yes
56
Why would you prefer io2?
more durable and more IOPS per GiB at same price of io1
57
io2 Block Express (4 GiB - 64 TiB) benefits
sub millisecond latency
58
Max PIOPS for io2 block express?
256,000 with an IOPS:GiB ratio of 1,000:1
59
EBS Volume Types support EBS Multi-Attach (Provisioned IOPS)
True
60
What can st 1 and sc1 not be?
boot volumes
61
size of st 1 & sc 1?
125 GiB to 16TiB
62
What are st 1 best used for
Big data, data warehouses, log processing
63
Max throughput of st1?
500 MiBs with max IOPS of 500
64
What is sc1 used for
data infrequently accessed
65
Best scenario for sc1?
lower cost is important
66
max throughput of sc1?
250 MiB/s - max IOPS 250
67
What is EBS Multi-Attach?
Allows to attach same EBS volume to multiple EC2 instances in the same AZ
68
Which instance family does EBS multi-attach use?
io 1 / io2
69
What does EBS-Multi attach offer to the instances it is connected to?
full read/write permissions to the high-perf volume
70
What are EBS-Multi attach use cases?
High App Availability in clustered Linux applications
71
Do applications that use EBS-Multi attach must manage concurrent write operations?
Yes
72
What is the concurrent Instance limit for an EBS Multi-Attach?
16 EC2 instances at a time
73
What does the file system have to be in order to use EBS Multi-attach?
Cluster-aware
74
What do you get when you encrypt an EBS volume?
Data at rest/transit encryption Snapshot encryption Volumes created from snapshot are encrypted
75
Do you have to do anything to encrypt/decrypt an EBS volume?
No, it is handled transparently.
76
What keys does Encryption of EBS leverage from?
KMS (AES-256) KMS = Key Management Service
77
What happens when you copy an unencrypted snapshot?
If you create a snapshot from an unencrypted EBS it will also be unencrypted. You can encrypt it after it is created by copying it
78
Are snapshots of encrypted volumes encrypted?
Yes
79
How do you encrypt and unencrypted EBS volume?
1. Create EBS snapshot 2. Encrypt EBS snapshot (using copy) 3. Create new EBS volume from snapshot (volume will also be encrypted 4. Attach encrypted volume to original instance
80
What is EFS?
Elastic File System and it is an NFS (Network File System)
81
What is a managed NFS?
EFS is a network file system. It can be mounted on many EC2 instances in multi AZ
82
What can you do with EFS that you cannot do with EBS multi-attach?
It can work with EC2 instances in multi-AZ
83
Benefits of using EFS?
Highly available Scalable
84
Downside of using EFS?
Expensive (3x gp2)
85
Do you have to plan the capacity of EFS in advance?
No - You pay per use
86
EFS use cases
Content Management, web serving, data sharing, Wordpress Uses NFSv4.1 protocol
87
How do you control access to EFS?
Security Group
88
What OS is EFS compatible with?
Linux
89
How can you encrypt EFS at rest?
Using KMS (Key Management System)
90
What is the scale of EFS?
1000s of concurrent NFS (Network File System) clients 10GB+/s throughput
91
What are the performance modes of EFS?
General Purpose (default) Max I/O
92
What is the General Purpose (default) EFS performance mode used for?
latency-sensitive use cases (web server, CMS)
93
What is the Max I/O EFS performance mode used for?
higher latency/throughput, highly parallel (big data, media processing)
94
What are the throughput modes that EFS can provide?
Bursting Provisioned Elastic
95
What does Bursting throughput mode of EFS include?
1 TB = 50MiB/s + burst up to 100MiB/s
96
What does Provisioned throughput mode of EFS include?
set your throughput regardless of storage size, e.g. 1 GiB/s for 1TB storage
97
What does Elastic throughput mode of EFS include?
automatically scales throughput up or down based on your workloads up to 3GiB/s reads and 1GiB/s writes used for unpredictable workloads
98
What is Elastic Throughput Mode of EFS used for?
Unpredictable workloads
99
What are Storage Tiers?
It is a lifecycle management feature - move file after N days
100
What are the different storage tiers types?
Standard and Infrequent Access
101
What is the Standard storage tier of EFS for?
Frequently accessed files
102
What is the Infrequent Access (EFS-IA) EFS storage tier for?
less frequently accessed files
103
How do you get charged for EFS-IA?
per file retrieval lower price to just store but charges you when your retrieve files
104
What is a Lifecycle policy?
Allows you to set rules for files that have not been accessed in a while
105
EFS-IA architecture example
You have a file in EFS standard that have not been accessed for 60 days. LifeCycle Policy moves it to EFS IA
106
What do you need to enable EFS-IA?
Lifecycle Policy
107
Options of Availability and Durability for EFS?
Regional - Multi-AZ for prod One Zone - One AZ great for dev back up enabled by default. Compatible with IA (EFS One Zone-IA)
108
What is the cost of using EFS?
Over 90% in cost saving
108
What is the cost of using EFS?
Over 90% in cost saving
109
What does EFS need in regard to Security Groups?
It needs its own Security Group
110
EBS - How many instances can you connect one EBS?
one instance except if the type is io 1/ io2, then you can multi attach
111
Can you connect an EBS in AZ1 to an instance in AZ2?
No - locked in AZ
112
What happens to the IO of gp2 EBS if the disk size increases?
It also increases
113
Which EBS type can you increase IO and Size independently?
io 1
114
How do you migrate EBS volume across AZ?
Snapshot Restore to another AZ EBS backups use IO and you shouldn't run them while your app is handling a lot of traffic
115
What happens to Root EBS volumes when instance is terminated?
They get deleted, by default but can be disabled
116
What can you benefit from when using EFS (AZ)
Can be mounted across 100s of instances across the multiple AZ
117
What do EFS share?
Website files (word press)
118
What instances is EFS for?
Only for Linux (POSIX)
119
Which is more expensive, EFS or EBS?
EFS
120
How can you make EFS cheaper?
EFS-IA for cost savings
121
EFS vs EBS vs Instance Store
EFS - ENS, multiple EC2 across AZ EBS - one EC2 and AZ bound (can use multi attach in io 1/2) Instance Store - temporary gets deleted with instance termination
122
Are AMI region locked?
Yes
123
What can you do if you have an AMI in region 1 and want to launch it in region 2?
Copy the AMI and then launch instances from there
124
Which volume provides the highest IOPS?
Instance Store