EC2 Instance Storage Flashcards

1
Q

An __________ is a network drive you can attach to your instance while they run and at the associate level it can have multi-attach feature & it’s bond to a specific availability zone

A

EBS Volume

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

What are some features of EBS Volume?

A
  • It uses the network to communicate the instance, which means there might be a bit of latency
  • It can be detached from an EC2 instance and attached to another one quickly
  • It’s locked to one availablity zone so can be used in another one unless you use a snapshot
  • Have a provisioned capacity
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The ____________ controls the EBS behavior when an EC2 instance terminates and by default the root EBS volume is deleted (when attribute is enabled) and by default any other attached EBS volume is not deleted (when attribute disable)

A

Delete on termination attribute (it’s used to preserve root volume when instance is terminated)

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

________ is a backup of your EBS volume at a point in time & can copy them across AZ or regions

A

EBS snapshots

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

What are some features of EBS snapshots?

A
  • EBS snapshots are archive (move a snapshot to an archive tier that is 75% cheaper)
  • Can use a recycle bin for EBS snapshots (setup rules to retain deleted snapshots so you can recover them after an accidental deletion)(from 1 day to 1 year)
  • Has fast snapshot restore (FSR) ( force full initialization of snapshots to have no latency on the first use )
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

_______ are a customization of an EC2 instance

A

AMI (Amazon machine image)

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

AMI are built for a specific ________

A

Region (and can be copied across regions)

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

What are the different AMI you can launch your instance from?

A
  1. Public AMI (AWS provided)
  2. Your own AMI (you make & maintain them yourself)
  3. An AWS marketplace AMI (an AMI someone else made & potentially sells)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the AMI process from an EC2 instance?

A
  • Start an EC2 instance and customize it
  • Stop the instance (for data integrity)
  • Build an AMI (which will also create EBS snapshots)
  • Launch instance from other AMIs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

EBS volumes are __________ with good but limited performance

A

EBS volumes

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

If you need a high performance hardware disk use ___________

A

EC2 instance store

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

What are some features of EC2 instance store?

A
  • Better I/O performance
  • EC2 instance Store lose their storage if they’re stopped (ephemeral)
  • Risk of data loss if hardware fails
  • Your responsible for backups and replications
  • Use case for buffer /cache / scratch data / temporary content
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the 6 different types of EBS volumes?

A
  1. gp2/gp3 (SSD) : general purpose SSD volume that balances price and performance for a wide variety of workloads
  2. io1/ io2 block express (SSD): highest performance SSD volume for mission critical low latency or high throughput workloads
  3. st l (HDD): low cost HDD volume designed for frequently accessed throughput intensive workloads
  4. sc1 (HDD): lowest cost HDD volume designed for less frequent access workloads
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are some features of the EBS volume types?

A
  • EBS volumes are characterized in size | throughout | IOPS (I/O ops per sec)
  • Only gp2/gp3 and io 1/ io2 block express can be used as boot volumes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are some features of the general purpose SSD EBS volumes?

A
  • Cost effective storage, low latency
  • System boot volumes, virtual Desktops, development and test environments
  • I GiB - 16 TiB
  • gp3: baseline of 3,000 IOPS and throughput of 125 MiB/s & can increase IOPS up to 16,000 and throughput up to 1000 MiB/s independently
  • gp2: small gp2 volume can burst IOPS to 3,000, size of them volume and IOPS are linked, max IOPS is 16,000, 3 IOPS per GB which means at 5,334 GB we are at the max IOPS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are some features of provisioned IOPS (PIOPS) SSD volume types?

A
  • Used for critical business applications with sustained IOPS performance or applications that need more than 16,000 IOPS
  • For exams whenever you see database workloads that is send twice to storage perf and consistency then provisioned volumes would be great for it
  • io 1 (4-16 TiB) : Max PIOPS : 64,000 for nitro EC2 instances & 32,000 for other & can increase PIOPS independently from storage size
  • io 2 block express (4-64 TiB): sub-millisecond latency, max PIOPS of 256,000 with an IOPS: GiB ratio of 1,000:1
  • Provisioned IOPS supports EBS Multi-attach
17
Q

What are some features of hard disk drives (HDD)?

A
  • Can’t be a boot volume
  • 125 GiB to 16 TiB
  • Throughput optimized HDD (st 1): use for big data, data warehouses, log processing, max throughout 500 MiB/s- max IOPS 500
  • Cold HDD (sc 1): for data that is infrequently accessed, scenarios where lowest cost is important, max throughput 250 MiB/s - max IOPS 250
18
Q

___________ allow you to attach the same EBS volume to mutlose EC2 instance in the same AZ (which is only available for the io 1/ io 2 Family)

A

EBS mutli-attach

19
Q

What are some features of the EBS mutli-attach & use case?

A
  • Each instance has full read & write permissions to the high performance volume
  • Up to 16 EC2 instance at a time
  • Must use a file system that’s cluster -aware (not XFA, EXT4, etc)
  • Use case achieve higher application availability in clustered Linux applications (ex. Teradata) or applications must manage concurrent write operations
20
Q

When you create an encrypted EBS volume, what do you get?

A
  • Data at rest is encrypted inside the volume
  • All the data in flight moving between the instance and the volume is encrypted
  • All snapshots are encrypted
  • All volume created from the snapshots
21
Q

Encryption and decryption are handled ____________ and it has minimal impact on latency

A

Transparently

22
Q

What are some features of encryption?

A
  • EBS encryptions leverages keys from KMS (AES-256)
  • Copying an unencrypted snapshot allows encryption
  • Snapshots of encrypted volumes are encrypted
23
Q

How do you encrypt and unencrypted EBS volume?

A
  1. Create an EBS snapshot of the volume
  2. Encrypt the EBS Snapshot (using the copy)
  3. Create new ebs volume from the Snapshot (the volume will also be encrypted)
  4. Then you can attach the encrypted volume to the original instance
24
Q

__________ is a managed NFS (network file system) that can be mounted on many EC2 and it works with EC2 instance in multi-AZ

A

Amazon EFS (elastic file system)

25
Q

What are the different use cases for EFS?

A
  1. Content management, web serving, data sharing, WordPress & uses NFSv4. 1 protocol
  • It’s only compatible with Linux based AMI (not windows)
26
Q

What are some features of EFS?

A

EFS scales:
- 1000s of concurrent NFS clients, 10 GB+ /s throughout
- Grow to petabyte scale network file system automatically

Performance Mode (Set at EFS creation time):
- General purpose (default): latency -sensitive use cases (web server, CMC, etc)
- Max I/O - higher latency, throughput, highly parallel (big data, media processing)

Throughput mode:
- Bursting- 1 TB = 5MiB/s burst of up to 100MiB/s
- Provisioned- set your throughput regardless of storage size ex. 1 GiB/s for 1 TB storage
- Elastic- automatically scales throughput up or down on your workloads (up to 3GiB/s for reads and 1 GiB/s for writes & good for unpredictable workloads)

27
Q

What are the different EFS storage classes?

A
  1. Storage tiers (lifecycle management feature move file after N days)
    - standard for frequently accessed files
    - infrequent access (EFS-1A): cost to retrieve files, lower price to store. Enable EFS-1A with a lifecycle policy

Availability and durability:
- Standard: Multi - AZ which is great for prod

  • One zone: One AZ great for development, backup enabled by default, compatible with IA (EFS one zone IA) (over 90% in cost savings)
  • One zone: One AS fr