AWS Fundamentals: ELB + ASG Flashcards

1
Q

What is vertical scalability?

A

Increasing the size of an instance, e.g., from t2.micro to t2.large.

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

What is horizontal scalability (elasticity)?

A

Increasing the number of instances in a system.

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

What is high availability?

A

Running an application in at least two Availability Zones to survive failures.

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

What AWS features support horizontal scaling and high availability?

A

Auto Scaling Groups and Load Balancers across multiple AZs.

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

What does an Elastic Load Balancer (ELB) do?

A

Distributes traffic to multiple EC2 instances.

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

What are the benefits of using a load balancer?

A

Load spreading, health checks, SSL termination, DNS endpoint, stickiness, high availability.

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

What is the advantage of a managed ELB?

A

AWS handles uptime, maintenance, scaling, and integration with other services.

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

What is a health check in ELB?

A

It monitors instance health using a port and route, expecting a 200 OK.

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

What are the 4 types of AWS load balancers?

A

CLB, ALB, NLB, GWLB.

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

What protocols does CLB support?

A

HTTP, HTTPS, TCP, SSL.

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

What is the primary use of ALB?

A

HTTP/HTTPS Layer 7 load balancing, routing, container support.

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

How does ALB support routing?

A

Based on URL path, hostname, headers, or query strings.

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

What can ALB target groups contain?

A

EC2, ECS tasks, Lambda functions, IP addresses.

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

How does ALB expose client IPs?

A

Via the X-Forwarded-For header.

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

What is a Network Load Balancer (NLB)?

A

Layer 4 load balancer for TCP/UDP traffic with low latency.

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

What feature makes NLB suitable for whitelisting?

A

Supports static and Elastic IPs.

17
Q

What is a Gateway Load Balancer (GWLB)?

A

Handles traffic for third-party appliances like firewalls at Layer 3.

18
Q

How does sticky session work in ELB?

A

Client is always redirected to the same backend instance using cookies.

19
Q

What are the cookie names for sticky sessions?

A

AWSALBAPP (application), AWSALB (duration), AWSELB (CLB).

20
Q

What is Cross-Zone Load Balancing?

A

Distributes requests evenly across all AZs.

21
Q

What is the default state of Cross-Zone Load Balancing?

A

Enabled for ALB, disabled for NLB & GWLB (can incur costs).

22
Q

What is SSL/TLS used for?

A

Encrypting in-flight traffic between client and load balancer.

23
Q

How are SSL certs managed in AWS?

A

Using AWS Certificate Manager (ACM).

24
Q

What is Server Name Indication (SNI)?

A

Allows multiple SSL certs on a single listener.

25
Which load balancers support SNI?
ALB, NLB, and CloudFront.
26
How many SSL certs does CLB support?
Only one. Multiple CLBs needed for multiple certs.
27
What is connection draining?
Allows in-flight requests to complete before instance termination.
28
What is the ASG goal?
Maintain instance count, scale based on load, auto-register to ELB, replace unhealthy instances.
29
What components make up an ASG launch template?
AMI, instance type, user data, volumes, security groups, key pair, IAM role.
30
What scaling can be triggered by CloudWatch alarms?
Scale-out or scale-in actions.
31
What is predictive scaling?
Forecasts future load and pre-scales instances.
32
What metrics can be used for scaling?
CPUUtilization, RequestCountPerTarget, Network In/Out, custom metrics.
33
What is ASG cooldown period?
Delay after scaling to stabilize metrics (default 300 seconds).
34
What is ASG Instance Refresh?
Recreates instances using a new launch template.