EC2 Instance Storage Flashcards

1
Q

EBS Volume

A
  • An EBS (Elastic Block Store) 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
  • They can only be mounted to one instance at a time (at the CCP
    level)
  • They are bound to a specific availability zone
  • Analogy:Think of them as a “network USB stick”
  • Free tier: 30 GB of free EBS storage of type General Purpose (SSD) or
    Magnetic per month
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What happens when terminating an EC2 instance with Root Volume type and other volume Type to store data?

A

Root volume will be deleted, as its “Delete on Termination” attribute is enabled by default. any other volume types will not be deleted as its “delete on termination” attribute is disabled by default.

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

AMI

A
  • AMI = Amazon Machine Image
  • AMI are a customization of an EC2 instance
  • You add your own software, configuration, operating system, monitoring… * Faster boot / configuration time because all your software is pre-packaged
  • AMI are built for a specific region (and can be copied across regions). you can’t launch an EC2 instance using an AMI in another AWS region, but you can copy the ami to the target region and then use it to create your EC2 instance.
  • You can launch EC2 instances from:
  • A Public AMI: AWS provided
  • Your own AMI: you make and maintain them yourself
  • An 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
4
Q

EBS Volume Types

A
  • gp2 / gp3 (SSD): General purpose SSD volume that balances price and performance for a wide variety of workloads. System boot volumes,Virtual desktops, Development and test environments. max IOPS 16K.
  • io1 / io2 (SSD): Highest-performance SSD volume for mission-critical low-latency or high-throughput workloads. Great for databases workloads (sensitive to storage perf and consistency). Max PIOPS: 64,000 for Nitro EC2 instances & 32,000 for other.
  • st1 (HDD): Low cost HDD volume designed for frequently accessed, throughput- intensive workloads. Big Data, Data Warehouses, Log Processing.
  • sc1 (HDD): Lowest cost HDD volume designed for less frequently accessed workloads.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

EBS multi attach

A

Attach the same EBS volume to multiple EC2 instances in the same AZ
* Each instance has full read & write permissions to the high-performance volume
* Use case:
* Achieve higher application availability in clustered
Linux applications (ex:Teradata)
* Applications must manage concurrent write operations
* Up to 16 EC2 Instances at a time
* Must use a file system that’s cluster-aware (not
XFS, EXT4, etc…)

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

How do you encrypt an unencrypted EBS volume attached to your EC2 instance?

A

Create an EBS snapshot of your EBS volume. copy the snapshot and click the option to encrypt the copied snapshot. use the encrypted snapshot to create a new EBS volume.

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

EFS

A
  • Elastic File System. Managed NFS (network file system) that can be mounted on many EC2
  • EFS works with EC2 instances in multi-AZ
  • Highly available, scalable, expensive (3x gp2), pay per use
  • Mounting 100s of instances across AZ * EFS share website files (WordPress)
  • Only for Linux Instances (POSIX)
  • EFS has a higher price point than EBS * Can leverage EFS-IA for cost savings
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Instance Store

A
  • EBS volumes are network drives with good but “limited” performance
  • If you need a high-performance hardware disk, use EC2 Instance Store
  • Better I/O performance. USE WITH BIG IOPS DEMAND
  • EC2 Instance Store lose their storage if they’re stopped (ephemeral)
  • Good for buffer / cache / scratch data / temporary content
  • Risk of data loss if hardware fails
  • Backups and Replication are your responsibility
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

EBS Snapshots

A

A backup (snapshot) of your EBS volume at a point in time.

not necessary to detach volume to do snapshot but recommended

can copy snapshots across AZ or region

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

EBS Snapshot Archive

A

move snapshot to an archive tier that is 75% cheaper

takes 24-72hours for restoring the archive

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

Recycle Bin for EBS Snapshots

A

setup rules to retain deleted snapshots so you can recover them after an accidental deletion (specify retention from 1 day to 1 year)

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

Fast Snapshot Restore

A

Force full initialization of snapshot to have no latency on the first use

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

AMI

A

Amazon Machine Image.
AMI are a customization of an EC2 instance.

you add your own software, configuration, operating system, monitoring.

Faster boot/configuration time because all of your software is pre-packaged.

Built for a specific region. they are unique for each AWS region. cannot launch in another region must be copied.

You can launch from:
1) Public AMI- aws provided
2)Your own AMI: you make and maintain them yourself
3) An 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
14
Q

Gp2/Gp3 (SSD)

A

EBS volume type. general purpose SSD volume that balances price and performance for a wide variety of workloads.

cost effective storage, low-latency.

GP3 is newer version. you can independently set IOPS and throughput where GP2 is linked.

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

io1/io2 block express (ssd)

A

EBS volume type. highest performance SSD volume for mission critical low-latency or high throughput workloads

critical business applications wiht sustained IOPS performance, apps that need more than 16K IOPS. great for database workloads.

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

ST1

A

EBS volume type. low cost HDD volume designed for frequently accessed, throughput intesnive workloads

cannot be a boot volume.

125 GB to 16 TB
Big data, data warehouses, log processing.

16
Q

SC1

A

EBS volume type. lowest cost HDD volume designed for less frequently accessed workloads.

cannot be a boot volume.

17
Q

EBS Volumes are characterized in

A

size, throughput, IOPS

18
Q

EFS Performance Settings:

A

Bursting- have the throughput scale with the amount of storage you’re using.

Elastic- regardless of size of EFS file system, we’ll give you all the IO you need and you only pay for what you use. good for unpredictable workloads.

Provisioned-you know in advance the throughput you’re going to need.

19
Q

What happens to root and other ebs volume when instance is terminated.

A

root volume deleted, other volume not deleted.

20
Q

How to encrypt an unencrypted EBS volume?

A

1) create EBS snapshot of EBS volume
2) copy snapshot and tick option to encrypt the copied snapshot
3) use copied encrypted snapshot to create a new EBS volume