EC2-Instance-Storage Flashcards

1
Q

An ____ volume is a network drive you can attach to your instances while they run.
It allows your instances to persist data, even after their termination.

A

Elastic Block Store (EBS)

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

An EBS volume can only be mounted to one instance at a time (at the CCP level).
They are bound to a specific ____.

A

availability zone

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

Because an EBS volume is a network drive:
- it uses the network to communicate with the instance, so there might be some ____.
- it can be detached from an EC2 instance and attached to another quickly

A

latency

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

Since a EBS volume is locked to an availability zone, you must create a ____ first if you want to move it across AZs.

A

snapshot

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

You must ____ an EBS when you create it by selecting the GBs and IOPS you want.

A

provision

Because it is provisioned, you get billed for all provisioned capacity.
You can increase the capacity of the volume over time.

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

EBS - Delete on Termination attribute

It controls the EBS behaviour when an EC2 instance is terminated.
- By default, the ____ EBS volume is deleted (attribute selected)
- By default, ____ EBS volume is not deleted (attribute disabled)

This attribute can be controlled by the ____ / ____.

Use Case: preserve root volume when instance is terminated

A

root
any other attached
AWS console / AWS CLI

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

True/False: You can copy EBS snapshots across AZ or Region.

A

True

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

It is not necessary to detach a volume to do a ____, but it is recommended.

A

snapshot

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

Moving an EBS snapshot to an ____ tier can be 75% cheaper.

A

archive

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

Restoring an EBS snapshot from archive can take __ to __ hours.

A

24 to 72

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

Using a ____ for EBS snapshots, you can setup rules to retain deleted snapshots.
You can specify a retention from 1 day to 1 year.

A

recycle bin

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

Using ____ forces full initialization of a snapshot to have no latency on the first use.
Very useful for restoring very large snapshots, but is expensive.

A

Fast Snapshot Restore (FSR)

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

AMI’s are a ____ of an EC2 instance where you can add your own software, configuration, OS, etc.

A

customization

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

AMI’s have a faster boot / configuration time because all your software is ____.

A

pre-packaged

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

An AMI is 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
16
Q

What are the 3 types of AMI’s you can launch an EC2 instance from?

A
  • a public AMI: AWS provided
  • your own AMI: you make and maintain them
  • AWS marketplace AMI: an AMI someone else made (and potentially sells)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

The process of building an AMI:

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

If you need a high-performance hardware disk for your EC2, use an EC2 ____ instead of an EBS volume.

A

instance store - this is a hard drive attached to the physical server where the EC2 is housed

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

The downside to an EC2 instance store is that it ….?

A

loses its data when the EC2 instance is stopped. This is called ephemeral storage.

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

The use cases for EC2 instance ____ are buffers, cache, scratch data, temporary content, etc. (short term use).

A

stores

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

One risk of EC2 instance stores is data loss from ____ failures.
Backup and replication are your ____.

A

hardware
responsibility

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

EBS Volumes come in 6 types:
- gp2 / gp3 (SSD): General purpose SSD volume that balances price and performance for a wide variety of workloads
- io1 / io2 Block Express (SSD): highest-performance SSD volume for mission-critical low-latency or high-throughput workloads
- st1 (HDD): Low cost HDD volume designed for frequently accessed, throughput-intensive workloads
- sc1 (HDD): Lowest cost HDD volume designed for less frequently accessed workloads

23
Q

EBS volumes are characterized in Size, Throughput and IOPS.

24
Q

With EBS volumes, only gp2/gp3 and io1/io2 Block Express can be used as ____ volumes.

25
Q

EBS volume use case: General Purpose (gp2/gp3)

  • cost effective storage, low-latency
  • system boot volumes, virtual desktops, development and test envs
  • 1 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 volumes can burst IOPS to 3,000
    • size of the volume and IOPS are linked (unlike gp3), max IOPS is 16,000
26
Q

EBS volume use case: Provisioned IOPS (PIOPS) SSD

  • critical business applications with sustained IOPS performance
  • applications that need more than 16,000 IOPS
  • great for database workloads (sensitive to storage performance and consistency)
  • io2 Block Express (4 GiB - 64 TiB)
    • sub-millisecond latency
    • max PIOPS: 256,000 with an IOPS:GiB ratio of 1,000:1
  • io1 (4GiB - 16TiB)
    • max PIOPS: 64,000 for Nitro EC2 instances & 32,000 for other
    • can increase PIOPS independently from storage size
27
Q

Which EBS volume type supports multi-attach?

a) gp2/gp3
b) io1/io2
c) st1 / sc1

28
Q

Which EBS volume type cannot be a boot volume?

a) gp2/gp3
b) io1/io2
c) st1 / sc1

29
Q

Which HDD EBS volume type is for infrequently accessed data or where lowest cost is important?

a) st1 (throughput optimized HDD)
b) sc1 (cold HDD)

30
Q

Which HDD EBS volume type is described:

  • for big data, data warehouses
  • max throughput of 500 MiB/s and max IOPs of 500

a) st1 (throughput optimized HDD)
b) sc1 (cold HDD)

31
Q

Recap EBS volume types - SSD

32
Q

Recap EBS volume types - HDD

33
Q

With EBS ____, you can attach the same EBS volume to multiple EC2 instances in the SAME availability zone.
Each instance has full read/write permissions to the volume.

A

Multi-attach

34
Q

The EBS Multi-attach feature can support up to ____ instances at a time.

35
Q

With EBS Multi-attach you must use a file system that is ____.

A

cluster-aware

36
Q

When you create an encrypted EBS volume:

  • 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 volumes created from the snapshot are encrypted
37
Q

EBS encryption and decryption are handled ____, so there is nothing you need to do.

A

transparently

38
Q

EBS encryption has a ____ impact on latency.

39
Q

EBS encryption leverages keys from ____.

A

KMS (AES-256)

40
Q

Steps to encrypt an unencrypted EBS volume:

  • create an EBS snapshot of the volume
  • encrypt the EBS snapshot (using copy)
  • create a new EBS volume from the snapshot
  • now you can attach the encrypted volume to the original instance
41
Q

Amazon ____ is a managed network file system that can be mounted on many EC2 instances.

42
Q

Amazon EFS works with EC2 instances in ____.

43
Q

Amazon EFS is pay per use, so you don’t have to ____ in advance.

44
Q

With Amazon EFS, you use ____ to control access.

A

security groups

45
Q

Amazon EFS is only compatible with ____ based AMI.

46
Q

Amazon EFS has encryption at rest using ____.

47
Q

No capacity planning is needed with Amazon EFS because the file system ____.

A

scales automatically

48
Q

EFS Modes

  • Performance Mode (set at EFS creation)
    • General Purpose (default) - latency-sensitive use cases (web server, etc)
    • Max I/O - higher latency, throughput, highly parallel (big data, media processing)
  • Throughput Mode
    • Bursting
    • Provisioned - set your throughput regardless of storage size
    • Elastic - automatically scales throughput up or down based on your workloads
      • used for unpredictable workloads
49
Q

Amazon EFS Storage Tiers allow for ____ to move files after a certain number of days.

  • Standard: for frequently accessed files
  • Infrequent access (EFS-IA): a cost to retrieve files, lower price to store
  • Archive: rarely accessed data (few times a year), 50% cheaper

You can implement ____ to move files between storage tiers.

A

lifecycle management
lifecycle policies

50
Q

Amazon EFS ____ storage tier supports multi-AZ and is great for prod.

51
Q

Amazon EFS ____ storage tier supports a single AZ, is great for dev, backup is enabled by default and is compatible with IA (EFS One Zone-IA).

52
Q

EBS Recap

53
Q

EFS Recap