0
0
Redisquery~10 mins

XACK for acknowledging messages in Redis - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to acknowledge a message in a Redis stream consumer group.

Redis
XACK mystream mygroup [1]
Drag options to blanks, or click blank then click option'
Amyconsumer
B0-0
C1526985058136-0
Dmystream
Attempts:
3 left
💡 Hint
Common Mistakes
Using the consumer name instead of the message ID.
Using the stream name as the message ID.
Using '0-0' which is not a valid message ID.
2fill in blank
medium

Complete the code to acknowledge multiple messages in a Redis stream consumer group.

Redis
XACK mystream mygroup [1] [2]
Drag options to blanks, or click blank then click option'
A1526985058136-0
B1526985058137-0
Cmyconsumer
Dmystream
Attempts:
3 left
💡 Hint
Common Mistakes
Using consumer or stream names instead of message IDs.
Providing only one message ID when multiple are needed.
3fill in blank
hard

Fix the error in the code to correctly acknowledge a message in Redis.

Redis
XACK [1] mygroup 1526985058136-0
Drag options to blanks, or click blank then click option'
Amyconsumer
B1526985058136-0
Cmygroup
Dmystream
Attempts:
3 left
💡 Hint
Common Mistakes
Using the consumer name instead of the stream name.
Swapping the group name and stream name.
4fill in blank
hard

Fill both blanks to acknowledge two messages from a Redis stream consumer group.

Redis
XACK [1] [2] 1526985058136-0 1526985058137-0
Drag options to blanks, or click blank then click option'
Amystream
Bmygroup
Cmyconsumer
Dothergroup
Attempts:
3 left
💡 Hint
Common Mistakes
Using consumer name instead of group name.
Swapping stream and group names.
5fill in blank
hard

Fill all three blanks to acknowledge a message in Redis with correct stream, group, and message ID.

Redis
XACK [1] [2] [3]
Drag options to blanks, or click blank then click option'
Amystream
Bmygroup
C1526985058136-0
Dmyconsumer
Attempts:
3 left
💡 Hint
Common Mistakes
Including the consumer name as an argument.
Swapping the order of stream and group names.