AWS Auto Scaling
Cloud service · AWS · Updated

AWS Auto Scaling

In short

AWS Auto Scaling is a service provided by Amazon Web Services that automatically adjusts the number of computing resources in response to demand, ensuring that your application maintains consistent performance at the lowest possible cost.

Cloud Services Hub →

6 key features of AWS Auto Scaling

AWS Auto Scaling dynamically adjusts resources in real-time, optimizes costs, provides a unified interface for scalable AWS services, integrates health checks for reliability, and employs predictive scaling for anticipating demand.

01
Dynamic Scalability

Automatically adjusts the number of computing resources in real-time based on application demand, ensuring that the application has the right amount of resources without manual intervention.

02
Cost-Effective

By scaling resources up and down based on demand, AWS Auto Scaling helps in optimizing the costs. You pay only for what you use, which helps in reducing the unnecessary expense of over-provisioning.

03
Unified Scaling

Provides a single user interface that allows you to automatically scale your AWS services such as Amazon EC2 instances, Amazon ECS tasks, Amazon DynamoDB tables, and Amazon Aurora replicas.

04
Predictive Scaling

Uses machine learning algorithms to predict future traffic, including spikes, and proactively scale resources ahead of anticipated demand, ensuring that the application can handle the load.

05
Automatic Resource Discovery

Automatically discovers resources in your application that can be scaled.

06
Forecast Data Access

The API provides access to current forecast data and historical forecast data for up to 56 days.

Where AWS Auto Scaling is used

AWS Auto Scaling use cases include handling unpredictable workloads, reducing costs by scaling down during low usage, maintaining application performance, ensuring high performance during traffic spikes, and scheduling scaling for known load patterns.

  1. 01
    Accommodating Unpredictable Workloads

    Allows businesses to handle unexpected increases in demand by automatically adding more instances to ensure that application performance remains steady and reliable, thus meeting user demand efficiently.

  2. 02
    Cost Reduction

    Automatically scales down the number of resources during low usage periods, helping organizations save on costs by ensuring they only pay for the resources they actually need and use.

  3. 03
    Seamless Application Scaling

    Enables seamless scaling of applications by monitoring application performance and automatically adjusting capacity to maintain steady, predictable performance at the lowest possible cost.

  4. 04
    Maintaining Performance During High Traffic

    Ensures that during high traffic periods, applications maintain high performance by automatically adding resources to handle the increased load, thus improving user experience.

How AWS Auto Scaling is priced

AWS Auto Scaling pricing follows a pay-as-you-go model with no extra charges for the Auto Scaling service itself; costs are based solely on the resources provisioned to meet application demand.

Pay as You Go

AWS Auto Scaling follows a pay-for-what-you-use pricing model without any upfront costs. You are charged for the AWS resources (such as EC2 instances, DynamoDB throughput, or RDS database instances) Auto Scaling provisions based on your scaling policies. Pricing for each resource is according to its specific pricing model, and Auto Scaling itself does not incur additional charges.

No Additional Charges for Auto Scaling

There is no additional charge for AWS Auto Scaling. You pay only for the AWS resources needed to run your applications and Amazon CloudWatch monitoring fees.

Services AWS Auto Scaling works with

Amazon EC2Amazon EC2

Automatically adjusts the number of EC2 instances in existing EC2 Auto Scaling groups based on demand.

Amazon AuroraAmazon Aurora

Through Application Auto Scaling, AWS Auto Scaling adjusts the number of Aurora read replicas in a DB cluster. Target-tracking policies can add readers when average CPU utilization or connections increase and remove them when demand falls.

Amazon CloudWatchAmazon CloudWatch

AWS Auto Scaling uses CloudWatch metrics and alarms to evaluate demand and trigger scaling policies. EC2 Auto Scaling also publishes group metrics, such as desired capacity and the number of instances in service, for monitoring.

Amazon ComprehendAmazon Comprehend

Application Auto Scaling adjusts the inference units provisioned for Amazon Comprehend document-classification and entity-recognition endpoints. Scaling policies can increase endpoint capacity as inference demand rises.

Amazon DevOps GuruAmazon DevOps Guru

