Bird
0
0

Which of the following best describes a stub in microservices integration testing?

easy📝 Conceptual Q2 of 15
Microservices - Testing Microservices
Which of the following best describes a stub in microservices integration testing?
AA lightweight replacement for a service that returns predefined responses
BA tool to monitor network traffic between microservices
CA database used for storing test data
DA logging framework for microservices
Step-by-Step Solution
Solution:
  1. Step 1: Define stub role in testing

    A stub simulates a service by returning fixed responses to test interactions without calling the real service.
  2. Step 2: Differentiate from other tools

    Monitoring tools, databases, and logging frameworks serve different purposes than stubs.
  3. Final Answer:

    A lightweight replacement for a service that returns predefined responses -> Option A
  4. Quick Check:

    Stub = Simulated service with fixed replies [OK]
Quick Trick: Stubs simulate services with fixed responses in tests [OK]
Common Mistakes:
  • Confusing stubs with monitoring or logging tools
  • Thinking stubs store test data
  • Assuming stubs perform real service logic

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes