ELB Flashcards

1
Q

ELB types

A
  • Application Load Balancers
  • Network Load Balancers
  • Classic Load Balancers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Limitation of Application Load Balancers

A

Only support HTTP and HTTPS

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

HTTPS Load balancing

A

To use an HTTPS listener, you must deploy at least one SSL/TLS server certificate on your load balancer. The load balancer uses a server certificate to terminate the frontend connection and then decrypt requests from clients before sending them to the targets.

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

In which layer does Network Load Balancers operate?

A

At layer 4

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

When to use Network Load Balancers?

A
  • When you need extreme performance

- When you need protocols not supported by Application Load Balancers

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

Can Network Load Balancers? decrypt traffic?

A

Yes, but you will need to install the certificate on the load balancer

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

What does 504 (Gateway timeout) mean in a Classic Load Balancer?

A

This means that the application is not responding within the idle timeout period

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

How to get the IPv4 address of the user with a Classic Load Balancer?

A

Look for the X-Forwarded-For header

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

Can sticky sessions be enabled for Application Load Balancers?

A

Yes, but the traffic will be sent at the target group level

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

An EC2 instance is removed from a pool, but the load balancer continues to direct traffic to that EC2 instance. How to solve it?

A

Disable sticky session

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

What are sticky sessions used for?

A

Enable your users to stick to the same EC2 instance. Can be useful if you are storing information locally on that instance.

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

What happens if the deregistration delay is enabled?

A

Existing connections are kept open if the EC2 instance becomes unhealthy.

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

What happens if the deregistration delay is disabled?

A

The load balancer will immediately close connections to the instances that are de-registering or have become unhealthy.

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

In which layer does Application Load Balancers operate?

A

Layer 7

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

In which layer does Classic Load Balancers operate?

A

Layer 4/7

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

What are Health Checks used for in load balancers?

A

To route your traffic to instances or targets that are healthy

17
Q

Components of Application Load Balancers

A
  • Listeners: A listener checks for connection requests from clients, using the protocol and port you configure
  • Rules: Determine how the load balancer routes request to its registered targets. Each rule consists of a priority, one or more actions, and one or more conditions.
  • Target Groups: Each target group routes requests to one or more registered targets, such as EC2 instances, using the protocol and por numbers you specify.