Practice free →
HomeSoftware TestingSoftware Testingtools_automation_cicd › Contract testing in microservices ensures that

Contract testing in microservices ensures that

AConsumers and providers agree on API contracts
BAll services use the same database engine
CAll services run on a single Kubernetes pod
DAll services share the same source repository
Answer & Solution
Correct answer: A. Consumers and providers agree on API contracts
Consumer-driven contract testing (e.g., Pact) verifies that producer APIs continue to satisfy the expectations of their consumers, catching breaking changes before deploy. It complements but does not replace integration tests.
Solve this in the app — Software Testing practice & 24k+ MCQs →
Related questions