Hermes Wiki

SAA-C03 Domain 4 Exam Readiness Report: Designing Cost-Optimized Architectures

1. Domain 4 Strategic Overview and Core Mindset

In the SAA-C03 exam, Domain 4 represents a pivot from "what works" to "what works for the least money." The objective is to design architectures that satisfy functional requirements while leveraging the Variable-Cost Consumption Model to eliminate waste.

The Architect's Mindset:

  • Functional-First Rule: Cost is never the first filter; it is the tie-breaker among options that meet the hard technical requirements (RTO, RPO, IOPS). A cheaper solution that fails to meet a performance requirement is a wrong answer.
  • Managed Services Preference: Default to managed services (RDS, Fargate, Lambda) to reduce Total Cost of Ownership (TCO) by offloading the "undifferentiated heavy lifting" of server maintenance.
  • Iterative Improvement Loop: Cost optimization is an ongoing cycle of right-sizing, transitioning storage tiers, and cleaning up idle resources based on a monthly feedback loop.

2. Compute Optimization: Matching Workloads to Purchasing Models

Compute Purchasing Models Comparison

Model Exam Tell (Scenario Keywords) Cost Benefit
On-Demand Spiky, short-term, unpredictable; first-time testing. Pay-per-second; no commitment.
Savings Plans Steady-state; need flexibility across EC2, Fargate, and Lambda. Up to 72% discount; applies to $/hour spend.
Standard RI Steady-state; 1-3 year known duration; locked to family. Highest RI discount (up to 72%).
Convertible RI Steady-state; need to change instance families/OS. Lower discount than Standard; more flexibility.
Spot Instances "Fault-tolerant," "Stateless," "Flexible," "Interruption-tolerant." Up to 90% discount; 2-minute reclaim warning.
Dedicated Hosts "BYOL," "Per-socket/core licenses," "Compliance." Physical server visibility; use existing licenses.
Dedicated Instances "Physical isolation" (no license/socket visibility required). Hardware dedicated to a single account.

SME Pro-Tip: The IOPS Cost Trap When a question requires high IOPS (e.g., 40,000) for temporary, discarded, or scratch data, the most cost-effective answer is an I-family (Storage Optimized) instance with Instance Store. Instance store provides "free" local NVMe IOPS (100K+) bundled in the hourly rate. Choosing io2 (Provisioned IOPS) EBS for temporary data is a "trap" because you pay a monthly premium per provisioned IOPS for durability you don't need.

EC2 Family Fit and Specialized Logic

  • R (RAM): Memory-optimized for in-memory analytics.
  • C (Compute): CPU-bound tasks like video encoding or batch processing.
  • I (I/O): Storage-optimized; highest local throughput.
  • M (Mainstream): General purpose; balanced workloads.
  • EC2 Hibernation: Used for workloads with long initialization times (e.g., loading large datasets into RAM). It saves the RAM state to the EBS root volume, stopping compute charges while avoiding the cost/time of a 20-minute data reload.
  • Fargate vs. EC2 Launch Types:
    • Fargate: Serverless; eliminates idle cluster capacity costs. You pay a per-task premium but achieve "least operational overhead."
    • EC2 Launch Type: More cost-effective at high, steady utilization where you can tightly pack containers and use Reserved Instances.

3. Storage Optimization: Lifecycle Management and Tiering

S3 Storage Class Comparison

Class Retrieval Time Cost vs. Access Pattern
Standard Milliseconds High storage cost; frequent access.
Intelligent-Tiering Milliseconds Unknown access patterns; auto-moves data.
Standard-IA Milliseconds Lower storage/High retrieval; access ~1x/month.
One Zone-IA Milliseconds 20% cheaper than Standard-IA; non-critical data.
Glacier Instant Retrieval Milliseconds Archival prices; accessed ~1x/quarter.
Glacier Flexible Retrieval 1 min to 12 hours Must restore before reading; accessed ~1x/year.
Glacier Deep Archive 12 to 48 hours Cheapest; accessed <1x/year.

SME Exam Alert: The RTO Trap If an exam question specifies a maximum retrieval time (e.g., "must be accessible within 2 hours"), you must disqualify Deep Archive (12-48h) and Flexible Retrieval Standard tier (3-5h). S3 Glacier Instant Retrieval is the "hero" answer here—it provides archival costs with the millisecond retrieval required to meet tight RTOs.

