CertNote/ Commute Study Notes
Roadmap
KOEN
CLF-C02 · FoundationalCloud Practitioner - Foundational
DVA-C02 · AssociateDeveloper - Associate
SAA-C03 · AssociateSolutions Architect - Associate
SOA-C02 · AssociateCloudOps Engineer - Associate
SAP-C02 · ProfessionalSolutions Architect - Professional
  • Week 1
    • 1.The Game Called the SAP Exam: Hands-On Techniques for Decomposing Scenarios
    • 2.IAM, STS, and Federation: Splitting the Word "Permission" into Six Layers
    • 3.The Anatomy of a VPC: What Route Tables Really Decide
    • 4.Four Compute Pillars in Depth: Revisiting Nitro, EBS, ELB, and Auto Scaling Through a Pro Lens
    • 5.Week 1 Integration: When IAM, VPC, and EC2 Meet in a Single Scenario
  • Week 2
  • Week 3
  • Week 4
  • Week 5
  • Week 6
  • Week 7
  • Week 8
  • Week 9
  • Week 10
  • Week 11
  • Week 12
  • Week 13
    • 1.Well-Architected Framework Overview — The Origins of 6 Pillars, Internal Operations of WA Tool, and Design Philosophy of Lens
    • 2.Operational Excellence & Security Pillars Deep Dive — GitOps Roots, Shared Responsibility Model Boundaries, Three Types of Traceability Internals
    • 3.Reliability & Performance Efficiency Pillars Deep Dive — CAP Theorem, Idempotency and Retry Mathematics, HPC Networking Physics
    • 4.Cost & Sustainability Pillars Deep Dive — Unit Economics, Regulatory Roots of Carbon Accounting, Trade-Offs Between Two Pillars
    • 5.Well-Architected Comprehensive Review: Distilling Six Pillars Into One Scenario
  • Week 14
  • Week 15
  • Week 16
DOP-C02 · ProfessionalDevOps Engineer - Professional
Linux Master 2 · 2급KAIT Linux Master - Level 2
SCS-C03 · SpecialtySecurity - Specialty
Linux Master 1 · 1급KAIT Linux Master - Level 1
MLA-C01 · AssociateMachine Learning Engineer - Associate
AIF-C01 · FoundationalAI Practitioner - Foundational
DEA-C01 · AssociateData Engineer - Associate
MLS-C01 · SpecialtyMachine Learning - Specialty
SQLD · 개발자SQL Developer (SQLD)

© CertNote · 주간랩스

  • About
  • Changelog
  • Contact
  • Terms
  • Privacy
← SAP-C02/Week 13/Day 4

Based on the SAP-C02 exam guide·Report an error

SAP-C02· ProWeek 13 · Day 4~33 min read

Day 4 - Cost & Sustainability Pillars Deep Dive — Unit Economics, Regulatory Roots of Carbon Accounting, Trade-Offs Between Two Pillars

The most common mistake in reducing cloud costs is looking only at the "total." When monthly bills drop from $100k to $90k it looks like success, but if traffic fell 50% in that period, you've actually worsened unit cost. Cost Optimization's real metric isn't total spend but unit economics (cost per request, per user, per transaction). Sustainability translates this same thinking to carbon—the goal is reducing "carbon per useful work," not absolute emissions.

In SAP-C02, the two pillars appear with keywords like "Graviton shift for simultaneous cost and power savings," "zero idle cost," "auto-tier cold data," "measure carbon emissions." Interestingly, the pillars usually align (remove idle resources) but don't always coincide. Today we dig into unit economics, regulatory roots of carbon accounting, and trade-offs between both pillars.

Cost Optimization — Consumption Model and Unit Economics

Cost's five principles are "adopt consumption model, measure total efficiency, stop datacenter operating expenses, analyze costs, leverage managed services." The first, "consumption model," is cloud economics' core—pay only for what you use; unused = $0. On-premises requires upfront investment for peak capacity (fixed cost), but cloud converts to variable cost.

