0
0
Microservicessystem_design~20 mins

Event store concept in Microservices - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Event Store Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
What is the primary purpose of an event store in microservices?

In a microservices architecture, what is the main role of an event store?

ATo act as a cache layer for frequently accessed data.
BTo store only the current state of each microservice for quick access.
CTo store all changes to application state as a sequence of events.
DTo manage user authentication and authorization events.
Attempts:
2 left
💡 Hint

Think about how event sourcing captures changes over time.

Architecture
intermediate
2:00remaining
Which component typically reads from the event store to update read models?

In an event-driven microservices system, which component consumes events from the event store to update the read database?

AEvent projector
BCommand handler
CAPI gateway
DService registry
Attempts:
2 left
💡 Hint

Consider the component responsible for transforming events into queryable data.

scaling
advanced
2:00remaining
How to scale an event store to handle high write throughput?

You have a microservices system with an event store that receives thousands of events per second. Which approach best helps scale the event store for high write throughput?

ABatch all events into a single large transaction every hour.
BUse a single centralized database with strong consistency for all events.
CStore events only in memory to speed up writes.
DPartition the event store by aggregate ID to distribute writes across nodes.
Attempts:
2 left
💡 Hint

Think about distributing load to avoid bottlenecks.

tradeoff
advanced
2:00remaining
What is a tradeoff of using an event store for state management?

Using an event store to manage application state has benefits but also tradeoffs. Which of the following is a common tradeoff?

AEvent stores require more storage space due to storing all events.
BEvent stores eliminate the need for any read models.
CEvent stores simplify debugging by hiding event history.
DEvent stores guarantee zero latency for all queries.
Attempts:
2 left
💡 Hint

Consider what storing every change implies for storage.

estimation
expert
3:00remaining
Estimate storage needed for event store with 1 million events/month

Your microservices system generates about 1 million events per month. Each event averages 1 KB in size. Estimate the storage needed for 1 year of events, including a 20% overhead for indexing and metadata.

AApproximately 12 GB
BApproximately 14.4 GB
CApproximately 10 GB
DApproximately 8.4 GB
Attempts:
2 left
💡 Hint

Calculate total event size, then add 20% overhead.