Load Balancing Flashcards
What is an ELB?
Elastic Load Balancer, managed by Amazon (AWS takes care of upgrades etc)
What are the four types of managed load balancer?
Classic load balancer (CLB) - deprecated. Application load balancer (ALB). Network load balancer (NLB) and Gateway load balancer (GLB).
What protocols does the ALB (application load balancer) use?
HTTP, HTTPS & WebSocket
What protocols does the NLB (network load balancer) use?
TCP, TLS, UDP
What protocols does the GLB (gateway load balancer) use?
IP (operates at network layer 3)
Can a ALB support multiple applications?
Yes
What can a ALB target group contain?
EC2 instances (can be managed by an auto-scaling group), ECS tasks, Lambda functions, private IP addresses
Can the network load balancer have more than one static IP per AZ?
No
What protocols does the network load balancer target group health check support?
TCP, HTTP, HTTPS
Describe the main use-case for a gateway load balancer?
Network traffic enters the GLB and using a target group is balanced across appliances to monitor traffic (firewall, intrusion detection for example). Traffic exits the GLB and continues to its destination, or the traffic can be dropped.
What is SNI?
Server Name Indication - allows using multiple SSL certificates for different ELB target groups / websites
What is an ASG?
Auto Scaling Group
What is a launch template (for ASG)?
Describes how an EC2 instance should be created by an ASG. Contains attributes like the AMI, instance type, ESB volumes, security groups, IAM role, VPC/SubNet, Load Balancer
You have an Auto Scaling Group fronted by an Application Load Balancer. You have configured the ASG to use ALB Health Checks, then one EC2 instance has just been reported unhealthy. What will happen to the EC2 instance?
The ASG will terminate the instance, a new instance will be created in its place.
An application is deployed with an Application Load Balancer and an Auto Scaling Group. Currently, you manually scale the ASG and you would like to define a Scaling Policy that will ensure the average number of connections to your EC2 instances is around 1000. Which Scaling Policy should you use?
Target Tracking Policy