Load Balancer Flashcards

1
Q

What is the primary purpose of a load balancer?

A

To distribute incoming network traffic across multiple servers to improve performance

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

What is the difference between a reverse proxy and a load balancer?

A

A reverse proxy forwards client requests to one or more servers

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

Name three key features of a reverse proxy.

A

Security (hiding server IPs)

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

What are the key features of a load balancer?

A

Distributing requests evenly

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

What is the purpose of load balancing algorithms?

A

To decide how to distribute incoming traffic across servers.

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

How does the round-robin algorithm work?

A

It sequentially distributes requests to servers in a loop.

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

When is the least connections algorithm most useful?

A

When requests vary in duration

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

How does the weighted round-robin algorithm work?

A

It assigns weights to servers based on capacity and distributes requests proportionally.

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

What is the use case for the IP hash algorithm?

A

Applications requiring session persistence by routing requests from a specific client IP to the same server.

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

What is the primary difference between Layer 4 and Layer 7 load balancing?

A

Layer 4 uses network information (IP/port)

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

Give an example of Layer 7 load balancing use cases.

A

URL-based routing

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

What protocols are supported by Layer 4 load balancing?

A

TCP and UDP.

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

Which load balancing layer has higher latency and why?

A

Layer 7

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

What is horizontal scaling?

A

Adding more servers to a system to handle increased traffic.

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

How does horizontal scaling benefit applications?

A

It provides scalability and fault tolerance by distributing traffic and reducing single points of failure.

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

What is the difference between horizontal and vertical scaling?

A

Horizontal scaling adds servers

17
Q

What are health checks in load balancers?

A

Periodic tests to ensure that servers are functioning properly; failing servers are removed from the pool.

18
Q

What are sticky sessions?

A

A feature that ensures a user’s requests are consistently routed to the same server.

19
Q

What is SSL termination?

A

Handling SSL encryption and decryption at the load balancer to reduce the load on backend servers.

20
Q

How does autoscaling integrate with load balancers?

A

It dynamically scales server instances based on traffic patterns