QA Fundamentals · Senior · Question 41 of 76
How do you test that a system degrades gracefully when a dependency is slow?
- 1Remove the dependency from the code before testing
- 2Wait until the dependency becomes slow in production by itself
- 3Inject latency or failures, then check timeouts and fallbacks
Show the answer
Correct answer: Inject latency or failures, then check timeouts and fallbacks
Explanation
Fault injection tools or service virtualization simulate slow and failing dependencies. The system should time out, fall back and show helpful messages instead of hanging.