Elastic Load Balancer Flashcards
How many types of load balancers are available in AWS, and what are they called?
Three:
Classic Load Balancer (CLB)
Application Load Balancer (ALB)
Network Load Balancer (NLB)
When is a v1 load balancer recommended?
Trick question - they are not recommended. They should be avoided and/or migrated to v2.
What is the main difference between ALB and NLB?
The ALB is a true layer-7 load balancer which understands HTTP, HTTPS, WebSocket etc. The NLB is not a layer-7 device and only understands TCP, UDP and TLS.
When would you choose an ALB over an NLB?
If your application used HTTP, HTTPS, etc you would use an ALB.
What’s the difference between an Internet-facing and an Internal LB?
The internet-facing LB assigns public and private IP addresses to the nodes. The internal LB only assigns private IP addresses to the nodes.
True or False: an internal load balancer has private IPs, whereas an Internet-facing load balancer has public IPs.
False. An Internet-facing load balancer has public AND private IPs.
What happens if a load balancer node in a subnet fails?
The service will automatically recover by spinning up another node.
True or False: there can only be one LB node per subnet.
False.
There can be multiple nodes per subnet, because the service automatically scales out according to demand.
True or False: the DNS A-record for an ELB points to the ELB front-end interface.
False. The DNS A-record resolves to the IP addresses of all nodes.
What is the function of listeners?
A listener checks for connection requests from clients, using the protocol and port that you configure, and forwards requests to a target group.
Whereabouts in the ELB configuration are Rules defined?
In the Listener.
What is the function of a target group?
A target group routes requests to one or more registered targets, using the protocol and the port number that you specify.
True or False: You can have one or more listeners on a v2 Elastic Load Balancer
True.
True or False: You can register a target with multiple target groups.
True.
True or False: Health checks are configured on a per Target Group basis.
True.
Health checks are performed on all targets registered to a target group.
How many rules per listener can be configured on a Network Load Balancer?
One.
Each listener has one rule.
On an Application Load Balancer, how many rules per listener can be configured?
A minimum of one - the default rule - must be configured for each listener. Additional rules can also be configured.
True or False: Internet-facing LB nodes can only access public instances.
False. Internet-facing LB nodes can distribute requests across public and private instances.
True or False: ELBs can load-balance all sorts of AWS services, not just EC2 instances.
True.
When deploying an ELB into subnets, what’s the minimum number of free IP addresses that must be available in each subnet?
Eight.
What is the AWS recommended minimum subnet size for ELBs?
/27
True or False: a /28 is sufficient for deploying an ELB.
True. But remember that the official AWS recommended minimum is /27. If the exam question has both /27 and /28 as possible answers, then choose /27. If /27 is not a possible answer, then /28 is probably the right answer.
What is the typical use for an internal LB?
They are placed between application tiers, allowing scaling between application tiers.
What problem did the introduction of cross-zone load balancing solve, and how?
Originally, a LB node in an AZ could only distribute requests across the registered instances in that AZ. This could result in uneven load distribution, particularly if an AZ had fewer instances.
Cross-zone LB allows LB nodes to distribute requests across all registered instances in ALL availability zones.
What is cross-zone load balancing?
The ability to load balance across availability zones.
True or False: For ALBs, is cross-zone load balancing enabled by default?
Yes
True or False: For NLBs, is cross-zone load balancing enabled by default?
No
With NLBs there are two places where cross-zone load balancing can be configured. What are they?
- At the load-balancer level.
- At the target group level.
What is an ELB feature that can help with uneven distribution of load?
Cross-zone load balancing.
Can an internet facing LB distribute requests to private instances?
Yes
True or False: an internet facing LB cannot distribute requests to both private and public instances at the same time.
False. An internet facing LB can distribute requests to private or public instances. Instances do not have to be public in order to work with an internet-facing LB.
What does SNI mean and what does it do?
SNI = Server Name Identification.
It is an extension to the TLS protocol that allows a server to present multiple SSL/TLS certificates on the same IP address and port number.