Load Balancers Flashcards

1
Q

Elastic Load Balancer (ELB)

A

automatically distributes incoming application traffic across multiple targets
- can be done across multiple AZs

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

ELB Health Checks

A
  • all load balancers can be configured with health checks
  • sees which instances are healthy or unhealthy
  • stops sending requests to unhealthy requests (until they become healthy)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Application Load Balancer

A
  • http & https
  • INTELLIGENT
  • layer 7
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Network Load Balancer

A
  • layer 4 (connection level)
  • millions of requests per second
  • ultra-low latencies
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Classic Load Balancer

A
  • legacy
  • http/https
  • deprecated
  • EOL Aug 2022
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

ALB - listeners

A

check for connection requests from clients using the protocol and port you configure

  • http: port 80
  • https: port 443 w/ SSL certificate
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

ALB - rules

A

when conditions are met, then actions are performed

- each listener requires you to provide a default rule

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

ALB - target groups

A

route requests to one or more registered targets, such as EC2 instances, using the protocol and port you specify

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

How does https load balancing work?

A
  • uses port 443
  • you must deploy at least one SSL/TLS certificate on your load balancer
  • Load balancer uses a server certificate to terminate the front end connection, then decrypts requests from clients before sending them to the targets *
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

ALB Path-based routing - common exam scenario

A

Application Load balancer can determine which instance (target) to send user to based on path or url using path patterns

ex:
- send www.myurl.com to us-east-1a
- send www.myurl.com/images to us-east-1b

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

Network Load Balancers Protocols

A

TCP, TLS, UDP, TCP_UDP

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

Network Load Balancer Ports

A

1 - 65535

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

How many requests per second can Network Load Balancer handle?

A

millions

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

How are listeners different on NLBs than ALBs?

A
  • ALB listeners are intelligent and can check rules

- NLB listeners do not have rules, they are not intelligent, they only forward the request to the target group

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

Network Load Balancer Encryption

A
  • can use a TLS listener to offload the work of encryption and decryption to your load balancer
  • if the listener protocol is TLS, you must deploy exactly 1 SSL certificate on the listener
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Layer 4 Exam tips

A
  • layer 4 = extreme performance
  • other cases for ports other than 80 and 443
  • can decrypt traffic, but must install certificate on the NLB
17
Q

Classic Load Balancer

A
  • you can choose layer 7 or Layer 4
18
Q

X-Forwarded-For (Classic Load Balancer)

A

header used to see the IP v4 where original request came from

19
Q

Classic Load Balancer Gateway Timeouts

A
  • 504 error

load balancer is running, but can’t connect to the web or database layer

20
Q

Sticky Sessions for Classic Load Balancer

A
  • Classic Load Balancer
  • allows you to bind a user session to a specific Ec2 instance
  • ensures all requests are sent to same instance so you can store data locally to that instance
21
Q

Problems of Sticky Sessions on Classic Load Balancer

A
  • if the instance is unhealthy or terminated, the user still gets routed there. To solve this, disable sticky sessions
22
Q

Difference of Sticky Sessions on ALBs rather than CLBs

A
  • ALBs have sticky sessions, but they route to the target group, not to individual instances
23
Q

Deregistration Delay/Connection Draining

A

allows load balancers to keep existing connections open if the EC2 instance is de-registered or becomes unhealthy

  • lets the load balncer complete in-flight requests made to unhealthy instances
  • can be disabled if you want connections immediately closed*