...

/

Quiz: Stateful Processing

Quiz: Stateful Processing

Test your knowledge of stateful processing in Kafka Streams applications.

We'll cover the following...
1

Given the following code:

stream.groupByKey()
      .reduce((a, b) -> a + " " + b)
      .toStream()
      .peek((k, v) -> System.out.println(v));

What would happen if multiple records without key would be published to this topology?

A)

A NullPointerExcpetion will be thrown.

B)

All records without a key will be grouped and reduced together.

C)

Records without keys will be filtered out by the groupByKey operator.

D)

It is not possible to publish records without keys to this topology.

Question 1 of 50 attempted