Interview practice question
Mocks no longer match the real API
Backend Engineering · Testing · Intermediate
All tests pass, but the integration with another team's service fails in production because the service changed its response format. How do you prevent this?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Mocks drifted from reality.
- Contract tests shared with provider.
- Generate stubs from provider's spec.
- Provider verifies contracts in CI.
- Compatibility checks on schema changes.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.