Sub topic 6
Performance Efficiency: using resources effectively
This chapter assumes you know core AWS services (EC2, S3, IAM, VPC) and the basics of a multi-tier application. It covers the Performance Efficiency pillar: what it asks of you, how to apply it, and the errors reviewers see most often.
What the pillar asks for
Performance Efficiency is the ability to use computing resources efficiently to meet system requirements, and to keep that efficiency as demand and technology change. The goal is not "as fast as possible". The goal is to meet a stated performance requirement without paying for more than you need.
The pillar's design principles are:
- Democratize advanced technologies by consuming them as managed services instead of building them yourself.
- Go global in minutes by deploying in multiple Regions or at edge locations to cut latency.
- Use serverless architectures to remove the cost of running servers for compute tasks.
- Experiment more often, because you can create and discard test environments cheaply.
- Consider mechanical sympathy, meaning you pick the technology that matches how your workload actually behaves.
The selection loop
Most performance work follows one loop: select, review, monitor, trade off.
- Select. Choose compute, storage, database and network options for the access pattern. For compute that means instances, containers or functions. For storage it means block, file or object. For databases it means relational, key-value, or in-memory, depending on how the data is read and written.
- Measure. Record metrics and run load tests. Without numbers, a choice is a guess.
- Compare. Check results against requirements such as p99 latency or requests per second.
- Adjust. Change the choice, or accept a trade-off, and repeat. New instance families and services appear often, so a choice that was right last year may not be now.
Worked example: checking a latency target
Suppose the orders-api workload must answer 99% of requests within 300 ms. You can read the current p99 latency from CloudWatch. This example assumes an Application Load Balancer, and you must replace the placeholder with your load balancer's dimension value.
aws cloudwatch get-metric-statistics \
--namespace AWS/ApplicationELB \
--metric-name TargetResponseTime \
--dimensions Name=LoadBalancer,Value=<alb-dimension-value> \
--start-time 2026-11-26T16:00:00Z \
--end-time 2026-11-26T18:00:00Z \
--period 300 \
--extended-statistics p99TargetResponseTime is reported in seconds, so a value above 0.3 breaches the target. If it does, check where the time goes before changing hardware. A slow database query calls for an index or a cache, not a larger web server.
Common errors
| Error | Why it hurts | Better practice |
|---|---|---|
| Choosing a technology because the team knows it | The fit to the access pattern is never tested | Compare options against measured requirements |
| Tuning without metrics | You cannot tell whether a change helped | Define a baseline and load test first |
| Choosing once and never revisiting | New instance types or services go unused | Schedule periodic reviews of the choice |
| Single Region for global users | Distance adds latency | Use a CDN such as Amazon CloudFront, or add Regions |
| Overprovisioning "to be safe" | It raises cost without a proven need | Scale with demand and right-size from data |
Review questions to expect
In a review, the pillar's questions cover how you select compute, storage, database and networking resources, how you evolve the workload to use new features, and how you monitor performance. Each question has best practices. Unmet ones raise a medium or high risk flag.
Exercise
The orders-api p99 latency is 800 ms against a 300 ms target. A teammate proposes doubling the instance size immediately. Using the pillar's selection loop, what should you do first, and why?
Show answer
Measure where the time is spent (metrics, traces, load test) before changing anything. Doubling the instance size is a guess that also raises cost. If the time is in a slow database query, an index or cache fixes it more cheaply. After the change, compare the new p99 against the 300 ms requirement.