Load Balancer Flashcards

1
Q

Elastic Load balancer provide a _______

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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?

A

Modify your website backend to get the client IP address form the X-forwarded-for header

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Application Load Balancers can route traffic to different Target Groups based on the following, except

  1. client’s location
  2. hostname
  3. request URL
  4. source IP address
A

1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

From the type of Elastic Load balancer which one of them can you attach Elastic IP

A

Network Load Balancer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what will happen when When an EC2 instance fails the ALB Health Checks, it is marked unhealthy

A

The ASG will terminate the EC2 instance and launch a new one

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the default termination policy for auto scaling group

A

It tries to balance across AZs first, then terminates based on the age of the Launch Configuration.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what happens in the cooldown period

A

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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which of the load balancer has one static IP address per AZ

A

Network Load balancer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly