Availability and Scalability - ELB Flashcards

1
Q

What is the purpose of a load balancer?

A

A load balancer forwards incoming traffic to multiple backend EC2 instances to distribute the load evenly.

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

Why should you use a load balancer in your infrastructure?

A

It provides a single access point to the application, handles failures, performs health checks on EC2 Instances, provides SSL termination, and scales traffic across instances.

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

What are health checks in a load balancer?

A

Health checks are used by the load balancer to verify if an EC2 instance is functioning properly. If not, traffic is not routed to that instance.

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

What are the four types of managed load balancers in AWS?

A

Classic Load Balancer (CLB)
Application Load Balancer (ALB)
Network Load Balancer (NLB)
Gateway Load Balancer (GWLB)

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

What is the Application Load Balancer (ALB) used for?

A

ALB supports HTTP, HTTPS, and WebSocket protocols, and is used for routing traffic based on URL, content, and host.

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

What is the Network Load Balancer (NLB) used for?

A

NLB supports TCP, TLS, and UDP protocols and is used for high-performance applications needing low latency and high throughput.

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

What is the Gateway Load Balancer (GWLB) used for?

A

GWLB operates at the network layer, using IP protocol for routing traffic and integrating with third-party virtual appliances.

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

What is the difference between internal and external load balancers?

A

Internal load balancers handle private traffic, usually within a VPC.
External load balancers handle public traffic, like web applications.

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

What is the security configuration for a load balancer?

A

The load balancer’s security group allows traffic from anywhere (0.0.0.0/0) on ports 80 or 443 (HTTP/HTTPS).

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

What is the security configuration for EC2 instances behind a load balancer?

A

EC2 instances should only allow traffic originating from the load balancer’s security group, enhancing security.

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

What are the advantages of using Elastic Load Balancer (ELB) on AWS?

A

ELB is managed by AWS, provides high availability, handles scalability and failures, integrates with many AWS services, and is cost-effective compared to managing your own load balancer.

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

What is SSL termination in the context of a load balancer?

A

SSL termination means that the load balancer decrypts HTTPS traffic, relieving backend instances from handling encryption.

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

What type of traffic does an Application Load Balancer (ALB) handle?

A

ALB is a Layer 7 load balancer, meaning it handles HTTP/HTTPS
traffic.

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

What is a target group in the context of an Application Load Balancer?

A

A target group is a set of backend servers or EC2 instances that the load balancer routes traffic to.

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

How does Application Load Balancer route traffic?

A

ALB routes traffic based on URL paths, host names, query strings, and headers to different target groups.

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

How can ALB route traffic based on URL paths?

A

For example, traffic to /users can be routed to one target group, while /posts can be routed to another.

15
Q

What can be registered as a target in an ALB target group?

A

Target groups can include EC2 instances, ECS tasks, Lambda functions, and private IP addresses.

16
Q

What is an example of using multiple target groups with an ALB?

A

An ALB could route mobile traffic to one target group (e.g., EC2 instances) and desktop traffic to another target group (e.g., on-premises servers).

17
Q

How does ALB differ from the Classic Load Balancer when managing multiple applications?

A

With ALB, a single load balancer can handle multiple applications, unlike the Classic Load Balancer, which requires a separate load balancer for each application.

18
Q

What type of traffic does a Network Load Balancer (NLB) handle?

A

NLB is a Layer 4 load balancer, meaning it handles TCP and UDP traffic.

19
Q

What is a key feature of the Network Load Balancer (NLB) in terms of performance?

A

NLB is known for its ultra-low latency and ability to handle millions of requests per second.

20
Q

What is a unique feature of the Network Load Balancer (NLB) regarding IP addresses?

A

NLB has one static IP per Availability Zone and allows you to assign Elastic IPs to each AZ.

21
Q

When should you consider using a Network Load Balancer (NLB)?

A

Consider using NLB when you need extreme performance, need to handle TCP or UDP traffic, or require static IP addresses.

22
Q

What types of target groups can be used with the Network Load Balancer (NLB)?

A

NLB can route traffic to EC2 instances, private IP addresses, and can even route traffic to an Application Load Balancer (ALB).

23
Q

What types of health checks can Network Load Balancer (NLB) perform?

A

NLB supports TCP, HTTP, and HTTPS health checks for its target groups.

24
Q

Is Network Load Balancer (NLB) included in the AWS Free Tier?

A

No, NLB is not included in the AWS Free Tier.

25
Q

What is the purpose of a Gateway Load Balancer (GWLB)?

A

A Gateway Load Balancer is used to deploy, scale, and manage third-party network appliances (e.g., firewalls, intrusion detection systems) in AWS. It routes all traffic through these appliances for inspection or modification before reaching the application.

26
Q

When would you use a Gateway Load Balancer?

A

You would use a Gateway Load Balancer if you want to inspect, modify, or secure all network traffic (e.g., firewall, intrusion detection) before sending it to your applications.

27
Q

How does a Gateway Load Balancer work in a network?

A

The Gateway Load Balancer directs all traffic through a set of third-party virtual appliances for inspection (e.g., firewall or intrusion detection). If the traffic is acceptable, it is sent to the application; otherwise, it is dropped.

28
Q

What is the role of the Gateway Load Balancer in traffic routing?

A

The GWLB acts as a transparent network gateway, routing all traffic through it. It functions as a load balancer, distributing traffic across a set of virtual appliances (target groups).

29
Q

What does a Gateway Load Balancer operate at?

A

The GWLB operates at Layer 3 (network layer) of the OSI model, which handles IP packets.

30
Q

What types of targets can be used in the Gateway Load Balancer’s target group?

A

The target group can consist of EC2 instances (registered by instance ID) or private IP addresses (such as appliances in your data center).

31
Q

What protocol does the Gateway Load Balancer use?

A

The Gateway Load Balancer uses the GENEVE protocol on port 6081 for communication.

32
Q

What is the advantage of using a Gateway Load Balancer for traffic inspection?

A

It allows for seamless inspection of all network traffic (e.g., through firewalls or intrusion detection systems) without disrupting the flow to applications, while maintaining a single point of entry and exit for traffic in the VPC.

33
Q

What makes a Gateway Load Balancer different from other AWS load balancers?

A

Unlike ALB or NLB, which work with application-layer and transport-layer traffic, the GWLB works at the network layer and is specifically designed for routing traffic through third-party network appliances before reaching applications.

34
Q

How does the traffic flow in a Gateway Load Balancer setup?

A

Traffic first goes through the GWLB, then to a target group of virtual appliances (like firewalls or IDPs) for inspection. If the traffic is approved, it is sent back to the GWLB and then forwarded to the application.