High Availability and Scalability: ELB and ASG Flashcards
A server that forwards traffic to multiple servers downstream
A load balancer
Deprecated load balancer type that provides a fixed hostname and supports TCP (Layer 4) and HTTP/HTTPS (Layer 7) traffic
Classic Load Balancer
True/False: Application Load Balancers are a great fit for micro services and container-based applications
True
True/False: A Network Load Balancer can have multiple static IPs per AZ
False - Network Load Balancers have one static IP per AZ
Load balancer type that is used to forward TCP & UDP traffic to your instances
Network Load Balancer
True/False: Sticky sessions (session affinity) can be enabled for all load balancers
False - It can only be enabled for Classic and Application load balancers
Feature that allows clients to be redirected to the same instance behind a load balancer on subsequent requests
Sticky Sessions
What are the two types of cookies you can have when enabling sticky sessions on a load balancer?
Application-based cookies and duration-based cookies
Feature that allows each load balancer instance to distribute traffic evenly across all registered instances in all AZs
Cross-Zone Load Balancing
Cross-Zone Load Balancing is enabled by default for all load balancers
False - Enabled by default for an Application load balancer, but disabled by default for Network and Classic
This type of certificate allows traffic between your clients and your load balancer to be encrypted in transit
SSL Certificate
Newer protocol that allows you to load multiple SSL certificates onto one web server
Server Name Indication (SNI)
True/False: Server Name Indication is supported by all Load Balancers
False - It is only supported by Application and Network load balancers, as well as CloudFront
Which Load balancers use Server Name Indication (SNI) to support multiple listeners with multiple SSL certificates?
Application and Network Load Balancers
Configurable time to complete ‘in-flight’ requests while an instance in de-registering from the ELB due to being unhealthy
Connection Draining / Deregistration Delay
Scaling policy type that allows you to set a baseline for your ASG (i.e. “I want ASG CPU utilization to stay at 40%”)
Target Tracking Scaling
Scaling policy that allows you to set actions to take based on specified CloudWatch alarms
Simple/Step Scaling
Scaling policy that allows you to set scaling based on anticipated usage patterns
Scheduled Actions
Scaling policy that uses ML to anticipate resource needs
Predictive Scaling
True/False: Auto Scaling groups are configured using a Launch Template
True
A collection of EC2 instances that are treated as a logical grouping for the purposes of automatic scaling and management
Auto Scaling Group
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?
Modify your website’s backend to get the client IP address from the X-Forwarded-For header
Which protocols does an Application Load Balancers support?
HTTP, HTTPS, and WebSocket
ALBs can route traffic to different Target Groups based on what four traffic characteristics?
URL Path, Hostname, HTTP Headers, and Query Strings