High Availability and Scalability Flashcards
This is to have mastery on Elastic Load Balancer and Auto-Scaling Group Concepts
A Type of ELB that is very useful for extreme performance, TCP or UDP Traffic
Network Load Balancer (v2)
How many static IP does an NLB has per AZ?
NLB has one static IP per AZ and supports Elastic IP (helpgul for whitelisting speciifc IP)
What are the valid Target Groups for a Network Load Balancer?
EC2 Instances
IP Addresses - must ne private IPs
Application Load Balancer
It can be used to Deploy, scale and amnage fleet of 3rd party network, virtual applicances in AWS
Example Firewalls, Intrusion Detection, and Prevention System, Deep packet Inspection and payload manipulation at the network level
Gateway Load balancer
What are the valid Taget Groups for Gateway Load Balancer
EC2 Instances
IP Addresses – must be private
It is possible to implement stickiness so that the same client is always redirected to the same instance behind a load balancer
Sticky Session (Session Affinity)
How does an Application\Network Load Balancer implement Session Affinity or Sticky Sessions?
By Using cookies
What are the two types of cookies used by ELB?
Application-based cookie and Duration-based cookie
This solves the problem of loading multiple SSL certificates onto one web server (to serve multiple websites) It is a newer protocol and requires to indicate the hostname of the target server in the initial SSL Handshake. Only works with ALB and NLB
SSL – Server Name Indication
It’s goal is to Scale Out (add EC2 Instances) to match an increased load and Scale in (remove EC2 instances) to match the decreased load.
Auto-Scaling Group
What is inside a Launch Template for ASG?
AMI, Instance type, EBS, IAM Role, Security Group, VPC
ASG - Scaling Policy
What Dynamic Scaling can you use for this use case below
I want the average ASG CPU to stay at around 40%
Target Tracking Scaling
ASG - Scaling Policy
What Dynamic Scaling can you use for this use case below:
When a CloudWatch Alarm is triggered (example CPU >70%), then add 2 units
When a CloudWatch alarm is triggered (example CPU < 30 %), then remove 1
Simple / Step Scaling
ASG - Scaling Policy
What Dynamic Scaling can you use for this use case below:
Anticipate a scaling based on known usage paterns
Example: increase the min capacity to 10 at 5 pm on Fridays
Scheduled Scaling
ASG - Scaling Policy
What Dynamic Scaling can you use for this use case below:
Contnuously forecast load and schedule scaling ahead
Predictive Scaling