Availability and Scalability - ELB Flashcards
What is the purpose of a load balancer?
A load balancer forwards incoming traffic to multiple backend EC2 instances to distribute the load evenly.
Why should you use a load balancer in your infrastructure?
It provides a single access point to the application, handles failures, performs health checks on EC2 Instances, provides SSL termination, and scales traffic across instances.
What are health checks in a load balancer?
Health checks are used by the load balancer to verify if an EC2 instance is functioning properly. If not, traffic is not routed to that instance.
What are the four types of managed load balancers in AWS?
Classic Load Balancer (CLB)
Application Load Balancer (ALB)
Network Load Balancer (NLB)
Gateway Load Balancer (GWLB)
What is the Application Load Balancer (ALB) used for?
ALB supports HTTP, HTTPS, and WebSocket protocols, and is used for routing traffic based on URL, content, and host.
What is the Network Load Balancer (NLB) used for?
NLB supports TCP, TLS, and UDP protocols and is used for high-performance applications needing low latency and high throughput.
What is the Gateway Load Balancer (GWLB) used for?
GWLB operates at the network layer, using IP protocol for routing traffic and integrating with third-party virtual appliances.
What is the difference between internal and external load balancers?
Internal load balancers handle private traffic, usually within a VPC.
External load balancers handle public traffic, like web applications.
What is the security configuration for a load balancer?
The load balancer’s security group allows traffic from anywhere (0.0.0.0/0) on ports 80 or 443 (HTTP/HTTPS).
What is the security configuration for EC2 instances behind a load balancer?
EC2 instances should only allow traffic originating from the load balancer’s security group, enhancing security.
What are the advantages of using Elastic Load Balancer (ELB) on AWS?
ELB is managed by AWS, provides high availability, handles scalability and failures, integrates with many AWS services, and is cost-effective compared to managing your own load balancer.
What is SSL termination in the context of a load balancer?
SSL termination means that the load balancer decrypts HTTPS traffic, relieving backend instances from handling encryption.
What type of traffic does an Application Load Balancer (ALB) handle?
ALB is a Layer 7 load balancer, meaning it handles HTTP/HTTPS
traffic.
What is a target group in the context of an Application Load Balancer?
A target group is a set of backend servers or EC2 instances that the load balancer routes traffic to.
How does Application Load Balancer route traffic?
ALB routes traffic based on URL paths, host names, query strings, and headers to different target groups.