High Availability and Scalability: ELB and ASG Flashcards

1
Q

A server that forwards traffic to multiple servers downstream

A

A load balancer

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

Deprecated load balancer type that provides a fixed hostname and supports TCP (Layer 4) and HTTP/HTTPS (Layer 7) traffic

A

Classic Load Balancer

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

True/False: Application Load Balancers are a great fit for micro services and container-based applications

A

True

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

True/False: A Network Load Balancer can have multiple static IPs per AZ

A

False - Network Load Balancers have one static IP per AZ

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

Load balancer type that is used to forward TCP & UDP traffic to your instances

A

Network Load Balancer

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

True/False: Sticky sessions (session affinity) can be enabled for all load balancers

A

False - It can only be enabled for Classic and Application load balancers

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

Feature that allows clients to be redirected to the same instance behind a load balancer on subsequent requests

A

Sticky Sessions

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

What are the two types of cookies you can have when enabling sticky sessions on a load balancer?

A

Application-based cookies and duration-based cookies

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

Feature that allows each load balancer instance to distribute traffic evenly across all registered instances in all AZs

A

Cross-Zone Load Balancing

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

Cross-Zone Load Balancing is enabled by default for all load balancers

A

False - Enabled by default for an Application load balancer, but disabled by default for Network and Classic

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

This type of certificate allows traffic between your clients and your load balancer to be encrypted in transit

A

SSL Certificate

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

Newer protocol that allows you to load multiple SSL certificates onto one web server

A

Server Name Indication (SNI)

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

True/False: Server Name Indication is supported by all Load Balancers

A

False - It is only supported by Application and Network load balancers, as well as CloudFront

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

Which Load balancers use Server Name Indication (SNI) to support multiple listeners with multiple SSL certificates?

A

Application and Network Load Balancers

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

Configurable time to complete ‘in-flight’ requests while an instance in de-registering from the ELB due to being unhealthy

A

Connection Draining / Deregistration Delay

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

Scaling policy type that allows you to set a baseline for your ASG (i.e. “I want ASG CPU utilization to stay at 40%”)

A

Target Tracking Scaling

17
Q

Scaling policy that allows you to set actions to take based on specified CloudWatch alarms

A

Simple/Step Scaling

18
Q

Scaling policy that allows you to set scaling based on anticipated usage patterns

A

Scheduled Actions

19
Q

Scaling policy that uses ML to anticipate resource needs

A

Predictive Scaling

20
Q

True/False: Auto Scaling groups are configured using a Launch Template

A

True

21
Q

A collection of EC2 instances that are treated as a logical grouping for the purposes of automatic scaling and management

A

Auto Scaling Group

22
Q

If your website only sees traffic coming from private IPv4 addresses that belong to your Application Load Balancer, what should you do to get the IP address of clients connected to your website?

A

Modify your website’s backend to get the client IP address from the X-Forwarded-For header

23
Q

Which protocols does an Application Load Balancers support?

A

HTTP, HTTPS, and WebSocket

24
Q

ALBs can route traffic to different Target Groups based on what four traffic characteristics?

A

URL Path, Hostname, HTTP Headers, and Query Strings

25
Q

Network Load Balancers have one static IP address per AZ. What do Application Load Balancers and Classic Load Balancers have?

A

A static DNS name

26
Q

What are the three reserved cookie names for ELBs?

A

AWSALB, AWSALBAPP, and AWSALBTG

27
Q

A web application hosted on a fleet of EC2 instances managed by an Auto Scaling Group. You are exposing this application through an Application Load Balancer. Both the EC2 instances and the ALB are deployed on a VPC with the following CIDR 192.168.0.0/18. How do you configure the EC2 instances’ security group to ensure only the ALB can access them on port 80?

A

Add an Inbound Rule with port 80 and ALB’s Security Group as the source

28
Q

You have a website hosted in EC2 instances in an Auto Scaling Group fronted by an Application Load Balancer. Currently, the website is served over HTTP, and you have been tasked to configure it to use HTTPS. You have created a certificate in ACM and attached it to the Application Load Balancer. What you can do to force users to access the website using HTTPS instead of HTTP?

A

Configure the Application Load Balancer to redirect HTTP to HTTPS

29
Q

What type of load balancer offers Content-Based Routing?

A

Application Load Balancer

30
Q

True/False: You can assign an Elastic IP to an Application Load Balancer

A

False

31
Q

Feature used ensure that an Elastic Load Balancer stops sending requests to instances that are de-registering or unhealthy while keeping the existing connections open

A

Connection draining

32
Q

By default, cross-zone load balancing is _____ for Application Load balancer and _____ for Network Load Balancer

A

enabled; disabled