Load Balancer Flashcards
Elastic Load balancer provide a _______
static DNS name we can use in our application,
The reason is that AWS wants your load balancer to be accessible using a static endpoint, even if the underlying infrastructure that AWS manages changes.
You are using an Application Load Balancer to distribute traffic to your website hosted on EC2 instances. It turns out that your website only sees traffic coming from private IPv4 addresses which are in fact your Application Load Balancer’s IP addresses. What should you do to get the IP address of clients connected to your website?
Modify your website backend to get the client IP address form the X-forwarded-for header
Application Load Balancers can route traffic to different Target Groups based on the following, except
- client’s location
- hostname
- request URL
- source IP address
1
From the type of Elastic Load balancer which one of them can you attach Elastic IP
Network Load Balancer
what will happen when When an EC2 instance fails the ALB Health Checks, it is marked unhealthy
The ASG will terminate the EC2 instance and launch a new one
What is the default termination policy for auto scaling group
It tries to balance across AZs first, then terminates based on the age of the Launch Configuration.
what happens in the cooldown period
In this period, the ASG doesn’t launch or terminate EC2 instances. This gives time to metrics to stabilize. The default value for the Cooldown Period is 300 seconds (5 minutes).
Which of the load balancer has one static IP address per AZ
Network Load balancer