High Availability & Scalability Flashcards

1
Q

What are the 4 types of Load Balancer available?

A
  • CLB Classic Load Balancers
  • ALB Application Load Balancers
  • NLB Network Load Balancers
  • GWLB Gateway Load Balancers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What 3 protocols does the Classic Load Balancer support?

A
  • TCP Layer 4

- HTTP and HTTP Layer 7

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

What 2 protocols are the Classic Load Balancer Health Checks on?

A
  • TCP

- HTTP

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

What protocol does the Application Load Balancer support?

A

HTTP Layer 7

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

What are the 4 routing options in the ALB?

A
  • URL path
  • URL hostname
  • Query String
  • Headers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

With CLB and ALB, we get a fixed hostname, what does that look like?

A

xxx.region.elb.amazonaws.com

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

How do we retrieve the client ip, port and proto if using an ELB?

A

IP - X-Forwarded-For
Port - X-Forwarded-Port
Proto - X-Forwarded-Proto

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

What protocol does the Network Load Balancer support?

A

Layer 4 to allow TCP & UDP

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

Does the NLB have a fixed hostname?

A

No, it has a static IP per AZ

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

What is a Gateway Load Balancer used for?

A

To deploy, scale and manage a fleet of 3rd party network virtual appliances in AWS

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

What protocol does the Gateway Load Balancer support?

A

Layer 3 Network Layer for IP Packets

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

In AWS console, what protocol and port does the Gateway Load Balancer use?

A

GENEVE on port 6081

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

What are sticky sessions?

A

Its when the same client traffic is always redirected to the same instance behind the ELB

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

What are sticky sessions also known as?

A

Session Affinity

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

What is needed for sticky sessions?

A

A cookie which has an expiration date

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

What ELB is Cross Zone Load Balancing enabled on?

A

The ALB has it enabled by default and cannot be disabled so there is no charge

17
Q

What ELBs is Cross Zone Load Balancing disabled on?

A
  • NLB has it disabled by default and charges apply if enabled.
  • CLB has it disabled by default and there are no charges if enabled
18
Q

What does SSL stand for?

A

Secure Sockets Layer

19
Q

What does TSL stand for?

A

Transport Layer Security

20
Q

What kind of certificates does the ELB use?

A

X.509 certificate (SSL/TLS certificate)

21
Q

What does SNI stand for?

A

Server Name Indication

22
Q

What does SNI do?

A

It solves the problem of loading multiple certs onto one web server

23
Q

What is Connection Draining?

A

It provides time to complete in-flight requests while terminating and prevents new requests being sent

24
Q

What is Connection Draining also known as?

A

Deregistration Delay

25
Q

What are 4 metrics to scale on in an Auto Scaling Group?

A
  • CPU Utilization
  • RequestCountPerTarget
  • Average Network In/Out
  • Any Custom Metric
26
Q

What is the default cooldown period for ASGs?

A

300 seconds (5 minutes)

27
Q

What are the 2 steps taken in the default termination policy?

A
  • Find the AZ which has the most instances

- Delete the instance with the oldest launch configuration