HA Archictecture Flashcards

1
Q

What are the three type of elastic load balancer available on aws?

A

Application load balancers.
Network load balancers.
Classic load balancers.

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

What layer do application load balancers operate on?

A

Layer 7.

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

What layer do network load balancers operate on?

A

Layer 4

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

What layers do classic load balancers operate on?

A

Layer 4 and 7.

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

Network load balancers are used in what use cases?

A

Where extreme performance is required and for applications that only use tcp to communicate.

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

For classic load balancers, what error code is returned if your application or database fails to respond?

A

504 - gateway timeout

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

What header can be used to obtain the clients ipv4 address when receiving traffic from an elb?

A

X-Forwarded-For

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

Sticky sessions for classic load balancers, they allow you to…

A

Bind a user’s session to a specific ec2 instance.

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

How do sticky sessions differ in application load balancers to classic ones?

A

The traffic is routed to the target group level instead of the instance level.

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

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?

A

Rule out sticky sessions by checking if it is disabled or not.

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

What does cross zone load balancing allow you to achieve?

A

It allows you to route traffic from one elb from one availability zone to instances in another availability zone.

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

Path patterns allow you to…

A

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.

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

Auto Scaling consists of three components these are..

A

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.

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

What are the five auto scaling options?

A
Maintain current instance levels at all times.
Scale manually.
Scale based on a schedule.
Scale based on demand.
Scale based on predictive scaling.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

When you delete your auto scaling group all instances running in that group will…

A

Terminate if they were created by that auto scaling group.

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

What are the key six rules to remember when considering a HA architecture?

A

1 always design for failure
2 use multiple az’s and regions where possible
3 know the difference between multi az and read replicas for rds.
4 know the difference between scaling up and scaling out.
5 always assess the cost element and understand it.
6 know the different s3 storage classes.

17
Q

What is the difference between scaling up and scaling out?

A

Scaling up - increasing the resources at the instance level to handle load.
Scaling out - creating more instances to handle load.