S3 and EBS Selection Rules

  • Lifecycle Policies: Use for known, time-driven patterns (e.g., "delete logs after 90 days") to avoid the per-object monitoring fee of Intelligent-Tiering.
  • S3 Intelligent-Tiering: Use for unknown or changing patterns (e.g., user-generated content).
  • EBS gp3 vs. io2: Default to gp3. Unlike gp2, gp3 allows you to provision IOPS and throughput independently of volume size, making it the primary cost-optimization choice. Use io2 only when 99.999% durability or >16,000 IOPS is a hard requirement.

4. Database Cost Rationalization and Offloading Tactics

Migration-Time Cost Levers

  1. BLOB Offloading: Move large binary objects (images/videos) to S3. Store only the URL in RDS to reduce expensive provisioned DB storage and backup costs.
  2. Subset Migration: Move Session State or Short TTL (Time-to-Live) data to DynamoDB. This reduces the CPU/Memory overhead on your primary relational RDS instance.
  3. Licensing Elimination: Move from commercial engines (Oracle/SQL Server) to Aurora or RDS (MySQL/PostgreSQL) to eliminate per-core licensing fees.

Scaling Strategies

  • Horizontal Scaling: Adding Read Replicas or an ElastiCache layer is mathematically more cost-effective than vertical scaling (larger instances) for read-heavy workloads.
  • Aurora Serverless v2: The superior choice for unpredictable or intermittent workloads that would otherwise sit idle on provisioned capacity.

5. Network Optimization: Minimizing Egress and Data Transfer

Component Cost Profiles

  • "Free" Patterns: Data transfer into AWS; data transfer from S3/origins to CloudFront ($0.00).
  • "Paid" Patterns: NAT Gateway hourly + data processing; VPC Interface Endpoints (PrivateLink); Transit Gateway.

Key Optimization Tactics

  • VPC Gateway Endpoints: The "must-use" tool for S3 and DynamoDB. They eliminate NAT Gateway data processing charges by keeping traffic on the AWS private backbone for free.
    • SME Insight: If you see a high NAT Gateway bill in Cost Explorer, the solution is almost always a Gateway VPC Endpoint for S3.
  • CloudFront: Reduces S3 egress charges. Use Regional Edge Caches (included at no cost) to further reduce origin fetches.
  • NAT Gateway Resilience: In Production, use one NAT Gateway per AZ. In Development, use a single shared NAT Gateway to minimize hourly charges at the expense of AZ-resiliency.
  • VPC Peering vs. Transit Gateway: Use Peering for simple, low-cost connectivity (no hourly hub charge). Use Transit Gateway only for complex hub-and-spoke needs where management overhead outweighs the hourly cost.

6. The Architect's "Reasoning Checklist" for SAA-C03

Before selecting an answer, run the options through this 5-step filter. Cost is the tie-breaker for survivors:

  1. Functional Survival: Does the cheapest option meet the hard RTO, RPO, and IOPS requirements? (If not, it's a distractor).
  2. Persistence Needs: Is the data temporary or scratch? If yes, use Instance Store instead of paying for EBS durability.
  3. Bundled vs. Premium: Can a baseline service handle the load? (e.g., S3 Standard replicates to 3 AZs for free—don't pay for Multi-Region replication unless requested).
  4. Time/Access Patterns: Is it steady (Savings Plans) or interruptible (Spot)? Is it frequent (S3 Standard) or rare (Glacier)?
  5. Serverless vs. Provisioned: Is utilization spiky/low (Serverless) or high/steady (Provisioned)?

7. Cost Governance and Tooling Identification

Quick-Recall Decision Table

Need Correct AWS Tool
"Notify/Alert" on budget thresholds AWS Budgets
"Visualize/Trend/Forecast" spend AWS Cost Explorer
"Granular Hourly Export" for BI/Analytics Cost and Usage Report (CUR)
"Attribute shared costs" to teams/projects Cost Allocation Tags (must be activated)
"Right-sizing recommendations" AWS Compute Optimizer

Critical Governance Concepts

  • AWS Organizations: Use Consolidated Billing to aggregate spend across accounts and reach higher volume discount tiers (e.g., S3 storage tiers) faster.
  • Trusted Advisor: The "waste-finder." It specifically identifies:
    • Unattached EBS Volumes (paying for storage with no instance).
    • Idle Load Balancers (paying hourly for zero traffic).
    • Idle Elastic IP Addresses (incurring charges because they aren't attached to a running instance).
Hermes Wiki