Load Balancers Flashcards
What is an Elastic Load Balancer?
An aws managed load balancer. There are four types: classic, application, network, and gateway.
What are four types of Elastic Load Balancer?
1) Application load balancer
2) Network load balancer
3) Classic load balancer
4) Gateway load balancer
What is a Classic Load Balancer?
1) Operates at layer 4 and 7
2) Supports protocols: HTTP/HTTPS, TCP, and SSL/TLS.
3) No target groups. EC2 instances register directly with the load balancer.
4) Heath checks are: HTTP, HTTPS, or TCP.
What is an Application Load Balancer?
1) Operates at layer 7
2) Supports protocols: HTTP/HTTPS, WebSocket, HTTP/2, and gRPC
3) Load balances to multiple targets
4) Load balances to multiple application/ports on the same server
5) Support for custom HTTP responses
6) Supports redirects (HTTP to HTTPS traffic)
What is a Network Load Balancer?
1) Operates at layer 4
2) Supports TCP, UDP, and TLS
3) Handles 1 million requests per a second
4) Has one static IP per AZ
5) Static IP attaches to an ENI
What is a Gateway Load Balancer?
What is the health check HTTP code that is sent from the server(s) to the load balancer to verify health of thservers?
200 (OK)
An administrator is considering the different types of an AWS managed load balancer to setup load balancing for three web servers. For now, that type of traffic that would be load balanced are TCP/SSL connections. But there are future plans to include a chat function embedded in the UI. What is the best type of load balancer that meet these requirements?
Application load balancer because it can use the websocket protocol.
Which load balancer supports the websocket protocol?
Application load balancer
True or false: elastic load balancers only load balance traffic that is public facing.
False. Load balancing can be setup for either public or private access.
In order to enhance security with load balanced traffic, it is recommended to use two security groups: load balancer security group and EC2 instance security group. Is this the case?
Yes
Where is the EC2 instance security group expecting traffic if a user is accessing a web application? The load balancer does have a security group attached.
Source traffic is expected from the load balancer and not the end user.
What layer(s) does the classic load balancer operate at?
Layers 4 - 7
What is a listener?
It checks for connection requests from clients, using the protocol and port that you configure, and forwards requests to one or more registered instances using the protocol and port number.
What are health checks?
They used to monitor the health of the registered instances so that the load balancer only sends requests to the healthy instances.
You have 12 instances with ten running on AZ 1a and two instances in AZ 2b. The load balancer will distribute the traffic evenly between the two AZs. The EC2 instances in AZ 2b are slow to respond to client requests. What is the best solution to have traffic load balanced evenly between the two AZs?
Evenly divide the number of EC2 instances between the AZs with six on each AZ.
What will you need enable to distribute traffic evenly across all registered instances in all enabled Availability Zones?
cross-zone load balancing
For an application load balancer, what is the default routing algorithm?
Round robin
What load balancer has been deprecated since Aug 2022?
Classic load balancer with EC2 classic instances. Also known as version 1 elastic load balancer.
What is SNI?
Server Name Indicator
An extension to the Transport Layer Security (TLS) by which a client indicates which hostname it is attempting to connect to at the start of the handshaking process.
When configuring a load balancer, what is the recommended minimum subnet size?
/27
What is cross-zone load balancing?
Each load balancer node distributes traffic across the registered targets (EC2 instance) in all enabled Availability Zones.
If a load balancer is enabled between two AZs, how much traffic is load balanced between each AZ?
50% each
Why is it recommended to enable cross-zone load balancing if a load balancer sits between two AZ?
Since 50% of traffic is load balanced between the AZs, this would mean that an AZ with a smaller number of EC2 instances than the other AZ will still receive 50% of the traffic. This may degrade the EC2 instance if it has a high volume of traffic to process. Overall, this may cause intermittent slowness for some clients.
What is connection draining?
When instances are unhealthy or deregistered (taken out of the pool).
What is x-forwarded for?
They are HTTP headers that preserve the information from the client. Three things that are preserved:
1) client ip
2) client protocol (http or https)
3) client port (80 or 443)