EC2 Instance Storage Section Flashcards

1
Q

What is EBS?

A

Elastic Block Store - Volume is a network drive you can attach to your instances while they run

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

What is the advantaged of EBS?

A

It allows your instances to persist data, even after their termination

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

At EBS:

What do you have to pay for?

What happens if you require additional disk space?

A

You get billed for all the provisioned capacity
You can increase the capacity of the drive over time

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

What will happen by default when you terminate your EC2 instance for the root or other attached volume?

A
  • By default, the root EBS volume is deleted (attribute enabled)
  • By default, any other attached EBS volume is not deleted (attribute disabled)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are EBS Snapshots?

A
  • Make 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
6
Q

What is AMI

A

Amazon Machine Image

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)

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

From where You can launch EC2 instances?

A

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
8
Q

What is the AMI Process - from an EC2 instance(4 steps)?

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

What to do if you need a high-performance hardware disk? Why?

A

If you need a high-performance hardware disk, use EC2 Instance Store

  1. Better I/O performance
  2. EC2 Instance Store lose their storage if they’re stopped (ephemeral)
  3. Good for buffer / cache / scratch data / temporary content
  4. Risk of data loss if hardware fails
  5. Backups and Replication are your responsibility
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

6 types of EBS volumes:

A

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 (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

• EBS Volumes are characterized in Size | Throughput | IOPS (I/O Ops Per Sec)
• When in doubt always consult the AWS documentation – it’s good!

!!Only gp2/gp3 and io1/io2 can be used as boot volumes!!

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

What is 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 volume
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the use case for EBS multi attach?

A
  • Achieve higher application availability in clustered Linux applications (ex: Teradata)
  • Applications must manage concurrent write operations
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What can you do when you have EBS Encryption?

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 volumes created from the snapshot
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How to encrypt an unencrypted EBS volume in four steps?

A
  • Create an EBS snapshot of the volume
  • Encrypt the EBS snapshot ( using copy )
  • Create new ebs volume from the snapshot ( the volume will also be encrypted )
  • Now you can attach the encrypted volume to the original instance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is EFS?

A

Elastic File Service

  • 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What can be use case for amazon EFS?

A

Use cases: content management, web serving, data sharing, Wordpress

17
Q

Is EFS compatible with windows based AMI?

A

Compatible with Linux based AMI (not Windows)