ELB Flashcards
ELB types
- Application Load Balancers
- Network Load Balancers
- Classic Load Balancers
Limitation of Application Load Balancers
Only support HTTP and HTTPS
HTTPS Load balancing
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.
In which layer does Network Load Balancers operate?
At layer 4
When to use Network Load Balancers?
- When you need extreme performance
- When you need protocols not supported by Application Load Balancers
Can Network Load Balancers? decrypt traffic?
Yes, but you will need to install the certificate on the load balancer
What does 504 (Gateway timeout) mean in a Classic Load Balancer?
This means that the application is not responding within the idle timeout period
How to get the IPv4 address of the user with a Classic Load Balancer?
Look for the X-Forwarded-For header
Can sticky sessions be enabled for Application Load Balancers?
Yes, but the traffic will be sent at the target group level
An EC2 instance is removed from a pool, but the load balancer continues to direct traffic to that EC2 instance. How to solve it?
Disable sticky session
What are sticky sessions used for?
Enable your users to stick to the same EC2 instance. Can be useful if you are storing information locally on that instance.
What happens if the deregistration delay is enabled?
Existing connections are kept open if the EC2 instance becomes unhealthy.
What happens if the deregistration delay is disabled?
The load balancer will immediately close connections to the instances that are de-registering or have become unhealthy.
In which layer does Application Load Balancers operate?
Layer 7
In which layer does Classic Load Balancers operate?
Layer 4/7