Sub topic 9
Balancing the pillars: common trade-offs
This chapter assumes you know the six pillars by name and goal, and that you have used core AWS services such as EC2, S3, IAM and VPC. It does not repeat the pillar definitions. It shows how they pull against each other and how to record a balanced decision.
Why trade-offs exist
No workload maximizes all six pillars at once. Each pillar asks for something that can cost another pillar. The Framework does not tell you which pillar wins. It asks you to decide on purpose, write the decision down, and revisit it when conditions change.
The trade-off is rarely "all or nothing". You usually choose a point on a scale, such as how many Availability Zones to use or how long to keep logs.
Common trade-offs
| Choice | Helps | Costs |
|---|---|---|
| Run in multiple Regions | Reliability | Cost Optimization, Operational Excellence, Sustainability |
| Over-provision for peak load | Performance Efficiency, Reliability | Cost Optimization, Sustainability |
| Encrypt everything and inspect all traffic | Security | Performance Efficiency (latency), Cost Optimization |
| Keep all logs for years | Security, Operational Excellence | Cost Optimization |
| Release many times a day | Operational Excellence | Reliability, if tests and rollbacks are weak |
| Use smaller or fewer instances | Cost Optimization, Sustainability | Performance Efficiency, Reliability |
Some choices help several pillars together. Right-sizing and autoscaling often improve cost, performance and sustainability at once. Look for these first, because they carry no trade-off.
A worked example
Take the orders-api workload from earlier chapters. The business wants it to survive the loss of one Availability Zone. It has a modest budget.
- Deploy across two Availability Zones with an Auto Scaling group. This gives most of the reliability benefit at a small cost increase.
- Reject a second active Region for now. It would roughly double infrastructure cost and add replication to operate. Record the risk of a full Regional outage as accepted.
- Keep TLS enforced everywhere. The latency cost is small, and security is not negotiable for customer orders.
- Set log retention to 90 days in CloudWatch Logs and archive older data to cheaper S3 storage.
The last step is a concrete balance between Security, Operational Excellence and Cost Optimization.
aws logs put-retention-policy \
--log-group-name /orders-api/app \
--retention-in-days 90Common errors
- Optimizing one pillar in isolation, such as cutting cost without checking the reliability effect.
- Treating security and reliability as negotiable for cost. Most teams set a floor for these two and trade the rest.
- Making a decision once and never revisiting it. Traffic, prices and requirements change.
- Leaving accepted risks undocumented. In a review, an unrecorded accepted risk looks the same as an unnoticed one.
Exercise
A team wants to add a second active Region to orders-api for reliability. Name two other pillars the change affects and one question to ask before approving it.
Show answer
It affects Cost Optimization (duplicated infrastructure and data transfer) and Operational Excellence (more to deploy, monitor and test). Sustainability is also affected by the extra resources. A good question is whether the business requirement for recovery time and availability actually needs more than a multi-AZ design.