Elastic Load Balancing & Auto Scaling Groups Flashcards

1
Q

Scalability

A
  • App/system can handle greater loads
  • Accommodate larger load by making the hardware stronger (scale up), or adding nodes (scale out)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Vertical Scalability

A

Increase the size of the instance

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

Horizontal Scalability

A

Increase number of instances / systems

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

High Availability

A
  • Associated with Horizontal Scalability
  • Run in at least two AZs
  • Survive a data center loss/disaster
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Elasticity

A
  • Sone “auto-scaling” so the system can scale based on the load
  • “cloud-friendly”
  • pay-per-use
  • match demand
  • Optimize costs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Agility

A
  • Not related to scalability
  • New resources are only a click away
  • Reduce time to make those resources available from weeks to minutes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Load Balancing

A

Server forwards internet traffic to multiple servers (EC2 Instances) down stream

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

Why use a Load Balancer

A
  • Spread load
  • Expose a single point of access
  • Seamlessly handle failures
  • Do regular health checks
  • Use across AZ
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Elastic Load Balancer use case

A
  • Managed service AWS will:
    Guarantee it will be working
    Take care of upgrades, maintenance, high availability
    Provide a few configuration knobs
  • Cost less to setup than your own, and with much less effort.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Types of Elastic Load Balancers

A
  • Application -Layer 7
  • Network (ultra-high performance, TCP/UDP) - Layer 4
  • Gateway - Layer 3
  • Classic (retired 2023) - Layer 4 & 7
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Application Load Balancer

A
  • HTTP / HTTPS
  • gRPC
  • Layer 7
  • HTTP routing features
  • Static DNS (URL)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Network Load Balancer

A
  • TCP / UDP
  • High performance
  • Static IP with Elastic IP
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Gateway Load Balancer

A
  • GENEVE Protocol on IP Packets
  • Layer 3
  • Route traffic to firewalls managed on EC2 Instances
  • Routes to 3rd party security virtual appliances
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Auto Scaling Groups

A
  • Add/Rem EC2 instances with volume
  • Have a min/max # of machines
  • Auto reg/dereg instances to load balance
  • Replace unhealthy instances
  • Cost Saving, run at optimal capacity
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Manual Scaling

A

Update size of ASG manually

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

Dynamic Scaling

A
  • Respond to changing demand
  • Type
    Simple/Step Scaling
    Target Tracking Scaling
17
Q

Simple/Step Scaling

A

Whenever a CloudWatch alarm is triggered

18
Q

Target Tracking Scaling

A
  • Based on target performance
  • Like keeping CPU usage at 40%
19
Q

Schedule Scaling

A

*Anticipate scaling based on known usage patterns

20
Q

Predictive Scaling

A
  • Machine Learning to predict future traffic (algorithm)
  • Automatically provision the right # of EC2 instances in advance
  • Useful for predictable time-based patterns