DevOps Guru can analyze supported EC2 Auto Scaling group resources and their operational metrics to identify anomalous behavior. Its insights help investigate capacity and performance problems involving an application's Auto Scaling groups.

Amazon DynamoDBAmazon DynamoDB

Application Auto Scaling adjusts provisioned read and write capacity for DynamoDB tables and global secondary indexes. Target-tracking policies maintain a chosen utilization level within configured minimum and maximum capacity limits.

Amazon EC2 Auto ScalingAmazon EC2 Auto Scaling

AWS Auto Scaling scaling plans use Amazon EC2 Auto Scaling to adjust the capacity of Auto Scaling groups. Plans can configure dynamic scaling and predictive scaling to prepare instance capacity for recurring demand.

Amazon Elastic Block Store (Amazon EBS)Amazon Elastic Block Store (Amazon EBS)

EC2 Auto Scaling provisions EBS volumes using the block-device mappings in an instance launch template. Groups can also enable EBS health checks so that instances with impaired attached EBS volumes are replaced.

Amazon Elastic Container Service (Amazon ECS)Amazon Elastic Container Service (Amazon ECS)

Application Auto Scaling changes an ECS service's desired task count using target-tracking, step, scheduled, or predictive scaling. ECS capacity providers can separately manage an EC2 Auto Scaling group to supply the instances needed to run those tasks.

Amazon Elastic Kubernetes Service (Amazon EKS)Amazon Elastic Kubernetes Service (Amazon EKS)

EKS managed node groups use EC2 Auto Scaling groups to maintain their worker-node capacity. Kubernetes Cluster Autoscaler can change those groups' desired capacity when pods cannot be scheduled or nodes are underutilized.

What is AWS Auto Scaling

3 min read

AWS Auto Scaling is a service designed to manage the scaling of multiple resources across different services within the Amazon Web Services (AWS) ecosystem. This powerful tool automates the capacity management of applications, ensuring that they run at optimal performance levels with just the right amount of resources needed at any given time. It adjusts the amount of computational resources based on the demand, which can fluctuate due to various factors such as time of day, specific events, or unforeseen spikes in usage. By doing so, AWS Auto Scaling helps organizations reduce costs by eliminating the need for manual intervention in scaling procedures and avoiding over-provisioning of resources which may not always be necessary. 

One of the key features of AWS Auto Scaling is its ability to monitor applications and automatically adjust capacity to maintain steady, predictable performance at the lowest possible cost. It works across several AWS services, including Amazon EC2 instances, DynamoDB tables, and ECS services, among others. This broad service support makes it a flexible tool that can adapt to a variety of scaling needs and scenarios. 

The service operates by defining scaling policies based on specific metrics such as CPU utilization or the number of requests per minute. When these metrics reach certain thresholds, AWS Auto Scaling adjusts the resources either by scaling out (adding more resources) to cope with increased load or scaling in (removing resources) to reduce costs when demand is lower. Implementing AWS Auto Scaling involves setting targets for your resource utilization, which helps in maintaining the performance of your applications while optimizing the costs. 

Dynamic scaling metrics can be standard utilization or throughput metrics, or custom metrics.

You can set minimum and maximum capacity limits through the AWS Auto Scaling API.

Predictive Scaling uses historical traffic patterns and machine learning to forecast daily and weekly demand patterns and schedule changes in the number of EC2 instances ahead of time.

If you use scaling plans only for predictive scaling, AWS strongly recommends configuring predictive scaling policies directly on your Auto Scaling resources instead. This option supports additional features, including metric aggregation to create custom metrics and retaining historical metric data across blue/green deployments.

The service provides a user-friendly interface that simplifies the setup and management of auto-scaling configurations. Users can create scaling plans that automatically manage the scaling policies and the configuration of all resources that are part of your application within a single interface. This centralized management approach saves time and reduces the complexity of maintaining optimal resource levels across multiple services. 

Each scaling plan supports at most 500 scaling instructions; this quota cannot be increased.

AWS Auto Scaling ensures that your application is equipped with the right amount of resources at all times, enhancing customer satisfaction by providing consistent performance even during peak loads. It also plays a crucial role in cost management, as it smartly adjusts resources to meet demand without underutilizing or over-provisioning, thus helping businesses to operate more efficiently financially. 

