All Questions
Guardrails And Safety easy

Your API limits each user to 60 requests per minute. Costs are spiking because a few users send prompts of around 100K tokens on every request. What change best controls cost?

  1. A Lower the limit to 20 requests per minute so heavy users send fewer large prompts overall.
  2. B Add a CAPTCHA to the chat UI so automated scripts cannot send requests at high volume.
  3. C Add per-user tokens-per-minute limits, counting input and output, alongside requests.
  4. D Cache every response so repeated large prompts are served without calling the model again.

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

Get the app

Related questions