API Testing · Junior · Question 71 of 75
What does a very long string, e.g. 10,000 characters, in a name field test?
- 1Whether the API can sort names in alphabetical order
- 2Length limits and how the API handles oversized input
- 3Whether the network supports UTF-8 characters at all
Show the answer
Correct answer: Length limits and how the API handles oversized input
Explanation
The API should reject it with a 400, not crash, truncate silently or slow down. Very large bodies can also be a denial-of-service risk.