Scale on demand that the fleet can serve
Choose a scaling signal that changes with load per unit of capacity and verify the downstream limits.
Scale on demand that the fleet can serve
A target-tracking policy attempts to keep a suitable utilization metric near its target. For a queue worker, backlog per active instance can be more informative than total queue length. Include startup time and monitor oldest-message age to see whether customers are waiting too long. Maximum capacity, service quotas or slow instance warmup can prevent a scaling policy from meeting demand.
Scaling web workers can shift pressure to a constrained database. Evaluate read replicas for suitable read traffic, on-demand or provisioned scaling for DynamoDB, and application caches for repeated reads where freshness permits. Track cache hit rate and staleness as well as throughput. Match a scaling test to real traffic and inspect activity history when a scaling action is requested but instances never arrive.
Worked case 1
A queue has 1,000 jobs and ten equally capable workers. A second fleet has 1,000 jobs and two workers. Why might one backlog target be inappropriate?
Check your reasoning
Normalize the queue by active processing capacity. The fleets have 100 and 500 pending jobs per worker. Compare processing duration and age before choosing a sustainable target.
Worked case 2
Autoscaling launches instances but customer latency gets worse. Which shared resource might now be saturated?
Check your reasoning
Inspect connection counts and database load, quotas, cache hit rate and downstream latency. Adding workers can raise contention when the bottleneck is elsewhere.
Target tracking for EC2 Auto Scaling · Official SOA-C03 objectives for this domain
Related lesson in AWS Certified Developer – Associate. Tune the constrained resource.
Measuring cache-assisted scaling
Warm a representative key set at the edge or in ElastiCache and record the origin request rate. Repeat with an empty cache to model a new location or a restart. Size origin capacity for an acceptable miss pattern and track evictions, hit rate and latency alongside CPU.
Practice with the recording
A service launches new instances on schedule, yet the backlog grows for ten minutes. What would you time?
Check your reasoning
Measure boot, application initialization, registration and the time until a new worker completes its first job. Align warm-up and scaling decisions with productive capacity. Average CPU can fall as new instances start even while useful capacity lags.
Practice the individual exam skills
- 2.1.1–2.1.3 Scale the worker, cache and data tier separately during a repeatable burst. An EC2 target-tracking policy changes worker count. Read replicas, DynamoDB capacity and cache hits address different downstream limits.
Scale on demand that the fleet can serve quiz
Answer 3 questions. Check each answer for an explanation.