Bird
0
0

Which of the following is the correct Pact file format used to define a contract?

easy📝 Conceptual Q12 of 15
Microservices - Testing Microservices
Which of the following is the correct Pact file format used to define a contract?
AJSON
BYAML
CXML
DCSV
Step-by-Step Solution
Solution:
  1. Step 1: Identify Pact contract format

    Pact contracts are written in JSON format to describe interactions between services.
  2. Step 2: Eliminate other formats

    YAML, XML, and CSV are not used by Pact for contract files.
  3. Final Answer:

    JSON -> Option A
  4. Quick Check:

    Pact contract format = JSON [OK]
Quick Trick: Pact contracts are JSON files describing service interactions [OK]
Common Mistakes:
  • Assuming Pact uses YAML or XML
  • Confusing data formats with contract formats
  • Thinking CSV can describe complex contracts

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes