Bookmark this page

Quiz: Describing Kafka Streams Architecture

    Choose the correct answers to the following questions:

  1. 1.

    Based on your understanding of the stream-table relationship, which statements are correct? (Choose two).

    A

    You can transform any record into a database table.

    B

    You can transform a stream of records into a table of records.

    C

    You can replace relational databases with Kafka Streams.

    D

    Kafka Streams provides ACID guarantees by default.

    E

    You can transform a table of records into a stream of records.

  2. 2.

    You have deployed a Kafka Streams application on the Red Hat OpenShift Container Platform (RHOCP). The last record the application received had the timestamp of 1666282245000 (2022/10/20 18:10:45). The RHOCP node that hosts the application is located in Raleigh, and has local time of 2022/10/20 12:30. What is the stream time of the application for an observer in Central Europe at 2022/10/20 18:30 CET?

    A

    2022/10/20 18:10:45

    B

    2022/10/20 12:30

    C

    2022/10/20 18:30

    D

    Indeterminate, because all of the timestamps must match.

  3. 3.

    Your Kafka Streams application uses one source topic with five partitions. What is the maximum number of the application nodes that can process the records in parallel?

    A

    4 nodes, because of the N-1 rule.

    B

    10 nodes, because Kafka Streams applications create 1 partition and 1 repartition for each topic partition.

    C

    5 nodes, because Kafka Streams applications can always scale out to the factor 5.

    D

    5 nodes, because Kafka Streams applications create 1 stream partition for each topic partition.

  4. 4.

    Your Kafka Streams application uses two source topics. The topic-a topic contains five partitions. The topic-b topic contains three partitions. What is the maximum number of application nodes that can process the records in parallel?

    A

    8 nodes, because Kafka Streams can process 5 partitions for topic-a and 3 partitions for topic-b.

    B

    3 nodes, because the topic-b topic forms a bottleneck for the parallelization.

    C

    5 nodes, because the topic-a topic contains the most partitions.

    D

    15 nodes, because developers can scale the application to 5 nodes for the topic-a topic three times due to the topic-b topic.

Revision: ad482-1.8-cc2ae1c