Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to identify the main components of CQRS.
Microservices
In CQRS, the [1] handles commands that change data. Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing the query side with the command side.
Thinking the event store handles commands.
✗ Incorrect
The Command side is responsible for handling commands that change the system state.
2fill in blank
mediumComplete the code to explain the role of the query side in CQRS.
Microservices
The [1] is optimized for reading data and answering requests.
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up the command and query sides.
Assuming the event bus handles queries.
✗ Incorrect
The Query side is designed to efficiently handle read operations in CQRS.
3fill in blank
hardFix the error in the description of CQRS event handling.
Microservices
Events are published to the [1] to notify other parts of the system. Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Thinking events are sent directly to the database.
Confusing the command side with the event bus.
✗ Incorrect
The event bus is the component that distributes events to interested subscribers in CQRS.
4fill in blank
hardFill both blanks to complete the CQRS request flow.
Microservices
Client sends a [1] to the [2], which updates the data and publishes events.
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping command and query terms.
Sending commands to the query side.
✗ Incorrect
Clients send commands to the command side to change data in CQRS.
5fill in blank
hardFill all three blanks to complete the CQRS read model update process.
Microservices
Events from the [1] are received by the [2], which updates the [3] for fast queries.
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing the read model with the command side.
Thinking the database directly handles events.
✗ Incorrect
The command side publishes events, the event handler processes them, and the read model is updated for queries.