Bitzu

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

Single choice

Which Elastic Load Balancing type routes HTTP and HTTPS (layer 7) traffic using listener rules?

  1. Network Load Balancer
  2. Gateway Load Balancer
  3. Application Load Balancer
  4. 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.

Select all that apply

Which capabilities does Elastic Load Balancing provide?

  1. Distributes traffic across targets in multiple Availability Zones
  2. Routes requests only to targets that pass health checks
  3. Scales its own capacity automatically as traffic changes
  4. Terminates failed EC2 instances and launches replacements
  5. 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.

True or false

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.

Download on the App StoreGet it on Google Play

More CLF-C02 topics in this module