Volume 11 · Chapter 10 — Banking Production Support and Troubleshooting

Cost and Quota Troubleshooting

Goutham Mayaluri 4 min read AWSCloudBankingTroubleshootingProduction

10.1 Introduction

Two operational problems round out troubleshooting: unexpected cost spikes and hitting service quotas. Both are common real incidents and exam topics, and both have specific AWS tools and fixes. This chapter covers diagnosing runaway spend and resolving quota/limit issues.

10.2 Diagnosing a Cost Spike

When the bill jumps, diagnose systematically.Cost Explorerbreaks spend down by service, account, Region, and tag to find what increased - which requirescost allocation tagsto attribute it.AWS Cost Anomaly Detectionuses ML to automatically detect and alert on unusual spend, catching spikes early. TheCost and Usage Reportgives line-item detail for deep analysis in Athena. Common causes: forgotten running resources (an oversized instance, a test environment left on), unexpecteddata transfer(cross-Region/egress from a misconfigured architecture), orphaned resources (unattached EBS volumes, old snapshots, idle load balancers, unused Elastic IPs - flagged byTrusted Advisor), a runaway auto-scaling loop, or NAT gateway data-processing charges. The exam pattern: use Cost Explorer/Anomaly Detection to find the driver (only possible with tagging), then eliminate the waste - kill idle resources, fix egress, clean up orphans.

flowchart TD
  Spike[Cost spike] --> CE[Cost Explorer - by service/account/tag]
  Spike --> CAD[Cost Anomaly Detection - ML alerts]
  CE --> Cause{Driver?}
  Cause -->|Idle/oversized| Kill[Right-size / shut down]
  Cause -->|Data transfer/egress| Net[Keep in-Region, endpoints, CloudFront]
  Cause -->|Orphans EBS/EIP/snapshots| Clean[Trusted Advisor cleanup]
  TA[Budgets alerts] -.catch early.-> Spike

10.3 Preventing Cost Surprises

Prevention beats diagnosis.AWS Budgetswith forecast alerts warn before spend crosses a threshold, andbudget actionscan automatically stop non-production resources or apply a restrictive policy. A consistenttagging strategy(enforced via SCP) makes every cost attributable.Trusted Advisorcontinuously flags idle/underutilized resources and low RI utilization. Scheduling non-production shutdowns and right-sizing regularly keep baseline spend low. The exam pattern: set Budgets with alerts/actions, tag everything, and use Trusted Advisor and Cost Anomaly Detection so a spike is caught (or prevented) rather than discovered on the invoice.

10.4 Service Quotas and Limit Troubleshooting

Many “sudden failures at scale” are hittingservice quotas(per-account, per-Region limits) - running out of EC2 vCPUs, Elastic IPs, VPCs, Lambda concurrency, or API rate limits. Symptoms: a scaling event fails to launch instances, an API returns a limit/throttle error, a deployment can’t create a resource. Diagnosis: checkService Quotas(the console/API showing current limits and usage) and Trusted Advisor’s service-limit checks; CloudTrail/CloudWatch may show the limit error. Fixes: request a quota increase (many are soft limits) - ideallyproactivelybefore a growth event so you don’t hit the cap during a spike - and design with quotas in mind (spread across accounts/Regions, use on-demand capacity). The exam pattern: recognize a scaling/creation failure as a possible quota limit, check Service Quotas, and request increases proactively.

10.5 Banking Production Scenario

A bank’s cost spike alert (Cost Anomaly Detection) points, via Cost Explorer and tags, to a test account left running oversized instances and a misconfiguration driving cross-Region data transfer; the team shuts down the idle fleet, adds VPC endpoints to cut NAT/egress, and cleans up orphaned volumes flagged by Trusted Advisor. Budgets with a stop action now prevent recurrence in sandbox accounts. Separately, a payday scaling event fails to launch instances - Service Quotas shows the account’s EC2 vCPU limit was reached; the team requests an increase and, going forward, raises quotas proactively ahead of known peaks and spreads capacity across accounts. This tool-driven cost and quota troubleshooting, with proactive prevention, is exactly the professional-level operational discipline the certification targets.

10.6 Chapter Revision Notes

  • Diagnose cost spikes with Cost Explorer (by service/account/tag - needs cost allocation tags), Cost Anomaly Detection (ML alerts), and the CUR; common causes: idle/oversized resources, data-transfer/egress, orphans (EBS/EIP/snapshots via Trusted Advisor).
  • Prevent with Budgets (forecast alerts + stop actions), enforced tagging, and Trusted Advisor; schedule non-prod shutdowns and right-size.
  • Scaling/creation failures may be service quotas (EC2 vCPUs, EIPs, Lambda concurrency, API limits) - check Service Quotas and Trusted Advisor limit checks.
  • Request quota increases (soft limits) proactively before growth events; design with quotas in mind (spread accounts/Regions).
  • Catch or prevent cost/quota issues with tooling rather than discovering them on the invoice or during an outage.