LeverToolBenefit
Commitment discountSavings Plans, RIStable baseline save up to 72%
SpotSpot Instance, Fargate SpotInterruption-tolerant workloads save up to 90%
Remove idleAuto Scaling, serverlessUnused time cost $0
Storage tieringS3 Lifecycle, Intelligent-TieringCold data to low-cost class
Right-sizingCompute OptimizerReduce over-provisioning
Reduce data transferVPC Endpoint, CloudFrontBypass NAT, egress
Cost visibilityCost Allocation Tag, Budgets, Cost Anomaly DetectionAttribution, budgeting, anomaly detection
Multi-account sharingOrganizations consolidated billingShare SP/RI, volume tier

💡 Related Theory: "Measure total efficiency" is the finance concept of unit economics. Like SaaS firms tracking "cost to serve one customer," cloud costs must be measured as cost relative to business output, not absolute dollars. Cost per 1M requests, cost per active user is the real metric. If this improves, traffic rise raising total cost is healthy growth; if it degrades, total cost decline hides inefficiency. AWS Cost Allocation Tags to attribute costs by workload, team, and function is the starting point for unit economics measurement. In exams, "cost attribution by team/function, showback/chargeback" signals Cost Allocation Tag + Cost Categories as correct answers.

📚 Case Study: In 2018, Pinterest discovered during a cost surge investigation that data transfer (especially inter-AZ and internet egress) rivaled compute in cost. They repositioned services to communicate within the same AZ, routed S3 access via Gateway Endpoint, and moved external transfer to CloudFront, significantly reducing transfer costs. Lesson: cost optimization must account for invisible data transfer costs, not just compute and storage, and Cost and Usage Report (CUR) must be decomposed to hour and resource granularity to expose hidden costs.

🔍 Deeper Dive: Data transfer cost is exam secret gold. AWS charges mostly free inbound but bills outbound, inter-region, and inter-AZ transfer. Two common reduction patterns: (1) VPC Endpoint—when instances in private subnets access S3/DynamoDB, using NAT Gateway incurs NAT processing + egress, but Gateway Endpoint (S3/DynamoDB only, free) routes via AWS backbone, eliminating NAT cost. (2) CloudFront—direct S3/ALB-to-internet egress costs more per byte than CloudFront routing plus caching reduces origin requests. In exams, "reduce NAT Gateway data processing" signals VPC Endpoint; "reduce internet egress" signals CloudFront.

Cost Visibility Tools — No Optimization Without Measurement

ToolRole
Cost ExplorerVisualize cost trends, forecast, recommend SP/RI
Cost and Usage Report (CUR)Most detailed billing data (hourly, per resource)
BudgetsBudget threshold alerts and auto-actions
Cost Anomaly DetectionML-based detection of abnormal spend spikes
Cost Allocation Tag, Cost CategoriesAttribute costs by team, environment, function
Compute OptimizerRecommend right-sizing by metrics
Trusted AdvisorAuto-check idle resources, unused RI, etc.

⚠️ Pitfall: "Auto-detect and alert abnormal cost spike" is Cost Anomaly Detection (ML-based), not Budgets. Budgets are static-threshold-based—"alert if over pre-set limit (e.g., $10k/month)." Cost Anomaly Detection learns historical patterns and dynamically detects "unexpected sudden surge." They're complementary—predictable boundaries use Budgets; unpredictable anomalies use Anomaly Detection. In exams, "detect unexpected sudden cost surge" is Cost Anomaly Detection.

Sustainability — Regulatory Roots of Carbon Accounting

Sustainability's (added 2021) six principles are "understand impact, set targets, maximize utilization (zero idle), apply new technology, use managed services, reduce downstream impact." The core is "minimize resources and carbon per useful work"—translating Cost's thinking to power and carbon.

PracticeTool/TechRelation to Cost
Zero idleAuto Scaling, serverless, Fargate SpotAligns (both ↓)
Same performance, lower powerGraviton, Inferentia, TrainiumAligns
Cold data, lower powerS3 Storage Class, LifecycleAligns
Renewable energy regionRegion choice (AWS official data)Cost-independent (per-region pricing only)
Compute densityEKS Bin Packing, FargateAligns
Carbon measurementCustomer Carbon Footprint Tool (CCFT)Visibility tool

