CLF-C02 ยท Compute services
Auto scaling and load balancing
How Amazon EC2 Auto Scaling and AWS Auto Scaling provide elasticity, and the purpose of Elastic Load Balancing and its load balancer types.
Key points
- Amazon EC2 Auto Scaling: keeps a group between min and max size at desired capacity, replaces unhealthy instances, scales with demand.
- AWS Auto Scaling plans: several resource types, e.g. ECS, DynamoDB.
- Elastic Load Balancing: healthy targets in multiple Availability Zones.
- Application Load Balancer: HTTP/HTTPS, layer 7.
- Network Load Balancer: TCP/UDP, layer 4.
- Gateway Load Balancer: virtual appliances. Classic: previous generation.
Source: https://docs.aws.amazon.com/autoscaling/ec2/userguide/what-is-amazon-ec2-auto-scaling.html
Practice questions
Which Elastic Load Balancing type routes HTTP and HTTPS (layer 7) traffic using listener rules?
- Network Load Balancer
- Gateway Load Balancer
- Application Load Balancer
- Amazon Route 53
Show answer
Answer: C. Application Load Balancer
The Application Load Balancer works at layer 7 and evaluates listener rules to pick a target group. The Network Load Balancer works at layer 4 with TCP and UDP.
Which capabilities does Elastic Load Balancing provide?
- Distributes traffic across targets in multiple Availability Zones
- Routes requests only to targets that pass health checks
- Scales its own capacity automatically as traffic changes
- Terminates failed EC2 instances and launches replacements
- Caches static content at edge locations near users
Show answer
Answer: A. Distributes traffic across targets in multiple Availability Zones, B. Routes requests only to targets that pass health checks, C. Scales its own capacity automatically as traffic changes
ELB distributes traffic across targets in one or more Availability Zones, sends requests only to healthy targets, and scales its own capacity with traffic. Replacing failed instances is the job of EC2 Auto Scaling, and caching content at edge locations is Amazon CloudFront.
Amazon EC2 Auto Scaling charges its own fee on top of the EC2 instances it launches.
Show answer
Answer: False
False. There is no additional fee for EC2 Auto Scaling; you pay only for the resources it uses, such as EC2 instances, EBS volumes and CloudWatch alarms.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
