AWS Fundamentals: ELB + ASG Flashcards

1
Q

What does “Scalability” mean?

A

An application’s / system’s ability to handle greater loads by adapting

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

Two kinds of scalability?

A
  1. Horizontal - elasticity
  2. Vertical
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Vertical Scalability means..

A

increasing the size of your instance

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

What is “Vertical Scalability” common for?

A

Non distributed system such as a database

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

What are the limits of “Vertical Scalability”

A

Hardware limits

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

Horizontal Scalability means…

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

What is “distributed systems”?

A

a collection of computer programs that work together to complete a task or provide a service.

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

Horizontal Scaling implies…

A

you have distributed systems

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

What is “High Availability”?

A

Running your application / system in at least two data centers (availability zones)

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

Main goal of “high availability”

A

survive data center loss

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

What is “load balancing”?

A

servers(behind the scene servers) forward traffic to multiple servers (e.g. EC2 instances) downstream

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

Why use a load balancer?

A
  • Spread load across multiple downstream instances
  • Expose a single point of access (DNS) to your application
  • Seamlessly handle failures of downstream instances
  • Provide SSL termination (HTTPS) for you websites
  • Enforce stickiness with cookies
  • High availability across zones
  • Separate public traffic from private traffic
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is an “elastic load balancer”?

A

A managed load balancer that:
- 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 “Health Checks”?

A

Enables the load balancer to know if instances it forwards traffic to are available to reply to requests

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

Where are health checks done?

A

on a port and a route (/health is common)

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

4 types of load balancers on AWS:

A

1.Classic Load Balancer(deprecated)

  1. Application Load Balancer
  2. Network Load bBalancer
  3. Gateway Load Balancer
17
Q

Some load balancers can be set up as ….. or …….. ELBs

A

internal (private), external (public)

18
Q

Users can access your load balancer from……. using…… or……..

A

anywhere, HTTP, HTTPS

19
Q

EC2 instances should only allow traffic coming directly from the load balancer.

20
Q

How does an ECS instance allow only a load balancer to forward traffic to it?

A

With a security group

21
Q

What does an ALB forward traffic to?

A

Multiple HTTP applications across machines (target group)
or
multiple applications on the same machine (ex: containers)

22
Q

What are the 3 different target groups that routing can be based on?

A
  1. Routing based on path in URL
  2. Routing based on hostname in URL
  3. Routing based on query strings, headers
23
Q

Features:
- EC2 instances (can be managed by Auto Scaling Group) - HTTP

  • ECS tasks ( managed by ECS itself) - HTTP
  • Lambda functions - HTTP request is translated into a JSON event
  • IP addresses - must be private IPs
  • ALB can route to multiple target groups
A

Application Load Balancer (v2) Target Groups

24
Q

ALB can route to multiple target groups?

25
Where are health checks done?
At the target group level
26
ALB has a Fixed host name?
True
27
The application servers don't see the IP of the client directly?
True
28
Where can the true IP of the clients be found?
in the **header X-Forwarded-For**.
29
What does a Network Load Balancer allow?
- Forward TCP & UDP traffic to your instances - Handle millions of request per seconds - Less latency ~100 ms (vs 400 ms for ALB)
30
What are NLB used for?
Extreme performance,TCP or UDP traffic
31
Features: - EC2 instances - IP Addresses – must be private IPs - Application Load Balancer
Network Load Balancer – Target Groups
32
What is the idea of "Sticky Sessions"?
the same client is always redirected to the same instance behind a load balancer
33
Which load balancers does sticky sessions work with?
- Classic Load Balancer - Application Load Balancer - Network Load Note: NLB works without cookies
34
Which load balancers have a "cookie" that expires?
CLB & ALB. User controls "cookie" expiration.
35