All Questions
Api Design easy

Your API enforces 100 requests/minute per API key. What headers should responses include to help clients manage their usage?

  1. A Include X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset headers.
  2. B Only return a 429 Too Many Requests status code when the limit is exceeded.
  3. C Use the Retry-After header with a timestamp for when the user is unblocked.
  4. D Send an email alert to the user when they approach 90% of their limit.

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

Get the app

Related questions