CS FundamentalsHardProduct-company placement · system design

How many of these statements about event sourcing are correct? 1. The append-only log of domain events is the source of truth, and current state is derived by replaying it. 2. Snapshots can speed up rebuilding an aggregate but do not replace the events. 3. Correcting a wrong past event is normally done by deleting it from the log. 4. The full history makes audits and rebuilding new read models straightforward.

  1. A. 2
  2. B. 4
  3. C. 1
  4. D. 3

Correct answer: D. 3

1, 2 and 4 are core properties. Events are immutable facts, so mistakes are fixed by appending compensating events, not by editing or deleting history; statement 3 is false.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic