Load Balancers Flashcards

1
Q

What are the 3 kinds of Load balancers in aws?

A

Application Load balancer - They are application-aware and suitable to load balance http and https traffic.
Network Load balancer - They work mostly at tcp level.They are used when extreme performance is required.
Classic Load balancer - These are not intelligent,It is used for HTTP and https but it is not application-aware. It can still use X-FORWARDED-FOR for and sticky sessions.
Use this to keep costs down

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

What is 504 error

A

Blanket error is thrown by Load balancer when something goes wrong. It could be the Webserver, database server or something else. We will have to debug to find the failing bit.

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

What are target groups?

A

Target group is used to route requests to one or more registered targets. When you create each listener rule, you specify a target group and conditions. When a rule condition is met, traffic is forwarded to the corresponding target group. You can create different target groups for different types of requests. For example, create one target group for general requests and other target groups for requests to the microservices for your application

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

Explain auto-scaling groups?

A

Its a service where we can set the EC2 instances to grow or shrink based on configuration.

1) Create a launch configuration where we specify the kind of EC2 instances we want to spin-off, its start up scripts etc. Launch configuration itself doesn’t create any instances, it’s only a template.
2) Create an Autoscaling group, specify the minimum and maximum amount of instances we need, their availability zones, the condition under which we need new instances would be created (like CPU utilization) and the launch configuration created in step one.
3) Auto-scaling groups can also be configured to be associated with a load balancer

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

Difference between scaling up and scaling out?

A

Scaling out is creating auto scaling groups and additional EC2, whereas scaling up is increasing the resources inside ec2

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

What is cloud formation?

A

Bunch of templates designed by aws to launch complicated environments, very quickly.

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

What is elastic Beanstalk?

A

Aimed at developers without much knowledged about AWS.Its a way of deploying applications to cloud, where we can upload the code and AWS will create the environment for us. We can later change it to add securty groups, load balancers, scaling, health monitoring etc etc.

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

which TCp port is supported for Load balancing

A

1-65535

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

Is it possible to convert Classic Load Balancer to an Application Load Balancer (and vice versa

A

No there is no conversion, but migration is possible

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

Some of the parameters/conditiona to create listener rule in Load balancer and available options

A

The supported conditions are Host header, path, HTTP headers, methods, query parameters, and source IP CIDRs. The supported actions are redirect, fixed response, authenticate, and forward.

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

How to secure applications beyond load balancer

A

Integrating with WAF, (Web Application firewall) allows rules to be written based on IP addresses, HTTP headers, and custom URI strings

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

Can Load balancer route requests to Lamba methods?

A

Yes, when the one of teh target group fpr the load balancer is lambda function and if the incoming request matches rules to be sent to the Lambda method, the parameters are converted to JSon and passed to Lambda method and the response is sent back at http

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

How does billing happen in Load balancer

A

per hour and based on LCU(Load balancer capacity units)
An LCU defines the maximum resource consumed in any one of the dimensions (new connections, active connections, bandwidth and rule evaluations) the Application Load Balancer processes your traffic

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

Does cross zone data transfer incur charges in ELB?

A

Only for Network Load balancers

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

How are classic Load balancers billed?

A

Billed on Bandwidth and hourly rate

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

What happens when an elastic ip address is assigned to the public address of a resource

A

The public ip address of the resource is released back to Amazon for other purposes

17
Q

What is the main difference between Application /Network and Classic load balancer?

A

With Application and network load balancer, we route traffic to registered target groups, but with Classic Load balancer we route the requests to Ec2 instances

18
Q

How to retrict access to Elastic load balancers ?

A

Through security groups.

19
Q

How to trace calls to APi through Elastic Load Balancer?

A

Through Cloud Trail.

20
Q

What is CLB?

A

Cross Load Zone Balancing:
When enabled Load balancers sends traffic equally to registered az’s based on Load. Without it all traffic goes to a single AZ, irrespective of the amount of registered instances.

21
Q

Common targets for load balancer?

A

Target groups, EC2 instances, Containers and ip addresses.Target groups can have upto 1000 targets.
The target type in a target group could be an EC2 instance id or a valid private ip address from a subnet

22
Q

What is the scope for Target groups?

A

They are a regional construct