High Availability and Scalability Flashcards

This is to have mastery on Elastic Load Balancer and Auto-Scaling Group Concepts

1
Q

A Type of ELB that is very useful for extreme performance, TCP or UDP Traffic

A

Network Load Balancer (v2)

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

How many static IP does an NLB has per AZ?

A

NLB has one static IP per AZ and supports Elastic IP (helpgul for whitelisting speciifc IP)

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

What are the valid Target Groups for a Network Load Balancer?

A

EC2 Instances
IP Addresses - must ne private IPs
Application Load Balancer

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

It can be used to Deploy, scale and amnage fleet of 3rd party network, virtual applicances in AWS

Example Firewalls, Intrusion Detection, and Prevention System, Deep packet Inspection and payload manipulation at the network level

A

Gateway Load balancer

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

What are the valid Taget Groups for Gateway Load Balancer

A

EC2 Instances
IP Addresses – must be private

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

It is possible to implement stickiness so that the same client is always redirected to the same instance behind a load balancer

A

Sticky Session (Session Affinity)

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

How does an Application\Network Load Balancer implement Session Affinity or Sticky Sessions?

A

By Using cookies

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

What are the two types of cookies used by ELB?

A

Application-based cookie and Duration-based cookie

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

This solves the problem of loading multiple SSL certificates onto one web server (to serve multiple websites) It is a newer protocol and requires to indicate the hostname of the target server in the initial SSL Handshake. Only works with ALB and NLB

A

SSL – Server Name Indication

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

It’s goal is to Scale Out (add EC2 Instances) to match an increased load and Scale in (remove EC2 instances) to match the decreased load.

A

Auto-Scaling Group

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

What is inside a Launch Template for ASG?

A

AMI, Instance type, EBS, IAM Role, Security Group, VPC

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

ASG - Scaling Policy
What Dynamic Scaling can you use for this use case below

I want the average ASG CPU to stay at around 40%

A

Target Tracking Scaling

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

ASG - Scaling Policy
What Dynamic Scaling can you use for this use case below:

When a CloudWatch Alarm is triggered (example CPU >70%), then add 2 units

When a CloudWatch alarm is triggered (example CPU < 30 %), then remove 1

A

Simple / Step Scaling

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

ASG - Scaling Policy
What Dynamic Scaling can you use for this use case below:

Anticipate a scaling based on known usage paterns

Example: increase the min capacity to 10 at 5 pm on Fridays

A

Scheduled Scaling

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

ASG - Scaling Policy
What Dynamic Scaling can you use for this use case below:

Contnuously forecast load and schedule scaling ahead

A

Predictive Scaling

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

During this period, the ASG will not launch or terminate additional instances (to allow for metric to stabilize)

A

ASG - Scaling CoolDowns

17
Q

Application Load balancers can route traffic to different target groups.
Enumerate the target groups

A

Hostname, Request URL, SourceIP

18
Q

What can you use to get original IP of incoming traffic passing through ELB?

A

Use X-Forwarded-For (XFF)

19
Q
A
19
Q

ALB has an advanced feature where you can route based on sub-domain header, path, and other HTTP(s) information

A

ELB Request Routing