Elastic Load Balancer (ELB) Flashcards

1
Q

What are the 3 different types of ELB available?

A
  • Application Load Balancer ALB (HTTP/HTTPS)
  • Network Load Balancer NLB (TCP/UDP)
  • Classic Load Balancer CLB (Legacy)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the three components of ELB?

A

Listeners
Incoming traffic is evaluated against listeners. Listeners evaluate any traffic that is matches the Listener’s port. For Classic Load Balancer, EC2 instances are directly registered to the Load Balancer.
Eg. Port 80 or 443

Rules (Not avaliable for Classic Load Balancer)
Listeners will then invoke rules to decide what to do with the traffic. Generally the next step is to forward traffic to a Target Group

Target Groups (Not avaliable for Classic Load Balancer) EC2 instances are registered as targets to a Target Group

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

For Application Load Balancer (ALB) or Network Load Balancer (NLB), How does ELB work?

How is the flow? There are 6 steps

A
  • xx.xx (Route 53)
  • ALB or NLB
  • Listeners: Listener Port 80
  • Rule: redirect to Port 443
  • Listener Port 443
  • Rule: forward to Target 1 (EC2 instances)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

For Classic Load Balancer (CLB) traffic is sent to the Listeners. When the port matches it then it forwards the traffic to any EC2 instances that are registered to the Classic Load Balancer. CLB does not allow you to apply rules to listeners.

How does it work? How is that flow? 4 steps…

A
  • xx.xx (Route 53)
  • CLB
  • Listeners: Listener Port 80 and Listener Port 443
  • Registered Targets
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which ELB component does incoming traffic hit first?

A

Listener

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

Which type of load balancers forwards traffic directly to EC2 instances without using a target group?

A

Classic Load Balancer

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

To associate an Application or Network load balancer with EC2 instances you must use one of these

A

Target Groups

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

This type of load balancer does not support creating rules on the listener

A

Classic Load Balancer

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

Application Load Balancers (ALB) are designed to…

A

Balance HTTP and HTTPS traffic.

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

What can you attach to an ALB?

A

Web Application Firewall (WAF)

Great for Web Applications

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

Which layer of the OSI model does an Application Load Balancer (ALB) operate on?

A

They operate at Layer 7 (of the OSI Model).

Layer 7 - Application Layer

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

The Application Load Balancer (ALB) feature that allows adding rules to a listener based on the HTTP protocol?

A

Request Routing

The host-based routing feature allows you to write rules that use the Host header to route traffic to the desired target group. T

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

Network Load Balancers are designed to…

A

balance TCP/UDP.

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

Which layer of the OSI model does a Network Load Balancer (NLB) operate on?

A

A Network Load Balancer (NLB) operates on the “Layer 4 - Transport Layer” of the OSI Model

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

Which type of load balancer is designed for optimum network performance?

A

Network Load Balancer

  • Great for Multiplayer Video Games or When network performance is critical
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

A Classic Load Balancer (CLB) will throw this type of error when the underlying application is not responding.

A

504 Timeout Error

17
Q

Not recommended for use, instead use NLB or ALB

A

Clasic Load Balancer

It was AWS first load balancer (legacy)

18
Q

Sticky Sessions will ensure that …

A

All traffic from a session is sent to the same EC2 instance

19
Q

What do Sticky Sessions use in order to remember EC2 instances for a session?

A

Cookies

20
Q

Advanced load balancing method that allows you to bind a user’s session to a specific EC2 instance.

əˈlaʊz

Typically utilized with a Classic Load Balancer
ˈtɪpɪkli

Can be enabled for ALB though can only be set on a Target Group not individual EC2 instances.

A

Sticky Sessions

21
Q

The X-Forwarded-For header contains what information about a user?

A

Their IPv4 Address

If you need the IPv4 address of a user, check the X-Forwarded-For header

The X-Forwarded-For (XFF) header is a command method for identifying the originating IP address of a client connecting to a web server through an HTTP proxy or a load balancer.

22
Q

For an ALB or NLB where would you configure health checks?

A

On the target group

23
Q

Instances monitored by ELB health checks report back either of these 2 statuses

ˈstætəsɪz

A

InService or OutofService

24
Q

Cross-Zone load balancing is only possible using these 2 types of load balancers

A
  • Classic Load Balancer (CLB)

- Network Load Balancer (NLB)

25
Q

IN ELB, Cross-Zone Load Balancing Enabled.

Requests are …

A

… distributed evenly across the instances in all enabled Availability Zones.

Evenly = in equal numbers, amounts, or values.

AZ1, 2 instances: 10% each one

AZ2, 4 instances 10% each one

26
Q

IN ELB, Cross-Zone Load Balancing Disabled does what?

Requests…

A

… are distributed across the instances in only its Availability Zone.

dɪˈstrɪbjətəd

AZ1, 2 Instances: 50% each one

AZ2, 4 instances: 25% each one

27
Q

In ELB, Apply rules to incoming request and then forward or redirect traffic.
(What is the name of the feature)

A

ELB Request Routing

28
Q

In ELB, What 6 conditions can you use to route your traffic?

A
✔️ Host header
✔️ Source IP
✔️ Path
✔️ Http header
✔️ Http header method
✔️ Query string
29
Q

How many AZs does an ELB have to have?

A

At least 2

30
Q

What can you attach to an ALB for SSL?

A

Amazon Certification Manager SSL

31
Q

What is ELB?

What are its 4 topics?

A
  • It’s a service that automatically distributes incoming application traffic across multiple targets, such as Amazon EC2 instances, containers, IP addresses, Lambda functions, and virtual appliances.
  • Types (Network, Application and Classic)
  • Components (Listeners, Rules and Target Groups)
  • Attachable elements (WAF, Certificate Manager SSL)
  • Sticky Sessions