💡 Related Theory: AWS's 2025 100% renewable energy and 2040 Net-Zero goals (moved up from 2030) are not PR—they're regulatory response. The EU's CSRD (Corporate Sustainability Reporting Directive) mandates Scope 3 (supply chain, indirect) reporting from large companies starting 2024. GHG Protocol splits emissions into Scope 1 (direct), Scope 2 (purchased power), Scope 3 (supply chain, indirect). When a firm uses cloud, that carbon enters the firm's Scope 3. This number is reported directly from AWS-provided data (CCFT), so CCFT accuracy equals ESG reporting accuracy. In exams, "ESG reporting, Scope 3, carbon measurement" signals CCFT.

🔍 Deeper Dive: Embodied Carbon is Sustainability's subtle concept. A server's carbon footprint includes not just operational carbon (running power) but embodied carbon (manufacturing, shipping, disposal). This clarifies why "maximize utilization" is a Sustainability principle—idle hardware means already-emitted embodied carbon is wasted. Running 30 servers at 100% is better than 100 at 30% in embodied carbon and power. This grounds why EKS Bin Packing (pack pods densely to minimize nodes), Fargate, and serverless raise Sustainability scores.

📚 Case Study: In 2019, a global media company changed the habit of running dev and staging environments 24/7 despite nearly zero nighttime/weekend traffic. They adopted Instance Scheduler (Lambda + EventBridge) for auto-shutdown outside business hours. Result: non-prod cost dropped ~60%, and carbon emissions proportionally decreased since no unused compute was running. Lesson: "idle resources waste cost and carbon simultaneously"—a textbook Sustainability-Cost alignment case. Conversely, if they'd also shut down production DR after hours, they'd have sacrificed RTO for Reliability—identifying which environment matters is the key trade-off judgment.

⚠️ Pitfall: "Move to renewable energy region" improves Sustainability but costs may be unchanged or worsen. Per-region service pricing varies, and moving farther from users increases latency (Performance) and data transfer cost. In exams, "reduce carbon only" makes renewable regions correct; "reduce cost too" requires actions where both pillars improve (Graviton, zero idle). Region moves are carbon-only.

Cost and Sustainability Trade-Off — Not Always Aligned

Cost and Sustainability usually align but pro exams trap on misalignment.

ActionCostSustainabilityNote
Graviton shift↓↓Both improve (typical answer)
Kill idle instance↓↓Both improve
FSx Lustre (HPC)↑↑(resources↑)Cost rises for throughput
Renewable region moveVariable↓Carbon ↓ but cost depends on per-region pricing, latency
Over-aggressive Multi-Region↑↑(resources↑)Reliability cost and carbon increase accepted

🎯 Scenario: "A company is told to reduce both cost and carbon. They run web/app workloads on x86 EC2. What single action is most effective?" — Answer: Graviton (ARM) shift. Graviton (ARM Neoverse-based) outperforms x86 on both price and power (up to 40% price-to-performance improvement, significant power reduction). One shift satisfying both Cost and Sustainability is the hallmark of pro answers. Requires ARM-compatible builds, prioritize compiled languages and container workloads. "Improve cost and environment together" almost always signals Graviton.

🔍 Deeper Dive: Graviton's power advantage comes from instruction set architecture (ISA) differences. x86 is CISC (complex instructions)—one instruction does much but decoding/execution circuits are complex and power-hungry. ARM is RISC (reduced instructions)—simple, fast instructions with high performance-per-watt (originally designed for mobile/embedded with power efficiency). AWS built ARM cores (Neoverse) into custom chips (Graviton2/3/4) for datacenters. Related specialized chips are ML-focused Inferentia (inference) and Trainium (training), improving performance-per-watt and cost vs. GPU. In exams, "inference cost/power reduction" signals Inferentia; "large-scale training cost reduction" signals Trainium.

💡 Related Theory: Spot Instance economics mirror a secondary market. AWS auctions unused capacity unsold via commitments and on-demand to raise utilization (supplier benefit); customers accept interruption risk for up to 90% discount (demand benefit). The key constraint: 2-minute interruption notice, so suitable only for stateless, checkpoint-able, re-runnable workloads (batch, CI/CD, rendering, distributed learning). From a Sustainability angle, Spot activates idle capacity ("maximize already-on resources"), aligning with the "maximize utilization" principle. In exams, "interruption-tolerant + max cost savings" is Spot/Fargate Spot.

