Sub topic 2
Performance Efficiency, Cost, Sustainability, and Trade-offs
Assume you understand basic AWS services such as EC2, S3, IAM, and VPC, plus how a multi-tier application is deployed. This chapter focuses on choosing and operating resources deliberately rather than simply adding more capacity.
Performance Efficiency: use resources effectively
Performance Efficiency asks whether a workload uses the right resources for its requirements. Start with measurable targets such as latency, throughput, and error rate. Then choose services and instance types that meet those targets without unnecessary capacity.
Useful practices include:
- Select purpose-built services, such as databases, queues, or managed analytics services, instead of building equivalent systems manually.
- Use elasticity so capacity grows and shrinks with demand.
- Test newer instance types and storage options instead of assuming older choices remain optimal.
- Monitor utilization and performance continuously.
- Use caching and content delivery when repeated requests can be served closer to users.
A common error is optimizing only for average performance. Review peak traffic, tail latency, and recovery behavior too.
Cost Optimization: deliver value at the lowest price
Cost Optimization connects spending to business results. Track cost per unit, such as cost per order or cost per active user, rather than looking only at the monthly bill.
Rightsize underused resources, remove abandoned assets, select suitable pricing models, and use lifecycle policies for data. On-demand capacity is flexible, while Savings Plans, reserved capacity, and Spot Instances can reduce cost when workload patterns support them.
Sustainability: reduce environmental impact
Sustainability considers the resources and energy required to run a workload. Higher utilization usually means less idle capacity. Managed services, right-sized resources, efficient architectures, and automated shutdown schedules can reduce waste.
Data retention also matters. Keep data for a defined business reason, move infrequently accessed data to suitable storage classes, and delete data when policy allows.
Balancing the pillars
The pillars can conflict. Extra replicas may improve reliability but increase cost and energy use. Aggressive caching may improve latency but add storage cost and create stale-data risks. Multi-Region deployment can reduce recovery time but requires more resources.
Choose based on business requirements. Record the expected benefit, cost, operational impact, and failure mode. Revisit the decision when traffic, technology, or requirements change.
Exercise
An EC2 fleet has low average utilization but must handle predictable monthly peaks. What should you investigate first?
Show answer
Measure peak performance requirements, then consider rightsizing, elasticity, and a pricing model such as a Savings Plan for the predictable baseline.