Case 350734 · AI security · L2 Practitioner
Unbounded Consumption and Denial of Wallet
Interview questionWhat is unbounded consumption in an LLM app, and how do you stop someone running up your bill?
- 01 What is it?
- 02 How is it abused?
- 03 How do you stop it?
What a strong answer covers
Try it out loud first. Then check yourself:
- Every call costs compute, so floods of long prompts or huge outputs can exhaust a budget or crash the service (OWASP LLM10).
- Cap per-user and per-key requests and tokens, set a maximum output length, and reject oversized inputs early.
- Require authentication for anything expensive, and watch for one account or key using far more than the rest.
- Set billing alerts and hard spending limits with the provider, so a leak or a bug cannot cost unlimited money.
If the interviewer pushes back
- Your free tier is being farmed by thousands of new accounts. Which controls still work?