Section 7: AWS Fundamentals: ELB + ASG Flashcards
What is ELB?
ELB (Elastic Load Balancer) is a managed load balancer. They are servers that forward traffic to multiple servers.
What are the v2 (new generation) Load Balancers?
Application Load Balancer (ALB) compatible with HTTP, HTTPS, WebSocket
Network Load Balancer (NLB) compatible with TCP, TLS, UDP.
What is the Load Balancer that allows to deal with TCP and UDP traffic to your instances?
Gateway Load Balancer (GWLB) which operates at layer 4 - IP Protocol
How many ways can ELBs can be set up?
- Internal (Private)
- External (Public)
What are Security Groups for ELBs?
- HTTP (80)
- HTTPS (443)
- Users will be able to hit Load Balancer with classic HTTP, HTTPS
- EC2 instances will only allow traffic from load balancer (security group)
What type of Load Balancer would you pick to handle millions of requests per second?
Network Load Balancer
Which Load Balancer should be chosen when is important to analyze the network traffic?
Gateway Load Balancer
Which Load Balancer has less latency (~100ms)?
Network Load Balancer.
Which Load Balancer has one static IP per Availability Zone?
Network Load Balancer.
What are target groups for Network Load Balancers?
Target groups are a group of EC2 instances.
Which Load Balancer uses the GENEVE protocol?
Gateway Load Balancer
Which port does the GENEVE protocol implement?
Port 6081
What are the target groups for Gateway Load Balancers?
- Group of EC2 instances
- IP Addresses (Must be private IPs).
What are Sticky Sessions?
Also known as Session Affinity, a client is always redirected to the same instance behind a load balancer. Available for Application Load Balancer and Network Load Balancer.
How Sticky Sessions are implemented?
Cookie is sent from client to load balancer. The cookie used for stickiness has an expiration date that can be controlled.
What is a Pro and a Con of stickiness?
Pro: The user does not lose its session data.
Con: It may bring imbalance to the load over the backed EC2 instances.
What are the types of Sticky Sessions?
- Application-based cookies
- Custom cookie
Generated by the target - Application cookie
Generated by the load balancer
- Custom cookie
- Duration-based cookies
Cookie generated by the load balancer
How does With Cross-Zone Load Balancing work?
Each load balancer instance distributes evenly across all registered instances in all AZ.
How does Without Cross-Zone Load Balancing work?
Request are distributed in the instances of the node of the Elastic Load Balancer
Which type(s) of Load Balancer has cross-zone load balancing by default?
Application Load Balancing
Why type(s) of Load Balancer has the cross-zone load balancing disabled by default?
Network and Gateway Load Balancers
Which Load Balancer(s) will get charged if the cross-zone load balancing is enabled?
Network and Gateway Load Balancers
What is connection draining?
AKA Deregistration Delay, while an instance is de-registering or becomes unhealthy, the LB will give enough time to complete requests. Once the instance is drained, the LB will stop sending requests to such instance.
ALBs can route traffic to different Target Groups based on:
- URL Path
- Hostname
- HTTP Headers
- Query Strings