In summary, AWS Auto Scaling is an essential tool for modern cloud infrastructure management. It not only guarantees application availability and performance by dynamically adjusting resources in response to real-time demand but also aids in controlling costs through efficient resource utilization. This combination of performance optimization and cost efficiency makes AWS Auto Scaling an invaluable asset for businesses looking to leverage cloud computing's full potential.

AWS Auto Scaling exam questions

Real practice exam questions on AWS Auto Scaling, with the correct answer and its explanation. Answer them with every option in the exam simulator.

CLF-C02

A ticketing company runs an application on Amazon EC2 instances. Its automated capacity configuration allows between 20 and 40 instances and adjusts capacity based on demand. Testing confirms that the application needs only 4 instances during quiet periods but requires 40 during major ticket releases. The company notices that at least 20 instances remain running even when demand is low. Which change would allow the automation to reduce idle compute spending while preserving the capacity needed for ticket releases?

Show answerCORRECT ANSWER

Configure AWS Auto Scaling with a minimum of 4 instances and a maximum of 40 instances, retaining demand-based scaling.

Lowering the minimum allows automated scale-in to remove unnecessary instances during quiet periods. Keeping the maximum at 40 preserves the ability to add the capacity required during ticket releases.

MLA-C02

A company runs GPU-based video inference workers on On-Demand Amazon EC2 instances in an Auto Scaling group. Each worker processes one job at a time. Jobs take up to 25 minutes and cannot be checkpointed or resumed. A demand-based scaling policy correctly adds and removes instances, but scale-in sometimes terminates workers before their current jobs finish.

The worker application can stop accepting new jobs when notified and report when its current job finishes. The company must retain automatic scale-in while preventing healthy workers from losing in-progress jobs during policy-driven scale-in. Hardware failures and other unexpected interruptions are outside the scope of this requirement.

Which solution best meets these requirements?

Show answerCORRECT ANSWER

Configure a termination lifecycle hook with a timeout longer than the maximum job duration. When an instance enters Terminating:Wait, notify its worker to stop accepting jobs. After its current job finishes, complete the lifecycle action so termination can proceed.

A termination lifecycle hook pauses termination in Terminating:Wait, allowing the worker to drain its current job. Setting an adequate timeout and completing the lifecycle action after processing finishes preserves automatic scale-in without interrupting in-progress jobs.

SAP-C03

A company runs a synchronous order-validation API on AWS Lambda. All production requests invoke a single published version through an alias. Each invocation can hold one connection to a legacy system, which permits at most 200 simultaneous connections from this function. No other application uses this connection allocation.

Traffic is usually low but increases abruptly when sales events begin at published times. Load tests show that the initial surge requires 200 concurrent execution environments. Function initialization takes 12 seconds, which violates the latency requirement during the initial surge. Outside these events, occasional initialization delays are acceptable. Requests exceeding the connection limit may be throttled.

A solutions architect must ensure that 200 initialized environments are ready before each sales event, automatically adjust initialized capacity between 20 and 200 outside event windows, and prevent the function from exceeding 200 concurrent invocations. Other functions in the account must not consume the concurrency allocated to this function. Account concurrency quotas are sufficient, and deployment automation can wait for provisioned capacity to become ready.

Which solution meets these requirements with the LEAST operational overhead?

Show answerCORRECT ANSWER

Set the function's reserved concurrency to 200. Register the alias's provisioned concurrency with AWS Application Auto Scaling with a minimum of 20 and a maximum of 200. Use target tracking on provisioned concurrency utilization. Schedule the minimum to increase to 200 sufficiently before each event, and restore it to 20 after the event.

Reserved concurrency both reserves account concurrency for the function and caps its total concurrent invocations at 200. Provisioned concurrency initializes environments for the alias. Target tracking adjusts that initialized capacity outside event windows, while raising the scheduled minimum to 200 forces capacity to be prepared before the surge. Restoring the minimum allows target tracking to reduce initialized capacity afterward.

Practice AWS Auto Scaling in a full exam

Questions on AWS Auto Scaling in each practice exam, with every answer option and an explanation for each:

Start a free practice exam

Learn AWS Auto Scaling in lessons

13 short lessons on AWS Auto Scaling in 7 certification courses.

and 7 more lessons

Open the lessons

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.