Bird
0
0

In a microservices system with 10 services, you want to run end-to-end tests daily. Which approach best balances test reliability and speed?

hard📝 Trade-off Q15 of 15
Microservices - Testing Microservices
In a microservices system with 10 services, you want to run end-to-end tests daily. Which approach best balances test reliability and speed?
ARun a subset of critical end-to-end tests daily and full tests weekly
BSkip end-to-end tests and rely only on unit tests
CRun all tests in parallel with full production-like environment for each
DRun tests only on developer machines before deployment
Step-by-Step Solution
Solution:
  1. Step 1: Consider test environment and time constraints

    Running all tests daily with full environments is slow and costly.
  2. Step 2: Evaluate options for balance

    Running critical tests daily and full tests weekly balances speed and coverage.
  3. Step 3: Reject options that reduce coverage or delay testing

    Skipping tests or limiting to dev machines risks missing issues.
  4. Final Answer:

    Run a subset of critical end-to-end tests daily and full tests weekly -> Option A
  5. Quick Check:

    Balanced testing = subset daily + full weekly [OK]
Quick Trick: Run critical tests daily, full tests less often [OK]
Common Mistakes:
  • Running all tests daily causing delays
  • Skipping end-to-end tests entirely
  • Relying only on developer machines for testing

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes