How do you set up testing for a service that works with a database, a message broker and a couple of external APIs? What do you test at which level?
~4 min by voice
How to approach it
The interviewer wants to see whether you can deliberately distribute tests across levels for a service with real infrastructure: where mocks lie, where you need a real database, how to test external dependencies and failures, and how to keep the test suite fast and stable.
The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.