Multi-Account Cost — Consolidated Billing and BillingConductor

Organizations consolidated billing offers two on the cost side: (1) SP/RI sharing (commitments bought in one account apply org-wide), (2) volume tier discounts (aggregate usage crosses higher discount thresholds). The design principle: split accounts for cost separation, share discounts. To redistribute margin and discounts by department (showback/chargeback), use AWS BillingConductor to set custom billing groups and rates.

Summary

Cost Optimization measures unit economics (cost per request, per user), not total, via consumption model, commitment discounts, Spot, zero idle, storage tiering, data transfer reduction (VPC Endpoint, CloudFront). Sustainability translates the same thinking to carbon—"minimize carbon per useful work"—via zero idle, Graviton, renewable regions, CCFT measurement. Both pillars usually align (Graviton, zero idle) but HPC Lustre shows trade-offs. CCFT connects directly to EU CSRD Scope 3 reporting, holding regulatory weight.

SAP exam frequent mappings: (1) "Reduce cost, power, carbon simultaneously with same performance" → Graviton shift, (2) "Carbon emissions measurement and ESG/Scope 3 reporting" → CCFT, (3) "Auto-tier cold data to low-cost/low-carbon" → S3 Lifecycle/Intelligent-Tiering, (4) "Unexpected sudden cost spike detection" → Cost Anomaly Detection (not Budgets), (5) "Cost attribution by team/function" → Cost Allocation Tag/Cost Categories, (6) "Remove NAT data processing cost" → VPC Endpoint, (7) "Multi-account SP/RI sharing + volume discount" → Organizations consolidated billing, (8) "Custom billing and chargeback by department" → BillingConductor, (9) "Zero idle + interruption-tolerant compute" → Fargate Spot/serverless. Next day integrates all six pillars with a comprehensive review scenario.

📝 Practice Questions

Click a choice to reveal the answer and explanation.

Question 1

A company runs web and app workloads on x86 EC2, and management has ordered it to reduce both cost and carbon emissions. What is the single most effective action while maintaining equivalent performance?

Question 2

Under the EU CSRD, a large enterprise must include Scope 3 carbon emissions from cloud usage in its ESG report. What do you use to obtain monthly carbon emission data for AWS usage?

Question 3

A company's cloud costs suddenly spiked unlike usual, and it does not know which workload or service is the cause. It wants to be automatically alerted to abnormal spending patterns regardless of any predefined budget thresholds. What is the most appropriate tool?

Question 4

EC2 instances in a private subnet read and write large amounts of data to S3, and since they currently go through a NAT Gateway, NAT data processing charges are high. What is the most appropriate way to eliminate this cost?

Question 5

An Organization split accounts by department for cost separation, but wants to share commitment discounts (SP/RI) and volume discounts across all accounts. What is the most appropriate configuration?

Question 6

Which of the following is the most appropriate example of a case where the Cost and Sustainability pillars do not always improve in the same direction?

PreviousReliability & Performance Efficiency Pillars Deep Dive — CAP Theorem, Idempotency and Retry Mathematics, HPC Networking PhysicsWeek 13 · Day 3Next Well-Architected Comprehensive Review: Distilling Six Pillars Into One ScenarioWeek 13 · Day 5

Official references

  • SAP-C02 official exam page(opens in a new tab)
  • Amazon S3 documentation(opens in a new tab)
  • Amazon VPC documentation(opens in a new tab)
  • Amazon CloudFront documentation(opens in a new tab)
  • Amazon ECS · Fargate documentation(opens in a new tab)
  • AWS Organizations documentation(opens in a new tab)

On this page

  • Cost Optimization — Consumption Model and Unit Economics
  • Cost Visibility Tools — No Optimization Without Measurement
  • Sustainability — Regulatory Roots of Carbon Accounting
  • Cost and Sustainability Trade-Off — Not Always Aligned
  • Multi-Account Cost — Consolidated Billing and BillingConductor
  • Summary
  • Practice Questions