Udemy Lecture: Greater loaLB & ASG- Elastic load balancing & Auto scaling groups Flashcards

1
Q

Scalability means what?

A

that an application/ system can handle greater loads by adapting

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

What are the two types of scalability?

A

-Vertical scalability
-Horizontal scalability (= elasticity)

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

Scalability is linked but different to high _____________

A

availability

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

What does vertical scalability means?

A

means increasing the size of the instance (ex. Your EC2 instance went from t2.mirco to t2.large)

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

_____________ is very common for non distributed systems, such databases

A

Vertical scalability

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

What does horizontal scalability mean?

A

increasing the number of instances/ systems for your application

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

___________ usually goes hand in hand with horizontal scaling

A

High availability

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

What does high availability mean?

A

High availability means running your application / system in at 2 availability zone

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

What is goal of high availability?

A

is to survive data center loss (disaster)

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

What is the difference between scalability, elasticity, and agility?

A

Scalability- is the ability to accommodate a larger load by making the hardware stronger (scale up) or by adding nodes (scale out)

Elasticity- is once a system is scalable, elasticity means that there will be some “auto-scaling” so that the system can scale based on the load. This is “cloud-friendly”, pay per use, match demand, optimize costs

Agility (not related to scalability- distractor)- new IT resources are only a click away, which means that you reduce the time to make those resources available to your developers from weeks to just minutes

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

What is a load balancer?

A

Load balancer are servers thay forward internet traffic to multiple server (EC2 instances) downstream

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

With a __________ you can load across multiple downstream instances

A

load balancer
-Spread the load across multiple downstream instances
-Expose a single point of access (DNS) to your application
-Seamlessly handle failure of downstream instances
-Provide SSL termination (HTTPS) for your websites
-High availability across zones

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

An ____________ is a managed load balancer

A

ELB (Elastic load balancer)

-AWS guarantees that it will be working
-AWS takes care of upgrades, maintenance, high availability
-AWS provides only a few configuration knobs

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

What are the 3 different types of load balancer offered by AWS?

A

-Application load balancer (HTTP/ HTTPS only) - layer 7
-Network load balancer (ultra-high performance, allows for TCP)- layer 4 (lower level)
-Gateway load balancer- layer 3

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

When you see HTTP/ HTTPS /gRPC protcocols (layer 7) then its ___________

A

Application load balancer (ALB)

-HTTP routing features
-Static DNS (URL)

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

When you see TCP/UDP protocols (layer 4) its ____________

A

network load balancer related (NLB)

-High performance- millions of request per seconds
-Static IP through elastic IP

17
Q

When you see GENEVE protocol on IP packets (layer 3) then its ____________

A

related to gateway load balancer (GLB)

-Route traffic to firewalls that you manage on EC2 instances or intrusion detection

18
Q

What are the different autoscaling group strategies?

A
  1. Manual scaling
  2. Dynamic scaling
  3. Target tracking scaling
  4. Scheduled scaling
  5. Predictive scaling
19
Q

What is manual scaling

A

update the size of an ASG manually (change the capacity like from 1 to 2)

20
Q

What is dynamic scaling?

A

respond to changing demand

21
Q

What is target tracking scaling?

A

Making sure your at your target, ex. “I want the average ASG CPU to stay at around 40%”

22
Q

What is scheduled scaling?

A

anticipate scaling based on known usage patterns

23
Q

What is predictive scaling?

A

use machines learning to predict future traffic ahead of time & automatically provision the right # of EC2 instances in advance (useful when your load has predictable time-based patterns)

24
Q

___________ can add or remove instances, but from the same type. They cannot change the EC2 Instances Types on the fly.

A

Auto Scaling Groups