EBS, ELB & ASG Flashcards

1
Q

What is EBS? What are it’s limitations?

A

Elastic Block Storage - a network drive that u can plug into a EC2 Instance like a USB Stick when they run and saves data even after they shut down.

One EBS Volume is bound to one AZ and cannot be attached to multiple EC2 at once, but multiple EBS can be attached to one EC2. (with the exception of EBS Multi Attach)

You get billed for the provisioned capacity.

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

What is EBS delete on termination?

A

It mean that upon termination of EC2 the attached EBS will be deleted.
It is on per default on the root EBS of EC2.

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

How does a EBS get attached to the Machine?

A

On the virtual level it gets treated as a partition of the drive.

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

What is EBS Snapshot?

A

It is a backup that also allows to transfer the data between different AZs.

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

How does the archive of EBS Snapshots work?

A

Archive tier is 75% cheaper but takes between 24h and 72 hrs to restore

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

What is AWS Recycle bin?

A

After deletion of a EBS Snapshot the data gets stored for specified retention time between 1 day and 1 year

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

What is AMI

A

Amazon Machine Image - customization of an EC2 instance with our configuration allowing for better startup time as everything is already pre-packaged.
There are build for specific region but can be copied across them.
It allows for much faster bootup

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

Where can u get an AMI from?

A
  1. AWS provides public AMIs
  2. You can make your own and maintain it as well
  3. AMI Marketplace - somebody else made them and maintains them (potentially requires payment)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How to make AMI?

A
  1. Lauch EC2 and customize it
  2. Stop it (for data integrity)
  3. Build AMI - also creates EBS Snapshots
  4. Lauch it somewhere else :)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is EC2 Image Builder?

A

Used to automate creation, maintainability, validation and testing of EC AMIs

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

What is EC Instance Store?

A

It’s high-performance hardware drive attached to EC2. (physical connection)
Better I/O performance

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

What does it mean that EC2 Instance Store is ephemeral

A

The Store is ephemeral (only as long as not stopped or hardware failure)
great for buffering / cache / temporary content
but if needs saving then has to be transfered to EBS
Backups and restoration is users responsibility.

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

What is AWS EFS?

A

Elastic File System, kind of a Network File System that can be mounted on 100s of EC2 at the same time.

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

What are benefits and restrictions of AWS EFS?

A

It only works with linux instances of EC2, however can be used across different AZs.
It is pretty expensive and u pay per use (no need to reserve space)

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

What is a EFS Mount Target?

A

It’s a mount access point within an AZ that allows the EC2 instances of the AZ to connect to the EFS

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

What is EFS IA (Infrequent Access) and how does it work?

A

Storage class optimized for files that are not accessed every day.
offers up to 92% lower cost compared to normal EFS.
By setting a lifecycle policy we say that after not using (reading nor writing) a file for a specific timeframe (say 60 days) file should be moved to EFS IA.
It’s not visible to a user nor system (only cost -optimization in the backend)

17
Q

What are the responsibilities of AWS EC2 Storage?

A

AWS -> Hardware and Network, Replication
User -> Backups, Data Encryption, Risk managment

18
Q

What is Amazon FSx?

A

High Performance file systems on AWS.

19
Q

What are the FSx types?

A
  1. FSx for windows file Server (WFS) - Windows native built on WFS. Supports Windows NTFS and SMB Protocol
  2. FSx for Lustre - made for (HPC) Linux + cluster. Able to scale to 100s GB/s, millions of IOPS and sub-ms latencies. Data is then usually linked to an S3 Bucket.
20
Q

What is vertical scalability?

A

Increasing size of the instance. (More RAM, Computing power etc) (scaling up/down)

21
Q

What is horizontal scalability?

A

Increasing number of instances. This implies an distributed system. (scaling out or in)

22
Q

What does high availability mean in context of AWS?

A

Running the application in at least 2 different AZs (Surviving a data center loss)

23
Q

What does Elasiticity mean in context of AWS?

A

Applying auto-scaling for a system to match the load it’s receiving. (pay-per-use, match demand, optimize costs)

24
Q

What does Agility mean in context of AWS?

A

new IT Resources are only a click away (time reduced from weeks to minutes)

25
Q

What is AWS ELB?

A

Elastic Load Balancer, that forwards traffic to EC2 Instances downstream.

26
Q

What are benefits of AWS ELB?

A
  1. Exposing single point of access (DNS)
  2. Allowing seamless handle of failures downstream, by doing health checks
  3. Provide HTTPS for the websites
  4. Provide High Availability thanks to multiple AZs
27
Q

What are 3 kinds of ELBs offered by AWS?

A
  1. Application layer (HTTP / HTTPs only) - Layer 7
  2. Network Load Balancer (Ultra high performance for UDP/TCP) - Layer 4
  3. Gateway Load Balancer - Layer 3
28
Q

What does the Application Load Balancer do?

A

It distributes the HTTP / HTTPs / gRPC protocols of layer 7
It has HTTP routing functions
It offers static DNS (URL)

29
Q

What does Network Load Balancer do?

A

it works on TCP/UDP protocol of layer 4
Very high performance with millions of request per second
Offers static IP through Elastic IP

30
Q

What is Gateway Load Balancer do?

A

It works with GENEVE Protocol on IP packets of layer 3
It manages Route Traffic to Firewalls that we maange on EC2 Instances
Offers Intrusion detection and deep paket inspection by having a special EC2 Instance that receives the pakets from GLB and analyses the incoming pakets before returning them to the GLB to be forwarded to Application

31
Q

What is an Auto Scaling Group (ASG)

A

It automatically scales out and in depending on the traffic to ensure that we are having the minimum costs for the current load on the server without users noticing.
Also in case of the Application being unhealthy we can deregister it and start up a new one :)

32
Q

How does the ASG work?

A

We set Desired Capacity, the minimum size and maximum.
Eg. minimum one EC2, desired 3 EC2 Instances and max 5 EC2 Instances

33
Q

What ASG Strategies are there?

A
  1. Manual Scaling
  2. Dynamic Scaling - respond to changing demand
    a) Simple / Step Scaling - when CloudWatch alarm is triggered (e.g. CPU > 70% / CPU < 30%)
    b) Target Tracking Scaling - e.g Average CPU of all Instances should be around 40 %
    c) Scheduled Scaling - We anticipate patterns to occur that e.g. 10 pm to 4 am on fridays we need more capacity
  3. Predictive Scaling - uses ML based on the past traffic, automatically provisioning the correct number of instances in advance.