00:00

QUESTION 1

Select the Kafka Streams joins that are always windowed joins.

Correct Answer: A
Seehttps://docs.confluent.io/current/streams/developer-guide/dsl-api.html#joining

QUESTION 2

We want the average of all events in every five-minute window updated every minute. What kind of Kafka Streams window will be required on the stream?

Correct Answer: D
A hopping window is defined by two propertiesthe window's size and its advance interval (aka "hop"), e.g., a hopping window with a size 5 minutes and an advance interval of 1 minute.

QUESTION 3

A consumer wants to read messages from a specific partition of a topic. How can this be achieved?

Correct Answer: B
assign() can be used for manual assignment of a partition to a consumer, in which case subscribe() must not be used. Assign() takes a collection of TopicPartition object as an argument https://kafka.apache.org/23/javadoc/org/apache/kafka/clients/consumer/KafkaConsumer.ht
ml#assign-java.util.Collection-

QUESTION 4

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 5

What is a generic unique id that I can use for messages I receive from a consumer?

Correct Answer: B
(Topic,Partition,Offset) uniquely identifies a message in Kafka