High Availability & Scaling Flashcards
What does CloudFront provide?
A content delivery network (CDN) that caches content globally - as close to the end users as possible to improve performance.
What are the three types of Elastic Load Balancer (ELB) available in AWS?
- Application Load Balancer (ALB) - Layer 7, HTTP/S and WebSocket
- Network Load Balancer (NLB) - Layer 4, TCP, UDP, and TLS
- Classic Load Balancer (CLB) - V1, lacks features, 1 SSL cert per CLB, shouldn’t be used anymore
What happens when an Elastic Load Balancer (ELB) is created?
ELB nodes are placed in two (required) or more subnets in each AZ that the ELB services. These nodes automatically scale within the AZ.
What type of DNS record is an Elastic Load Balancer (ELB) configured with and where does it resolve to?
An A record that resolves to all the ELB’s nodes.
What are Internet-facing Elastic Load Balancer (ELB) nodes given that internal ELB nodes are not?
Public IPs.
Can Internet-facing Elastic Load Balancer (ELB) connect to public EC2 instances or private EC2 instances?
Both.
How many free IPs per subnet are required for an Elastic Load Balancer (ELB)?
An ELB needs at least eight free IPs per subnet so it can scale. A /27 subnet is recommended.
What does cross-zone load balancing enable?
It allows a ELB node in one AZ to direct traffic to resources in another AZ. This is enabled by default.
What does a logical Elastic Load Balancer (ELB) represent?
A DNS A record pointing at 1+ ELB nodes per subnet.
To work with an Internet-facing Elastic Load Balancer (ELB), does an EC2 instance need to be public or private?
Either. The EC2 instance doesn’t need to be public to work with an ELB.
What types of Layer 7 data can an Application Load Balancer (ALB) inspect?
Content type, cookies, custom headers, user location, and app behavior.
Where do SSL/TLS session terminate when using an Application Load Balancer (ALB)?
On the ALB. There is no unbroken SSL. A new connection will be made to the application. This means ALBs must have SSL certs for HTTPS.
Which type of Elastic Load Balancer (ELB) is faster? A Network Load Balancer or an Application Load Balancer?
A Network Load Balancer is faster because it works at the Network Layer rather than the Application Layer.
What do Application Load Balancer rules do?
They inspect conditions (such as host-header, http-header, http-request-method, query-string, and source-ip) and take actions (such as forward, redirect, authenticate-oidc, authenticate-cognito) based on those conditions.
If you have to forward connections through an Elastic Load Balancer (ELB) without breaking the SSL connection, what type of ELB must you use?
Network Load Balancer.
What type of Elastic Load Balancer (ELB) should you likely use if you are loading balancing connections that DO NOT use HTTP/HTTPS?
Network Load Balancer.