Section 4: AWS Fundamentals: ELB + ASG + EBS Flashcards
What does ELB stand for?
Elastic Load Balancer (EC2 Load Balancer)
What are load balancers?
Servers that forward internet traffic to multiple servers (EC2 instances) downstream
How to access the application faced by a LB?
By using the DNS of the LB
What happens to the instances that crash / stop responding correctly?
They get terminated by the LB and the LB will then forward the traffic to other instances
How does the LB knows the health status of the instances?
By doing regular health checks to the instances
How does the LB help with security?
It provides SSL termination for your web apps and separate public traffic from private traffic
What is the benefit of using an ELB rather than a custom load balancer?
AWS guarantees that it will be working and handle updates and maintenance.
It is integretad with many AWS offerings
What are the three types of ELB?
Classic Load Balancer (CLB, deprecated)
Application Load Balancer (ALB)
Network Load Balancer (NLB)
How does an ELB perfom a health check on an instance?
It pings a port and a route (e.g. /health) and makes sure the response has a status of 200 (OK)
What protocol does the ALB serves?
HTTP, HTTPS, Websockets (Layer 7 - Application Layer)
What do ALB allow you to do?
Load balance to multiple HTTP applications across machines (target group)
Load balance to multiple applications on the same machine (containers)
On what parameters can an ALB load balance traffic on?
Route (e.g. /users)
Hostname (domain) (e.g example.com)
What are good use cases for ALB?
Micro services
Container based application (Docker & Amazon ECS)
What does ECS stand for?
Elastic Container Service
If we didnโt have ALBs, how could we get the same result with the CLB?
We would need to create one CLB per application (expensive and inefficient)
What is a target group
A target group is a group of EC2 instances which are targetted by a LB.
At what level can stickiness be enabled?
Target group level
What does stickiness at the target group level mean?
Same request goes to the same instance
What generates the stickiness?
TG, ALB, ASG or app
The ALB (not the application)
What IP does the application server sees?
The private IP of the LB
How can the application server see the IP of the user?
By looking at the โX-Forwarded-Forโ header of the request
How can the application server see the port and the proto when using an ALB?
By looking at the โX-Forwarded-Portโ and โX-Forwarded-Protoโ headers respectively
What does NLB stand for?
Network Load Balancer
What protocol does the NLB serves?
TCP, UDP, TLS (Layer 4 - Transport Layer)
What type of IP does NLB support?
Static IP or Elastic IP
What does the NLB do?
Forward TCP traffic to your instances
How many requests can an NLB handle per seconds?
Millions
What is the latency brought by a NLB
About 100 ms compared to 400 ms for ALBs
What are NLBs mostly used for?
Extreme performance (not be the default LB you choose)
What does the creation process of an NLB look like?
Pretty much the same as an ALB
What security feature do all ELB provide?
SSL certificates and SSL termination
Can LBs scale?
Yes but not instantly, contact AWS for โwarm-upโ if you expect a sudden peak