Bird
0
0

Which component in Pact is responsible for verifying that the provider meets the consumer's expectations?

easy📝 Conceptual Q2 of 15
Microservices - Testing Microservices
Which component in Pact is responsible for verifying that the provider meets the consumer's expectations?
APact Broker
BPact Publisher
CPact Generator
DPact Verifier
Step-by-Step Solution
Solution:
  1. Step 1: Identify Pact components

    Pact Verifier is the tool that checks if the provider service meets the contract defined by the consumer.
  2. Step 2: Match component to responsibility

    Pact Broker stores contracts, Generator creates them, Publisher uploads them, but Verifier runs the actual checks.
  3. Final Answer:

    Pact Verifier -> Option D
  4. Quick Check:

    Verifier = Checks provider against contract [OK]
Quick Trick: Verifier checks provider meets consumer contract [OK]
Common Mistakes:
  • Confusing Broker with Verifier
  • Thinking Generator verifies contracts
  • Assuming Publisher runs tests

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes