How will you read all the messages from a topic in your KSQL query?
Answer : C
Consumers can set auto.offset.reset property to earliest to start consuming from beginning. For KSQL, SET 'auto.offset.reset'='earliest';
What isn't an internal Kafka Connect topic?
Answer : D
connect-configs stores configurations, connect-status helps to elect leaders for connect, and connect-offsets store source offsets for source connectors
What is returned by a producer.send() call in the Java API?
Answer : C
Seehttps://kafka.apache.org/21/javadoc/org/apache/kafka/clients/producer/KafkaProducer.html
We would like to be in an at-most once consuming scenario. Which offset commit strategy would you recommend?
Answer : D
Here, we must commit the offsets right after receiving a batch from a call to .poll()
What is a generic unique id that I can use for messages I receive from a consumer?
Answer : B
(Topic,Partition,Offset) uniquely identifies a message in Kafka
To enhance compression, I can increase the chances of batching by using
Answer : B
linger.ms forces the producer to wait before sending messages, hence increasing the chance of creating batches that can be heavily compressed.
You are using JDBC source connector to copy data from 2 tables to two Kafka topics. There is one connector created with max.tasks equal to 2 deployed on a cluster of 3 workers. How many tasks are launched?
Answer : C
we have two tables, so the max number of tasks is 2