Bird
0
0

You want to design a chaos engineering experiment to test how your microservices handle database latency spikes. Which approach best fits this goal?

hard📝 Trade-off Q15 of 15
Microservices - Testing Microservices
You want to design a chaos engineering experiment to test how your microservices handle database latency spikes. Which approach best fits this goal?
AInject artificial latency into database calls during tests
BDisable monitoring tools to avoid false alerts
CIncrease the number of database replicas without testing
DRandomly kill microservice instances during peak hours
Step-by-Step Solution
Solution:
  1. Step 1: Understand the goal of testing database latency spikes

    The goal is to see how microservices behave when database responses are slow.
  2. Step 2: Choose the best chaos experiment approach

    Injecting artificial latency simulates slow database calls directly, matching the goal.
  3. Step 3: Evaluate other options

    Killing instances tests availability, not latency; increasing replicas without testing doesn't simulate latency; disabling monitoring hides important data.
  4. Final Answer:

    Inject artificial latency into database calls during tests -> Option A
  5. Quick Check:

    Test latency by injecting delays = Inject artificial latency into database calls during tests [OK]
Quick Trick: Inject delays to test latency, not kill instances [OK]
Common Mistakes:
  • Confusing instance failure with latency testing
  • Adding replicas without testing effects
  • Turning off monitoring during chaos

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes