Design Budget Threshold Alerts for AWS Account Spending

Last updated: November 29, 2026

Quick Overview

Design a service that lets AWS customers set monthly budgets and sends alerts when actual or forecasted spend crosses thresholds like 80 percent and 100 percent.

Amazon
System Design
Software Engineer
Amazon
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design a service that lets AWS customers set monthly budgets and sends alerts when actual or forecasted spend crosses thresholds like 80 percent and 100 percent.

An AWS billing style question that blends a notification system with a metering pipeline. Interviewers check how you aggregate usage at scale, how often you evaluate thresholds, and how you avoid duplicate or missed alerts across the month.

What the Interviewer Expects
  • Aggregate metered usage into cost per account per period
  • Evaluate budgets on a schedule after each cost refresh
  • Support actual and forecasted thresholds
  • Fire each threshold alert once per period
  • Deliver via email and a pub/sub topic for automation
Key Topics to Cover
Metering aggregation
Threshold evaluation
Forecasting
Alert state machine
Idempotent notifications
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How would you forecast end-of-month spend early in the month?
  • What happens when late usage records arrive and lower or raise cost?
  • How do you support budgets filtered by tag or service?
  • How would you let customers trigger automatic actions like stopping instances?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: create a budget (amount, period, optional filters by service, linked account or tag), with thresholds on actual or forecasted cost. Notify subscribers by email or topic when crossed. *...

High-Level Design
  1. Usage pipeline (existing): services emit metering records; a billing pipeline rates them into cost line items, refreshed several times a day.
  2. Cost aggregator: after each refresh, compute...

Submit Your Answer
Markdown supported