CloudGuild · Blog · Cheat sheets · Lessons · Certifications
Cost Optimization & Purchasing: When to Use What (and How the Exam Tests It)
Master AWS cost optimization strategies and understand how to navigate purchasing options for the SAA-C03 exam.
Cost optimization is not just a matter of trimming expenses. It’s a strategic decision that impacts architecture from the start. Understanding when to choose different purchasing models is crucial for both effective cost management and success on the AWS Certified Solutions Architect - Associate exam.
The Purchasing Ladder
When considering AWS purchasing options, we have three main categories:
- On-Demand: Best for unpredictable workloads or short-term use. There’s no commitment, making it flexible but usually more expensive.
- Savings Plans / Reserved Instances: Ideal for steady workloads. These options can save up to 72% with a one or three-year commitment. They are not suited for workloads with fluctuating demand.
- Spot Instances: These are perfect for interruptible workloads. They can save up to 90%, but you risk losing them if AWS needs the capacity back. Spot is great for batch jobs or fault-tolerant applications.
| Purchasing Option | Use Case | Cost Savings |
|---|---|---|
| On-Demand | Unpredictable workloads | None |
| Savings Plans | Steady workloads | Up to ~72% |
| Spot Instances | Interruptible, fault-tolerant workloads | Up to ~90% |
Storage & Data Levers
Selecting the right storage class is another avenue for cost optimization. Consider the following strategies:
- S3 Lifecycle Policies: Move data to Infrequent Access (IA) or Glacier as it ages. This reduces storage costs significantly.
- Intelligent-Tiering: Use this for unknown access patterns. It automatically moves data to the most cost-effective tier based on usage.
- Gateway VPC Endpoint: This can be used to connect to S3 without incurring NAT data transfer charges, saving costs when accessing S3 from a VPC.
- Right-Size Instances: Regularly analyze utilization data to ensure instances are not over-provisioned. Stopping non-production instances during off-hours can also lead to significant savings.
Tooling for Cost Management
AWS provides several tools to help manage costs effectively:
- AWS Budgets: Set thresholds and receive alerts when you approach them, keeping your spending in check.
- Cost Explorer: Analyze your spending patterns to identify areas for improvement.
- Compute Optimizer: This tool helps in right-sizing your instances based on actual usage data.
Gotchas & Exam Traps
Be aware of common pitfalls in both architecture decisions and exam questions:
- If a workload is interruptible and batch-oriented, choose Spot Instances. For always-on workloads, Savings Plans are the right choice. Do not commit Reserved Instances for workloads with spiky demand.
- The phrase "reduce cost of a steady workload" typically means committing to a Savings Plan and right-sizing resources together.
- Over-provisioned On-Demand instances at maximum size are almost always incorrect answers on the exam, as they do not reflect cost optimization principles.
How the Exam Tests This
Exam writers focus on decision-making scenarios:
- They will present workload types and ask you to select the appropriate purchasing model. For example, a question may describe a batch job and provide options of On-Demand, Savings Plans, and Spot Instances. The answer will typically point to Spot.
- Expect questions about storage choices, especially regarding lifecycle policies or Intelligent-Tiering. They may ask how to reduce costs for data that is infrequently accessed.
- Questions often emphasize cost management tools. You might need to identify which tool is best for a given scenario, such as determining whether to set a budget alert or analyze cost trends.
The Rule to Remember
Cost optimization is a design decision, not a cleanup task. Choose your purchasing and tiering models early, and automate where possible.
For further practice, Take the free SAA-C03 mock exam.