API Testing · Senior · Question 66 of 75
How do you test that an API enforces limits on expensive operations, like exports?
- 1Exports are background jobs, so they don't need limits
- 2Run one export and check it finishes successfully
- 3Trigger many in parallel and check queues, limits and fair errors
Show the answer
Correct answer: Trigger many in parallel and check queues, limits and fair errors
Explanation
Without limits, a few users can exhaust workers or databases. Tests check per-user caps and clear 429 or queue responses.