ELB + ASG Flashcards
What are the benefits of using an ELB?
- 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
What are the three types of load balancers available at AWS and its characteristics?
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
What if you want fixed IP addresses on your application and features like path or query string routing?
You can create a Network Load Balancer and a ALB as a target group of it.
The users of the application are complaining that when they are navigating through your app, it keeps asking for authentication. What can you do?
Implement sticky sessions. This way, the users requests will be sent to the same EC2 instance. However, this can overload some instances.
What is cross zone load balancing?
When enabled, EC2 instances located in different AZs will have the load distributed evenly accross all AZs.
What is connection draining?
Time to complete in-flight requests while the instance is terminating or deregistering (unhealthy)
You have an application that increase the load the same time every day. What kind of scaling policy should be used?
Schedule actions or even predictive scaling, that forecast the load and scale based on it.