>DevOps Interview KB

This month's cloud bill came in 3x higher than usual, with no corresponding increase in traffic or deliberate infrastructure change. How do you actually track down the cause?

IntermediateTroubleshootingAWS8 min read

Short Answer

Use your cloud provider's cost breakdown tooling (AWS Cost Explorer, or equivalent) to compare this month against the prior month at the service and resource level, sorted by absolute dollar delta — this immediately narrows a vague "3x higher" into a specific service and often a specific resource, which is almost always faster and more reliable than trying to reason about the cause abstractly or guess based on what changed.

Detailed Explanation

A large, unexplained cost increase always has a concrete, findable cause somewhere in the billing data — the investigation challenge is narrowing from "the whole bill" down to the specific service, resource, or usage pattern responsible, which is a data-driven search, not a guessing exercise.

Symptoms

  • Total cloud spend for the current billing period is significantly higher than historical baseline, without a corresponding, deliberate change that explains it.
  • No single team or engineer immediately recalls making an infrastructure change that would obviously explain the increase.
  • The increase may be isolated to one service/account or spread across many, which itself is useful diagnostic information.

Possible Causes

  • A misconfigured autoscaling policy or a runaway process spun up far more compute resources than intended and never scaled back down.
  • A new feature or workload was deployed that has a much higher resource cost per unit of traffic than existing workloads, without anyone realizing its cost profile before shipping it.
  • Data transfer/egress costs spiked due to a change in traffic patterns, a misconfigured cross-region data flow, or a new integration moving significant data between regions or out to the internet.
  • Unused or orphaned resources (unattached storage volumes, idle load balancers, forgotten test environments) accumulated cost without providing any value, often invisible until specifically looked for.
  • A pricing tier or reserved capacity commitment expired or wasn't renewed, causing previously-discounted usage to revert to full on-demand pricing.

Investigation Steps

  1. Use your cloud provider's cost breakdown tool, filtered to the current billing period versus the prior period, grouped by service — this immediately shows which specific service(s) account for the increase, rather than treating the bill as one undifferentiated number.
  2. Within the responsible service(s), drill down further (by resource, by tag, by account/team if you have cost allocation tags configured) to identify the specific resource or team responsible for the spike.
  3. Check for any resources with unusually high or continuously growing usage over the billing period — a resource that started small and grew throughout the month is a strong signal of a runaway process or unbounded scaling, versus a resource that was simply large from day one.
  4. Cross-reference the timing of the cost increase against your deployment/change history (even changes nobody specifically remembers as "significant") to find what actually changed around when costs started climbing.
  5. Check for expired reserved capacity, savings plans, or committed-use discounts that may have silently reverted existing usage to full on-demand pricing without any actual usage change.

Resolution

  1. Address the immediate cost driver directly once identified — scale down or fix the runaway resource, delete orphaned/unused resources, or fix the misconfiguration causing the spike.
  2. Quantify the actual savings from the fix by confirming the specific resource/service's cost trend after the change, not just assuming the fix worked.
  3. If the cause was a new feature's unexpectedly high cost profile, evaluate whether that cost is actually justified by the feature's value, or whether the feature needs architectural changes (caching, more efficient resource usage) to bring its cost profile in line with expectations.
  4. If a reserved capacity/savings plan lapsed, decide whether to renew it (if usage patterns justify the commitment) or accept on-demand pricing deliberately, rather than it having lapsed by accident.

Prevention

  • Set up cost anomaly detection/alerting (most cloud providers offer this natively) so a significant, unexpected spend increase is caught within days, not discovered a month later when the bill arrives.
  • Require cost allocation tagging on resources, so future investigations can immediately attribute spend to a specific team or purpose rather than starting from an untagged, undifferentiated resource list.
  • Review reserved capacity and savings plan commitments on a recurring schedule so they don't silently lapse without a deliberate renewal decision.
  • Build cost awareness into the deployment process for significant new features or infrastructure changes, so a high-cost-profile change is evaluated before it ships, not discovered after the fact in a bill.

Interview Follow-Up Questions

  • How would you design cost allocation tagging so investigations like this are fast even across a large organization with many teams?
  • How would you build a business case for investing engineering time in fixing a cost issue versus just accepting the higher spend?
  • How would you distinguish a legitimate cost increase (justified by real new value or traffic) from a genuine problem worth fixing?

Key Takeaways

  • Cost breakdown tooling (grouped by service, then drilled down by resource/tag) turns a vague "the bill is high" into a specific, findable cause — this is a data-driven investigation, not a guessing exercise.
  • A resource whose usage grew continuously throughout the billing period is a strong signal of a runaway process or unbounded autoscaling, distinct from a resource that was simply large from the start.
  • Expired reserved capacity or savings plans are an easy-to-miss cause of a cost spike with no corresponding usage change.
  • Set up cost anomaly detection proactively so unexpected spend is caught within days rather than discovered a month later in the bill.

References

Last updated August 22, 2026 · Last reviewed August 22, 2026