Question 13

A consumer starts and has auto.offset.reset=latest, and the topic partition currently has data for offsets going from 45 to 2311. The consumer group has committed the offset 643 for the topic before. Where will the consumer read from?

Correct Answer:C
The offsets are already committed for this consumer group and topic partition, so the property auto.offset.reset is ignored

Question 14

How does a consumer commit offsets in Kafka?

Correct Answer:B
Consumers do not directly write to the consumer_offsets topic, they instead interact with a broker that has been elected to manage that topic, which is the Group Coordinator broker

Question 15

We have a store selling shoes. What dataset is a great candidate to be modeled as a KTable in Kafka Streams?

Correct Answer:AC
Aggregations of stream are stored in table, whereas Streams must be modeled as a KStream to avoid data explosion

Question 16

To enhance compression, I can increase the chances of batching by using

Correct Answer:B
linger.ms forces the producer to wait before sending messages, hence increasing the chance of creating batches that can be heavily compressed.

Question 17

There are 3 producers writing to a topic with 5 partitions. There are 5 consumers consuming from the topic. How many Controllers will be present in the cluster?

Correct Answer:D
There is only one controller in a cluster at all times.

Question 18

Which of the following Kafka Streams operators are stateful? (select all that apply)

Correct Answer:BCDF
Seehttps://kafka.apache.org/20/documentation/streams/developer-guide/dsl- api.html#stateful-transformations

START CCDAK EXAM