Study Guide1,052 words

Mastering AWS Purchasing Options: Cost vs. Performance Optimization

Understanding how purchasing options affect cost and performance

Mastering AWS Purchasing Options: Cost vs. Performance Optimization

This guide explores the strategic selection of AWS purchasing models to balance budget constraints with application performance requirements, specifically tailored for the AWS Certified Solutions Architect - Professional (SAP-C02) curriculum.

Learning Objectives

By the end of this study guide, you should be able to:

  • Evaluate the most appropriate purchasing model based on workload patterns (steady-state, spiky, or fault-tolerant).
  • Identify the performance-to-cost advantages of moving to newer instance generations (e.g., C6/C7) and ARM-based architectures (Graviton).
  • Recommend strategies for right-sizing using AWS Compute Optimizer and S3 Storage Lens.
  • Differentiate between Reserved Instances and Savings Plans for long-term commitment strategies.

Key Terms & Glossary

  • On-Demand Instances: Pay for compute capacity by the second/hour with no long-term commitment.
  • Spot Instances: Leverage spare AWS capacity for up to a 90% discount, subject to interruption with a 2-minute warning.
  • Savings Plans: A flexible pricing model that offers low prices on EC2, Lambda, and Fargate usage in exchange for a commitment to a consistent amount of usage (measured in /hour) for a 1 or 3-year term.
  • Reserved Instances (RI): A commitment to use a specific instance type in a specific region for a 1 or 3-year term.
  • Right-sizing: The process of matching instance types and sizes to your workload performance and capacity requirements at the lowest possible cost.
  • Graviton: AWS-designed ARM-based processors that provide better price-performance than x86-based processors for many workloads.

The "Big Idea"

[!IMPORTANT] The fundamental trade-off in AWS pricing is Flexibility vs. Cost. The more you can predict your usage and commit to it, or the more flexibility you can build into your application to handle interruptions, the lower your unit cost will be. Cost optimization is not a one-time event but a continuous cycle of monitoring, right-sizing, and purchasing model adjustment.

Formula / Concept Box

ConceptCore Logic / FormulaBest Use Case
Total CostUsage Units \times Unit PriceBasic budgeting
Effective Hourly Rate(Upfront Fee / Term Length) + Hourly RateComparing RI vs. On-Demand
Performance Efficiency\frac{Performance (Throughput/Ops)}{Cost}Evaluating Graviton/Newer Generations
Spot DiscountUp_to 90% off On-Demand$Fault-tolerant, stateless workloads

Hierarchical Outline

  • I. Compute Purchasing Models
    • A. On-Demand: High cost, maximum flexibility; best for new, unpredictable workloads.
    • B. Spot Instances: Lowest cost, high risk; ideal for batch processing, CI/CD, and stateless web tiers.
    • C. Commitment-Based (RI & Savings Plans): Significant discounts for steady-state workloads.
  • II. Infrastructure Optimization
    • A. Instance Generations: Newer generations (C5 \rightarrow C6 \rightarrow C7) offer better performance at lower prices.
    • B. Architecture Shifts: Moving from x86 to Graviton (ARM) for up to 40% better price-performance.
    • C. Storage Tiering: Moving from S3 Standard to S3 Intelligent-Tiering or Glacier based on access patterns.
  • III. Visibility & Governance Tools
    • A. Monitoring: AWS Cost Explorer and AWS Budgets.
    • B. Recommendations: AWS Compute Optimizer and AWS Trusted Advisor.
    • C. Organization: Tagging strategies to map costs to business units.

Visual Anchors

Purchasing Decision Flow

Loading Diagram...

Cost vs. Commitment Curve

\begin{tikzpicture}[scale=0.8] \draw[->] (0,0) -- (6,0) node[right] {Commitment / Predictability}; \draw[->] (0,0) -- (0,5) node[above] {Unit Cost ($)}; \draw[thick, red] (0.5,4.5) -- (5.5,1.5); \node at (1.2,4.8) [scale=0.7] {On-Demand}; \node at (3.5,3.2) [scale=0.7] {Savings Plans}; \node at (5.5,1.2) [scale=0.7] {Spot/3-Year RI}; \draw[dashed] (0.5,4.5) -- (0.5,0); \draw[dashed] (5.5,1.5) -- (5.5,0); \end{tikzpicture}

Definition-Example Pairs

  • Commitment-based Pricing: Paying for a baseline of capacity in exchange for a discount.
    • Example: A company running a production database 24/7 purchases a 3-year Instance Savings Plan, reducing their hourly cost by 60% compared to On-Demand.
  • Horizontal Auto-scaling: Adding or removing instances based on demand.
    • Example: A web application uses an Auto Scaling Group to add instances during the 9 AM - 5 PM business hours and terminate them at night to save costs.
  • Modernization Refactoring: Changing application code to use managed services.
    • Example: Moving a worker application from EC2 to AWS Lambda to eliminate costs for idle server time.

Worked Examples

Scenario 1: The Batch Processor

Problem: A firm needs to process 10TB of data every night. The process is stateless and can be restarted if interrupted. Completion time is flexible within a 6-hour window. Solution: Use Spot Instances within an Auto Scaling Group. Result: The firm saves ~80% compared to On-Demand. Even if an instance is reclaimed, the stateless nature allows the job to continue on a new Spot instance.

Scenario 2: Legacy Migration

Problem: A client performs a "lift-and-shift" of a monolithic C4.xlarge Windows app. Costs are higher than on-premises. Step 1: Use AWS Compute Optimizer to see if the instance is over-provisioned. Step 2: Upgrade from C4 to C6i (Intel) or C6g (Graviton if compatible). Newer generations are cheaper and faster. Step 3: Once the size is stabilized, apply a Compute Savings Plan.

Checkpoint Questions

  1. Which purchasing option provides the highest discount for fault-tolerant workloads?
  2. What is the main difference between a Standard RI and a Convertible RI?
  3. How does AWS Graviton affect the "Price-Performance" ratio?
  4. Which tool provides automated right-sizing recommendations for EC2 and Lambda?
Click to see answers
  1. Spot Instances.
  2. Standard RIs offer higher discounts but cannot be changed; Convertible RIs allow you to change instance families/attributes.
  3. It improves it by providing higher performance at a lower hourly cost than equivalent x86 instances.
  4. AWS Compute Optimizer.

Muddy Points & Cross-Refs

  • RI vs. Savings Plans: RIs are older and tied more strictly to instance types/regions (though this is changing). Savings Plans are generally preferred now for compute because they automatically apply across EC2, Fargate, and Lambda regardless of instance family or region.
  • Interruption Handling: Architects often worry about Spot interruptions. The "Muddy Point" is often when it happens. AWS gives a 2-minute warning via Amazon EventBridge. Applications must be designed to checkpoint progress.

Comparison Tables

FeatureOn-DemandSpot InstancesSavings Plans
CommitmentNoneNone1 or 3 Years
Discount0% (Baseline)Up to 90%Up to 72%
PredictabilityHighLow (Interruptible)High
Best ForNew/Spiky appsStateless/BatchSteady-state production
FlexibilityHighestMediumHigh (Across compute)

Ready to study AWS Certified Solutions Architect - Professional (SAP-C02)?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free