7. ELB + ASG Flashcards

1
Q

What is an ALB?

A

Application Load Balancer

  • Provides Layer 7 load balancing to multiple HTTP applications across machines (target groups)
  • Provides balancing to multiple applications on the same machine (containers)
  • Supports redirects (from HTTP to HTTPS)
  • Can route based on URL path, URL hostname, and Query String
  • Has a port mapping feature to redirect to a dynamic port in ECS
  • Cross-zone load balancing: always on (can’t be disabled), free for inter-AZ
  • Supports SNI for multiple listeners with multiple SSL certificates
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is an NLB?

A

Network Load Balancer

  • Layer 4 (TCP and UDP)
  • Used for extreme performance, TCP or UDP traffic
  • Cross-zone load balancing: disabled by default, you pay for inter-AZ
  • Supports SNI for multiple listeners with multiple SSL certificates
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is vertical scalability?

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 horizontal scalability?

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
5
Q

What is Load Balancer Stickiness?

A

The same client is always redirected to the same instance behind a local load balancer
- the “cookie” used for stickiness has an expiration date you can control

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

What is SNI?

A

Server Name Indication

- solved the problem of loading multiple SSL certificates onto one web server (to serve multiple websites)

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

What is Connection Draining?

A

Allows time to complete “in-flight requests” while the instance is de-registering or unhealthy

  • stops sending new requests to the instance which is de-registering
  • between 1 to 3600 seconds (default is 300 sec)
  • set to low value if requests are short
  • can be disabled
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Where would you go to analyze incoming requests for latencies and client’s IP address patterns for an ALB?

A

ALB access logs

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

True or False: A Load Balancer can target EC2 instances only within an AWS Region.

A

True

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

What Load Balancer HTTP Error means it is at capacity or has no registered target?

A

HTTP 503

HTTP 503 indicates ‘Service unavailable’ error. This error in ALB is an indicator of the target groups for the load balancer having no registered targets.

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

Load Balancer HTTP Error indicating internal server error

A

HTTP 500

There are several reasons for their error: A client submitted a request without an HTTP protocol, and the load balancer was unable to generate a redirect URL, there was an error executing the web ACL rules.

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

What is CloudFront?

A
  • Improves read performance, content is cached at edge
  • Global Edge Network / Content Delivery Network
  • Files are cached for a TTL (maybe a day)
  • Great for static content that must be available everywhere
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is CNAME used for?

A
  • hostname to hostname

- only for NON-ROOT domain (ex: mail.google.com)

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

What is ALIAS used for

A
  • hostname to AWS resource

- works for ROOT and NON-ROOT domain (ex: google.com and mail.google.com)

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

ACM can be attached to which AWS resources?

A

Amazon Certificate Manager

  1. Elastic Load Balancer
  2. CloudFront
  3. API Gateway
  4. Elastic Beanstalk (through ELB)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Which ELB supports assigning an Elastic IP?

A

Network Load Balancer (NLB)

This is helpful for whitelisting a specific IP

17
Q

Which ELB supports stickiness?

A

ALB

18
Q

Which ELB(s) have one static IP per AZ?

A

NLB

19
Q

What is an Elastic IP?

A

A fixed public IP address

20
Q

What is the error a Load Balancer generates when the target groups for the load balancer have no registered targets?

A

HTTP 503: Service unavailable