HA And Scaling Flashcards

1
Q

What is an Elastic Load Balancer (ELB)?

A

It is a DNS record that points at 1+ nodes per A Z

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

What is the difference between an internet facing node and an internal node?

A

internet facing has public IP, internal only has private

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

Can a private EC2 instance be used with a load balancer?

A

Yes, because the EC2 instance doesn’t have to accept a public connection, just one coming from load balancer.

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

What types of protocols is ALB used for?

A

HTTP/HTTPS.

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

What can you use to forward traffic to different target groups depending on IP address, or redirect requests?

A

ALB rules.

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

What protocols should you use NLB for?

A

TCP, TLS, UDP…more or less just “non-http/s”.

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

What has faster latency: ALB or NLB?

A

NLB.

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

What are Launch Configurations and Launch Templates used for?

A

Define config of an EC2 instance in advance

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

Which can be edited after creation: Launch Templates or Launch Configuration?

A

Neither, but launch templates support versioning

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

What is the main use of an auto scaling group (ASG)?

A

Automatic scaling and self-healing for EC2.

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

Where is an ASG configured?

A

Within a VPC.

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

What is configured within the ASG, so ASG knows where to launch instances?

A

Subnets from the VPC that the ASG is attached to.

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

What are the 3 parameters that determine how many instances will be running at once within a subnet attached to an ASG?

A

Min, max, and desired size

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

What are the three types of scaling policies?

A

Manual, Scheduled, and Dynamic

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

In dynamic scaling, what is the difference between simple and stepped scaling?

A

Simple is more “binary” e.g. CPU > 50% or <50%. Stepped defines what happens at certain thresholds. E.g. >50% launch 1, >70% launch 2, etc.

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

YOU WILL

A

EAT THE BUGS

17
Q

What is the cooldown period?

A

How long to wait after performing a scaling action before performing another.

18
Q

Launch Template will define ____ is launched, while ASG defines ____ and ____

A

what, when, where

19
Q

True or False: ASGs NEED scaling policies

A

False

20
Q

In ASG, what can you use to backup data when an instance is terminated, or load data on an instance before it is launched?

A

Lifecycle Hooks

21
Q

In ASG, what occurs when an instance fails health checks?

A

It is replaced.

22
Q

What is a grace period, and why might you use it?

A

Defines a set of time after instance is launched before starting to perform a health check. You might use it if you want to do additional configuration on an instance before checking.

23
Q

In load balancing, what is Bridging?

A

When the load balancer listener is configured for HTTPS, and SSL is passed through to backend instances. Instances need certificates!

24
Q

In load balancing, what is Pass-through?

A

Only occurs with NLB. No SSL cert needed on load balancer, but needed on backend instances.

25
Q

In load balancing, what is offload?

A

Listener configured for HTTPS, but backend connections use HTTP. No certs needed.

26
Q

What is the name of the cookie generated with connection stickiness enabled?

A

AWSALB

27
Q

What is the main advantage of using connection stickiness?

A

Connections maintain sessions even when connecting to different instances.

28
Q

What is the main use of a gateway load balancer?

A

A GWLB helps run and scale 3rd party security appliances like firewalls, intrusion detection, and prevention systems.