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.
- A. 2
- B. 4
- C. 1
- 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.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- Match each anti-pattern with its description. P. Golden hammer Q. Lava flow R. God object S. Cargo cult 1. One class knows and does far…
- A release burndown has stayed almost flat for three sprints, yet the team's velocity has been a steady 30 points per sprint. Which chart…
- A work item spent 4 days waiting for development, 2 days in development, 5 days waiting for review, 0.5 day in review, 3 days waiting for…
- How many of these statements about Git submodules are correct? 1. A plain git clone of the superproject leaves submodule directories empty…
- On main you run git merge -s ours feature in one repository and git merge -X ours feature in a copy. Which statement is correct?
- main and feature split at commit B. Since then main has gained commit C (editing a.txt) and feature has gained commit D (editing b.txt)…