Confluent
CCDAK · Question #21
How will you read all the messages from a topic in your KSQL query?
The correct answer is C. Use KSQL CLI to set auto.offset.reset property to earliest. Consumers can set auto.offset.reset property to earliest to start consuming from beginning. For KSQL, SET 'auto.offset.reset'='earliest';
Developing with Kafka Streams
Question
How will you read all the messages from a topic in your KSQL query?
Options
- AKSQL reads from the beginning of a topic, by default.
- BKSQL reads from the end of a topic. This cannot be changed.
- CUse KSQL CLI to set auto.offset.reset property to earliest
How the community answered
(49 responses)- A6% (3)
- B4% (2)
- C90% (44)
Explanation
Consumers can set auto.offset.reset property to earliest to start consuming from beginning. For KSQL, SET 'auto.offset.reset'='earliest';
Topics
#KSQL#auto.offset.reset#offset reset#stream query
Community Discussion
No community discussion yet for this question.