🔥 0
0
Lesson 6 of 6 20 min +300 XP

🧠 CQRS & Event Sourcing Assessment

Answer all questions to complete the quiz and earn 300 XP.

1

An e-commerce company has 10x more product page views than purchases. Which pattern helps optimize this?

2

Your audit system needs to answer: 'What was the state of Order #123 at 3pm yesterday?' What enables this?

3

In Event Sourcing, you discover a bug that's been miscalculating order totals for 3 months. How do you fix historical data?

4

A saga for hotel booking has these steps: Reserve Room → Charge Payment → Send Confirmation. Payment fails. What happens?

5

Your event store has 10 million events for aggregate 'Account-XYZ'. Loading it takes 30 seconds. What's the best solution?

6

You need to change an event's schema from {amount: number} to {amount: {value: number, currency: string}}. What's the right approach?

7

In choreography-based sagas, how does Service B know to run its compensation?

8

A projection processes OrderPlaced events to build a 'Sales by Region' dashboard. The projection crashes midway. How do you recover?

9

Two users simultaneously try to add items to the same shopping cart. With Event Sourcing and optimistic concurrency, what happens?

10

Netflix uses event sourcing for billing. Why is this valuable for their dispute resolution?

11

Your CQRS system has a 500ms delay between command completion and read model update. A user places an order and immediately checks their order history. What should happen?

12

When would you choose orchestration over choreography for sagas?

13

An event OrderPlaced is published. Three projections (OrderDetails, CustomerHistory, SalesDashboard) need to process it. How should this work?

14

Your saga's compensation for 'Charge Payment' is 'Refund Payment'. The refund API call times out. What should happen?

15

Final question: What's the relationship between CQRS and Event Sourcing?