Bird
0
0

In a microservices system using event sourcing, what rollback strategy best ensures data consistency after a faulty deployment?

hard📝 Trade-off Q9 of 15
Microservices - CI/CD for Microservices
In a microservices system using event sourcing, what rollback strategy best ensures data consistency after a faulty deployment?
ARollback only the service code without touching events
BReplay events up to the last known good state
CIgnore events and deploy a new snapshot
DDelete all events and restart from scratch
Step-by-Step Solution
Solution:
  1. Step 1: Understand event sourcing rollback

    Event sourcing stores state as events; rollback means replaying events to a stable point.
  2. Step 2: Identify best rollback method

    Replaying events up to last good state restores consistency without data loss.
  3. Final Answer:

    Replay events up to the last known good state -> Option B
  4. Quick Check:

    Event sourcing rollback = replay events [OK]
Quick Trick: Replay events to rollback in event sourcing [OK]
Common Mistakes:
  • Deleting all events causing data loss
  • Ignoring event data during rollback
  • Rolling back code only without data consistency

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes