ELB + ASG Flashcards

1
Q

What are the benefits of using an ELB?

A
  • health checks enables to forward traffic to only healthy instances
  • expose a single point of access to your application
  • all your instances will have the same load
  • provide SSL termination
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the three types of load balancers available at AWS and its characteristics?

A

ALB
* Layer 7 load balancer
* It is possible to balance the load based on path, hostname, query string, headers
* great fit for containers, micro services

NLB
* Layer 4 LB
* great for applications that require a very high performance
* one static IP per AZ

GWLB
* useful to analyze incoming traffic
* make traffic go through 3rd party security virtual appliances

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

What if you want fixed IP addresses on your application and features like path or query string routing?

A

You can create a Network Load Balancer and a ALB as a target group of it.

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

The users of the application are complaining that when they are navigating through your app, it keeps asking for authentication. What can you do?

A

Implement sticky sessions. This way, the users requests will be sent to the same EC2 instance. However, this can overload some instances.

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

What is cross zone load balancing?

A

When enabled, EC2 instances located in different AZs will have the load distributed evenly accross all AZs.

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

What is connection draining?

A

Time to complete in-flight requests while the instance is terminating or deregistering (unhealthy)

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

You have an application that increase the load the same time every day. What kind of scaling policy should be used?

A

Schedule actions or even predictive scaling, that forecast the load and scale based on it.

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