HA Archictecture Flashcards
What are the three type of elastic load balancer available on aws?
Application load balancers.
Network load balancers.
Classic load balancers.
What layer do application load balancers operate on?
Layer 7.
What layer do network load balancers operate on?
Layer 4
What layers do classic load balancers operate on?
Layer 4 and 7.
Network load balancers are used in what use cases?
Where extreme performance is required and for applications that only use tcp to communicate.
For classic load balancers, what error code is returned if your application or database fails to respond?
504 - gateway timeout
What header can be used to obtain the clients ipv4 address when receiving traffic from an elb?
X-Forwarded-For
Sticky sessions for classic load balancers, they allow you to…
Bind a user’s session to a specific ec2 instance.
How do sticky sessions differ in application load balancers to classic ones?
The traffic is routed to the target group level instead of the instance level.
When you come across a problem where you have a load balancer always having traffic directed to one instance or target group, what should you check first?
Rule out sticky sessions by checking if it is disabled or not.
What does cross zone load balancing allow you to achieve?
It allows you to route traffic from one elb from one availability zone to instances in another availability zone.
Path patterns allow you to…
Route traffic to certain ec2 instances or micro services based on the url path, eg images calling to another ec2 where application code to executes on a different route of traffic.
Auto Scaling consists of three components these are..
Groups - web svr group or app svr group.
Configuration templates - consist of launch templates or launch configurations that specify the spec of the instances to be creating in the auto scaling group.
Scaling options - provides the options of how you want to your auto scaling group to scale, this can be dynamic and rely on conditions or be done on a scheduled basis.
What are the five auto scaling options?
Maintain current instance levels at all times. Scale manually. Scale based on a schedule. Scale based on demand. Scale based on predictive scaling.
When you delete your auto scaling group all instances running in that group will…
Terminate if they were created by that auto scaling group.