In a system of twenty microservices, the end-to-end tests take a long time and fail constantly. How would you apply contract testing, and what won't it cover?
~4 min by voice
How to approach it
This checks whether the candidate understands how consumer-driven contracts replace most of the brittle e2e tests in microservices, and whether they can honestly name the limits of the approach: a contract checks the shape of the interaction, not the business logic, and requires organizational agreements between teams.
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.