API Testing · Senior · Question 42 of 75
What should be tested for long-running operations exposed via API?
- 1That the operation always finishes within one second
- 2Only the initial
202response and nothing after it - 3Polling, cancellation, timeouts, retries and the final result
Show the answer
Correct answer: Polling, cancellation, timeouts, retries and the final result
Explanation
Jobs can fail halfway, be cancelled or time out. Each state needs a clear status and safe cleanup.