All Questions
Guardrails And Safety medium

Your public LLM API limits each key to 60 requests per minute. The inference bill triples anyway, and you trace it to a few users sending 100K-token prompts with the maximum output length, all within their request limit. Which change actually controls cost?

  1. A Lower the limit to 20 requests per minute per key, scaling request quotas down until monthly spend falls back under budget.
  2. B Add a global requests-per-second cap at the load balancer so the inference fleet is protected from sudden traffic bursts.
  3. C Enforce per-user and per-tenant budgets in tokens (input plus output), with caps on context size and max output per call.
  4. D Cache responses aggressively so repeated large prompts are served from the cache without running inference again.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions