Load Balancing Flashcards

1
Q

What is an ELB?

A

Elastic Load Balancer, managed by Amazon (AWS takes care of upgrades etc)

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

What are the four types of managed load balancer?

A

Classic load balancer (CLB) - deprecated. Application load balancer (ALB). Network load balancer (NLB) and Gateway load balancer (GLB).

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

What protocols does the ALB (application load balancer) use?

A

HTTP, HTTPS & WebSocket

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

What protocols does the NLB (network load balancer) use?

A

TCP, TLS, UDP

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

What protocols does the GLB (gateway load balancer) use?

A

IP (operates at network layer 3)

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

Can a ALB support multiple applications?

A

Yes

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

What can a ALB target group contain?

A

EC2 instances (can be managed by an auto-scaling group), ECS tasks, Lambda functions, private IP addresses

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

Can the network load balancer have more than one static IP per AZ?

A

No

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

What protocols does the network load balancer target group health check support?

A

TCP, HTTP, HTTPS

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

Describe the main use-case for a gateway load balancer?

A

Network traffic enters the GLB and using a target group is balanced across appliances to monitor traffic (firewall, intrusion detection for example). Traffic exits the GLB and continues to its destination, or the traffic can be dropped.

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

What is SNI?

A

Server Name Indication - allows using multiple SSL certificates for different ELB target groups / websites

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

What is an ASG?

A

Auto Scaling Group

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

What is a launch template (for ASG)?

A

Describes how an EC2 instance should be created by an ASG. Contains attributes like the AMI, instance type, ESB volumes, security groups, IAM role, VPC/SubNet, Load Balancer

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

You have an Auto Scaling Group fronted by an Application Load Balancer. You have configured the ASG to use ALB Health Checks, then one EC2 instance has just been reported unhealthy. What will happen to the EC2 instance?

A

The ASG will terminate the instance, a new instance will be created in its place.

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

An application is deployed with an Application Load Balancer and an Auto Scaling Group. Currently, you manually scale the ASG and you would like to define a Scaling Policy that will ensure the average number of connections to your EC2 instances is around 1000. Which Scaling Policy should you use?

A

Target Tracking Policy

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

Describe the target tracking auto scaling policy (ASG)

A

Define a target value of a metric for example CPU to stay around 40% - cloud watch alarms are automatically created to achieve this.

17
Q

Describe the simple step scaling auto scaling policy (ASG)

A

Uses cloud watch alarms to scale out or in by a predefined quantity. For example when CPU > 80% then add 2 units.

18
Q

Describe the scheduled scaling auto scaling policy (ASG)

A

Anticipate scaling based on known usage patterns, for example increase the min capacity on Friday afternoons.

19
Q

Describe the predictive scaling auto scaling policy (ASG)

A

Continuously forecast load and schedule scaling ahead

20
Q

What are some good examples of metrics to perform autoscaling on (ASG)

A

CPU utilisation, request count per target, average network in/out, any custom metric pushed to cloud watch

21
Q

What is the auto scaling group cooldown feature?

A

After an autoscale event the ASG will enter a cooldown phase where it waits for metrics to stabilise before reacting to more autoscale events.