ELB + ASG Flashcards

(24 cards)

1
Q

What is vertical scalability?

A

Increasing the size of the instance (eg. t2.micro –> t2.large)

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

What is horizontal scalability?

A

Increasing the number of instances for your applications (implies distributed systems)

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

High availability

A

Running your application in at least 2 data centres / availability zones (survive data center loss)

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

What is load balancers?

A

Servers that forward traffic to multiple servers (eg EC2 instances) downstream

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

Why use Elastic Load Balancer?

A

Managed load balancer, AWS guarantees it will work, takes care of maintenance and high availability

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

What do health checks do?

A

done on a port and a route to check health of ec2 instance (if response is not 200, it is not ok)

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

Load balancer security groups

A

Allow users to access load balancer from anywhere, but EC2 instance only allow traffic from load balancer

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

Application load balancer (v2)

A

Load balancing to multiple HTTP applications across machines, and to multiple applications on the same machine (eg. containers)

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

What are the 3 types of load balancers?

A

application load balancer, network load balancer and gateway load balancer

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

Network Load Balancer (v2)

A

Allows you to forward TCP and UDP traffic to your instances, high performance and ultra low latency

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

Network Load Balancer IP rules

A

NLB has one static IP per AZ and support assigning Elastic IP (want to expose application with set of static IPs)

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

NLB target groups

A
  • EC2 instances
  • private IP addresses
  • Application Load Balancer
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

NLB health checks support …

A

TCP, HTTP and HTTPS protocols

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

Gateway Load Balancer

A

Deploy, scale and manage a fleet of 3rd party network virtual appliances in AWS (firewalls, intrusion detection and prevention systems, deep packet inspection systems)

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

How does gateway load balancer work?

A

All traffic goes through gateway load balancer, spreads traffic across target group of network virtual appliances, if it is accepted it forwards traffic back to GLB and then to application

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

Gateway load balancer target groups

A

EC2 instances, private IP addresses

16
Q

What is sticky sessions / session affinity?

A

Same client is always redirected to the same instance behind a load balancer (make sure user doesn’t lose session data)

17
Q

Two types of cookies for sticky sessions

A

application based cookies (cookie generated by target) and duration based cookies (cookie generated by load balancer)

18
Q

Cross zone balancing

A

Each load balancer instance distributes evenly across all registered instances in all AZ

19
Q

Cross zone balancing in application load balancer

A

enabled by default, no charges for inter AZ data

20
Q

Cross zone balancing in network load balancer and gateway load balancer

A

Disabled by default, pay charged for inter AZ data if enabled

21
Q

What problem does Server Name Indication (SNI) solve?

A

Loading multiple SSL certificates onto one web server to serve multiple websites

22
Q

How does SNI work?

A

Requires the client to indicate the hostname of the target server in initial SSL handshake, and server will find correct cert