Volume 12 · Chapter 11 — System Design Case Studies

Case Study: Cost-Optimized Architecture Redesign

Goutham Mayaluri 4 min read AWSCloudSystem Design

11.1 The Problem and Requirements

A bank’s cloud bill has grown faster than usage, and leadership wants a cost-optimization redesign that reduces spendwithoutcompromising performance, availability, or security. Thiscost-optimizationscenario is a professional-exam staple - it tests whether you can cut cost by removing waste and choosing efficient options rather than by degrading the system.

11.2 Compute Cost Optimization

Compute is usually the biggest line item. The redesign:right-sizeover-provisioned instances using Compute Optimizer; cover the steady baseline withSavings Plans/Reserved Instancesfor large discounts; run interruptible batch onSpot(up to 90% off); move idle-heavy, event-driven workloads toLambda(zero idle cost) and containers toFargate/Fargate Spot; andshut down non-productionoutside business hours. Auto Scaling ensures capacity follows demand rather than sitting idle. None of these reduce capability - they remove waste and match the pricing model to the workload. The exam pattern: right-size, commit the baseline, Spot for interruptible, serverless for spiky, and kill idle - the core compute levers.

flowchart TD
  Cost{Cost driver?} -->|Over-provisioned compute| C[Right-size + Savings Plans/RI + Spot + serverless + kill idle]
  Cost -->|Storage| S[S3 tiering/Intelligent-Tiering; gp3; clean orphans; lifecycle]
  Cost -->|Data transfer| D[VPC endpoints (cut NAT/egress); CloudFront; keep in-Region]
  Cost -->|Databases| DB[Right-size; Aurora Serverless; reserved; read replicas vs bigger primary]
  Gov[Tagging + Budgets + Cost Explorer + Anomaly Detection] -.govern.-> Cost

11.3 Storage and Data-Transfer Optimization

Storage: apply S3lifecycle policiesandIntelligent-Tieringto move cold data to cheaper classes (years of statements to Glacier), move gp2 volumes to cheaper/better gp3, and clean up orphaned EBS volumes, old snapshots, and unused Elastic IPs (flagged by Trusted Advisor).Data transferis a frequently-overlooked cost: addVPC endpointsto eliminate NAT gateway and internet-egress charges for AWS-service traffic, serve content viaCloudFrontto cut origin egress, and keep chatty traffic in-Region/in-AZ to avoid cross-AZ/Region charges. These architectural changes cut cost while often improving performance (CloudFront) and security (endpoints).

11.4 Database, Governance, and the Result

Databases: right-size instances, useAurora Serverless v2for variable workloads (scale to demand), reserve capacity for steady databases, and prefer read replicas/caching over an oversized primary.Governancemakes optimization continuous: enforcetagging(via SCP) so all cost is attributable, useCost ExplorerandCost Anomaly Detectionto find drivers, setBudgetswith alerts and stop-actions, and runTrusted AdvisorandCompute Optimizerregularly. The redesign cuts spend substantially - right-sized and committed compute, tiered storage, eliminated egress, efficient databases - with no loss of performance, availability, or security, and a governance loop that keeps it optimized. This is exactly the professional-level cost-optimization design the certification targets.

11.5 Banking Production Notes

The bank’s redesign right-sizes and commits its steady fleet to Savings Plans, moves batch to Spot and event-driven work to Lambda, and shuts down non-prod overnight; tiers years of S3 data to Glacier and cleans orphaned storage; adds VPC endpoints and CloudFront to slash NAT/egress; and moves a variable database to Aurora Serverless v2. A mandatory tagging SCP, Cost Explorer, Cost Anomaly Detection, and Budgets with stop-actions make spend attributable and self-correcting. The bill drops materially while performance, availability, and security are unchanged - the outcome the exam expects: cost cut by removing waste and matching the pricing model, not by weakening the architecture.

11.6 Chapter Revision Notes

  • Compute: right-size (Compute Optimizer), Savings Plans/RIs for baseline, Spot for interruptible, Lambda/Fargate for spiky, shut down non-prod - remove waste, don’t cut capability.
  • Storage: S3 lifecycle/Intelligent-Tiering, gp3, clean orphans (Trusted Advisor); Data transfer: VPC endpoints (cut NAT/egress), CloudFront, keep traffic local.
  • Databases: right-size, Aurora Serverless v2 for variable, reserve steady, read replicas/caching over an oversized primary.
  • Governance loop: enforced tagging (SCP), Cost Explorer + Cost Anomaly Detection, Budgets with alerts/stop-actions, Trusted Advisor/Compute Optimizer.
  • Cut cost by removing waste and matching pricing to workload - never by degrading performance, availability, or security.