SAP-C02
Deep Dive
For the SAP-C02, cost optimization is a continuous discipline, not a one-time event. The exam tests your ability to identify savings opportunities, choose between RIs and Savings Plans, and establish cost visibility across complex organizations.
Contents
1. Right-sizing
Use the correct instance type and size. Bigger isn't always better — many instances are over-provisioned with average CPU under 20%.
2. Increase elasticity
Scale to zero or the minimum when there's no demand. Auto Scaling, Lambda, Aurora Serverless, ECS on Fargate. No 24/7 idle instances for variable workloads.
3. Correct pricing model
On-Demand for unpredictable workloads, Reserved/Savings Plans for stable 24/7 workloads, Spot for interruption-tolerant ones. The wrong model can multiply your costs.
4. Optimize storage
S3 Intelligent-Tiering for unpredictable access, lifecycle policies for cold data, removing orphaned EBS snapshots, gp3 vs gp2 (cheaper and better).
Compute Optimizer uses Machine Learning to analyze resource utilization history and recommend the optimal type. It analyzes 14 days of CloudWatch metrics by default (up to 3 months with Compute Optimizer enhanced).
Resources analyzed
Recommendation levels
Compute Optimizer across Organizations
Enable it at the Management Account level to get recommendations for all member accounts in a single dashboard. It generates a cross-account report of rightsizing opportunities.
Cost Explorer lets you visualize and analyze historical costs (up to 13 months) and forecasts (12 months ahead). For the SAP-C02, the focus is on advanced analysis features and RI/SP recommendations.
Key filters and dimensions
RI and SP recommendations
Cost Explorer API
The Cost Explorer API lets you automate cost reports, integrate with BI dashboards (Quick Sight), and generate custom cost alerts programmatically. Cost: $0.01 per request.
| Type | Flexibility | Discount | Best strategy |
|---|---|---|---|
| Standard RI | Low — family, OS, tenancy fixed within region/AZ | Up to 72% (EC2) | Production with a stable instance type for 3+ years |
| Convertible RI | Medium — can change family, OS, tenancy | Up to 54% | Production where you might move to newer generations |
| EC2 Instance Savings Plan | High — only family and instance within region | Up to 72% | Equivalent to Standard RI but simpler to manage |
| Compute Savings Plan | Very high — any EC2 + Fargate + Lambda | Up to 66% | Organizations with a mix of services or that shift between types |
| SageMaker Savings Plan | High — ML workloads on SageMaker | Up to 64% | Organizations with ML training/inference at scale |
Recommended purchase strategy for the exam
Cost Allocation Tags
AWS Organizations — centralized cost management
AWS Budgets
Define spending thresholds and get alerted when actual or forecasted spend exceeds the budget. Four budget types:
Cost Anomaly Detection
Uses ML to detect unusual spending without needing static thresholds. Detects anomalies based on your historical spending pattern.
| Category | Available checks (Business+) | Typical action |
|---|---|---|
| Cost Optimization | Unused EC2, unattached EBS, unassociated elastic IPs, underutilized RIs, S3 without lifecycle | Terminate/delete idle resources, apply lifecycle, buy RIs |
| Performance | High-utilization EC2, high-throughput EBS, CloudFront with low cache hits, RDS with high connection counts | Upgrade instance type, tune caching |
| Security | Security groups with unrestricted access, root without MFA, IAM without a password policy, public S3 | Apply security best practices |
| Fault Tolerance | RDS without Multi-AZ, EBS without recent snapshots, single-AZ ASG, Route 53 without health checks | Enable Multi-AZ, create backups |
| Service Limits | Resources approaching account limits | Request a limit increase from AWS |
Trusted Advisor with Organizations and EventBridge
Trusted Advisor Priority with Organizations aggregates recommendations from every member account into a central dashboard. EventBridge receives events when a check's status changes (green/yellow/red), letting you automate remediation with Lambda.
Pitfall: "Convertible RIs offer the same discount as Standard RIs"
Reality: FALSE. Standard RIs offer up to 72% off. Convertible RIs offer up to 54% — the smaller discount is the price of flexibility to change family/OS.
Pitfall: "Compute Optimizer analyzes costs like Cost Explorer"
Reality: Different purposes. Compute Optimizer analyzes performance metrics to recommend the optimal resource type. Cost Explorer analyzes historical costs and forecasts. For rightsizing use both: Compute Optimizer for the right type, Cost Explorer to validate the cost impact.
Pitfall: "AWS tags (aws:createdBy) are automatically available in Cost Explorer"
Reality: FALSE. Tags (both AWS-generated and user-defined) must be explicitly activated as Cost Allocation Tags in the Billing Dashboard. Without activating them, they don't appear in Cost Explorer or billing reports.
Did you get this topic?
Test what you just learned
A company has 80 AWS accounts in Organizations. The CFO wants to know how much each dev team spends on EC2 and to automatically detect when a team exceeds its assigned budget. They also want to be alerted if any account shows unusual spending not explained by the historical pattern. Which combination of services satisfies ALL the requirements?
Put what you learned to the test with original SAP-C02 exam questions.
Start SAP-C02 mock examUnlimited mock exams with the Pro plan
Log in to track your progress.