Bird
0
0

Consider this simplified test flow for microservices end-to-end testing:

medium📝 Analysis Q13 of 15
Microservices - Testing Microservices
Consider this simplified test flow for microservices end-to-end testing:
1. Start service A
2. Start service B
3. Send request to service A
4. Service A calls service B
5. Service B returns response
6. Verify final output

What is the main risk if service B is unstable during this test?
AThe test will always pass regardless of errors
BService A will not start properly
CThe database schema will be corrupted
DThe test may fail intermittently causing flakiness
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the test flow and service dependency

    Service A depends on service B's response to complete the test.
  2. Step 2: Understand impact of instability in service B

    If service B is unstable, responses may vary causing test failures sometimes.
  3. Final Answer:

    The test may fail intermittently causing flakiness -> Option D
  4. Quick Check:

    Unstable service causes flaky tests [OK]
Quick Trick: Unstable dependencies cause flaky end-to-end tests [OK]
Common Mistakes:
  • Assuming instability stops service startup
  • Confusing database issues with service instability
  • Thinking tests always pass despite errors

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes