API Testing · Middle · Question 70 of 75
How can you test an API's behaviour under a dependency outage without breaking staging?
- 1Shut down the shared dependency for everyone for an hour
- 2Use service virtualization or fault injection for that test only
- 3Ask the dependency team to break their service on purpose
Show the answer
Correct answer: Use service virtualization or fault injection for that test only
Explanation
Isolated fault injection keeps other teams' tests working while you check fallbacks and error codes.