Task Statement 4.2: Design cost-optimized compute solutions.
📘AWS Certified Solutions Architect – (SAA-C03)
1. What is an EC2 Instance Family?
An instance family is a group of Amazon EC2 instance types designed for a specific type of workload.
Each family provides a different balance of:
- CPU (compute power)
- Memory (RAM)
- Storage
- Networking performance
👉 Choosing the correct instance family is critical because:
- It directly affects cost
- It impacts performance
- It helps avoid over-provisioning or under-provisioning
2. Why Instance Family Selection Matters (Exam Focus)
In the exam, AWS expects you to:
- Match workload requirements → with → correct instance family
- Avoid wasting money by choosing overpowered instances
- Avoid performance issues by choosing underpowered instances
3. Main EC2 Instance Families (VERY IMPORTANT)
You must clearly understand these categories:
3.1 General Purpose (Balanced)
Key Idea:
Balanced CPU, memory, and networking
Characteristics:
- Moderate CPU
- Moderate memory
- Cost-effective for general workloads
Examples:
- T family (burstable)
- M family
When to Use:
- Web servers
- Application servers
- Small-to-medium databases
- Development environments
Exam Tip:
👉 If the question says “balanced workload”, choose General Purpose
3.2 Compute Optimized (High CPU)
Key Idea:
High CPU performance
Characteristics:
- More vCPUs
- Less memory compared to CPU
- Fast processing
Examples:
- C family
When to Use:
- Batch processing
- High-performance web servers
- Compute-heavy applications
- Scientific computations
Exam Tip:
👉 If the workload is CPU-intensive, choose Compute Optimized
3.3 Memory Optimized (High RAM)
Key Idea:
Large memory capacity
Characteristics:
- High RAM-to-CPU ratio
- Designed for fast data access in memory
Examples:
- R family
- X family
When to Use:
- In-memory databases
- Caching systems
- Real-time analytics
Exam Tip:
👉 If the workload needs fast access to large data in memory, choose Memory Optimized
3.4 Storage Optimized (High Disk Performance)
Key Idea:
Fast storage (high IOPS)
Characteristics:
- High read/write speeds
- Local instance storage (NVMe/SSD)
Examples:
- I family
- D family
When to Use:
- NoSQL databases
- Data warehousing
- Log processing systems
Exam Tip:
👉 If the workload needs high disk throughput or IOPS, choose Storage Optimized
3.5 Accelerated Computing (GPU / FPGA)
Key Idea:
Hardware acceleration
Characteristics:
- GPU or specialized hardware
- Parallel processing capability
Examples:
- P family (GPU)
- G family (graphics)
- F family (FPGA)
When to Use:
- Machine learning
- Video processing
- Graphics rendering
Exam Tip:
👉 If the question mentions GPU, ML, or rendering, choose Accelerated Computing
4. Burstable Performance Instances (Special Case)
Key Idea:
Low-cost instances with occasional CPU bursts
Example:
- T family (T3, T4g)
Characteristics:
- Baseline CPU performance
- Can “burst” when needed using CPU credits
When to Use:
- Low or unpredictable workloads
- Development/testing environments
Exam Tip:
👉 If the workload is not constantly busy, choose T family
5. Instance Generations (Exam Important)
Each family has multiple generations:
- Example: M4 → M5 → M6
Key Rule:
👉 Always prefer latest generation unless specified
Why?
- Better performance
- Lower cost
- Improved efficiency
6. Instance Sizes
Each instance family comes in different sizes:
- small
- medium
- large
- xlarge
- 2xlarge, etc.
What Changes:
- CPU count
- Memory size
- Network performance
Exam Tip:
👉 Scale size based on workload requirements, not just family
7. Key Decision Factors (VERY IMPORTANT)
When selecting an instance family, consider:
7.1 CPU Requirement
- High CPU → Compute Optimized
- Low/moderate CPU → General Purpose
7.2 Memory Requirement
- Large datasets in memory → Memory Optimized
7.3 Storage Requirement
- High IOPS → Storage Optimized
- Standard usage → General Purpose + EBS
7.4 Network Performance
- High throughput → Larger instance sizes or specialized families
7.5 Workload Pattern
- Constant workload → Standard instances
- Variable workload → Burstable instances
7.6 Cost Optimization
- Avoid over-sizing
- Choose correct family instead of larger size
8. Common Exam Scenarios (VERY HIGH VALUE)
Scenario 1:
“Application requires balanced CPU and memory”
✅ Answer: General Purpose (M family)
Scenario 2:
“Application performs heavy calculations”
✅ Answer: Compute Optimized (C family)
Scenario 3:
“Application stores large data in RAM for fast access”
✅ Answer: Memory Optimized (R family)
Scenario 4:
“Application requires very fast disk reads/writes”
✅ Answer: Storage Optimized (I/D family)
Scenario 5:
“Application uses machine learning models”
✅ Answer: Accelerated Computing (P/G family)
Scenario 6:
“Application has low baseline usage with occasional spikes”
✅ Answer: Burstable (T family)
9. Cost Optimization Tips (Exam Critical)
- Do NOT choose a larger instance when a different family is better
- Use T instances for low usage workloads
- Use latest generation instances
- Match workload exactly to avoid:
- Overpaying
- Performance bottlenecks
10. Common Mistakes (Exam Traps)
❌ Choosing General Purpose for CPU-heavy workloads
❌ Choosing Compute Optimized for memory-heavy workloads
❌ Ignoring burstable instances for low workloads
❌ Using older generation instances
❌ Confusing storage optimized with memory optimized
11. Quick Summary Table
| Workload Type | Best Instance Family |
|---|---|
| Balanced | General Purpose (M, T) |
| CPU-heavy | Compute Optimized (C) |
| Memory-heavy | Memory Optimized (R, X) |
| Disk-intensive | Storage Optimized (I, D) |
| ML / GPU | Accelerated Computing (P, G, F) |
| Low usage / variable | Burstable (T) |
Final Exam Strategy
When answering questions:
- Identify resource bottleneck (CPU, memory, storage)
- Match it to the correct instance family
- Check if cost optimization is required
- Choose latest generation
- Avoid over-provisioning
