Bird
0
0

You need to rebuild a microservice state after a schema change in events. Which approach best supports event replay with schema evolution?

hard📝 Trade-off Q8 of 15
Microservices - Event-Driven Architecture
You need to rebuild a microservice state after a schema change in events. Which approach best supports event replay with schema evolution?
ADelete old events and start fresh
BIgnore old events and replay only new ones
CUse versioned events and transform old events during replay
DReplay events without any transformation
Step-by-Step Solution
Solution:
  1. Step 1: Understand schema change impact

    Schema changes require handling old event formats during replay.
  2. Step 2: Select best approach

    Versioning events and transforming old events during replay ensures compatibility. Deleting or ignoring old events loses data. Replaying without transformation causes errors.
  3. Final Answer:

    Use versioned events and transform old events during replay -> Option C
  4. Quick Check:

    Versioning enables safe schema evolution [OK]
Quick Trick: Version and transform events to handle schema changes [OK]
Common Mistakes:
MISTAKES
  • Deleting old events losing history
  • Ignoring old events causing errors
  • Replaying without adapting schema

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes