All Questions
Guardrails And Safety hard

A public LLM API limits each key to 60 requests per minute. Spend spikes sharply. Investigation shows that a few keys send about one request per second, which is well within the limit, but each request pastes roughly 100K tokens of context and asks for maximum output length. What change actually controls cost?

  1. A Meter input plus output tokens per key and per tenant, reserving max_tokens at admission and reconciling on completion.
  2. B Lower the limit to 10 requests per minute per key, which cuts worst-case abusive spend by a factor of six immediately.
  3. C Require a CAPTCHA at API key creation so automated abusers cannot mint new keys faster than the limits can catch them.
  4. D Cap the context window at 8K tokens for every key so that no single request can consume a disproportionate share of capacity.

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

Get the app

Related questions