Ctrl K
Backend · Senior · Theory

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.

Have you seen this question in a real interview?
Answers0
Avg. score—
Strong—
Practiced0
Topics
Similar questionsWhat tests would you write for a backend service, and how is a unit test different from an integration test? JuniorYou've joined a project as tech lead: three hundred thousand lines of Python, the tests take forty minutes, and half the team doesn't run them locally. How would you rebuild the testing strategy? SeniorWhat kinds of tests are used in frontend development, and how do they differ from each other? JuniorDesign a testing strategy for a large frontend application that has almost no tests, where releases regularly break key user flows. SeniorYour service is integrated with an external payment provider, and on the test environment it's either unavailable or takes a minute to respond. How would you test this integration? Mid-level

Answer by voice

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.

Sign in to answer

Best with headphones · ~4 min