Confluent Certified Developer for Apache Kafka Certification Examination Sample Questions:
1. Select the Kafka Streams joins that are always windowed joins.
A) KStream-KTable join
B) KStream-KStream join
C) KTable-KTable join
D) KStream-GlobalKTable
2. An application is consuming messages from Kafka.
The application logs show that partitions are frequently being reassigned within the consumer group.
Which two factors may be contributing to this?
(Select two.)
A) There is a storage issue on the broker.
B) The number of partitions does not match the number of application instances.
C) An instance of the application is crashing and being restarted.
D) There is a slow consumer processing application.
3. There are two consumers C1 and C2 belonging to the same group G subscribed to topics T1 and T2. Each of the topics has 3 partitions. How will the partitions be assigned to consumers with Partition Assigner being Round Robin Assigner?
A) Two consumers cannot read from two topics at the same time
B) C1 will be assigned partitions 0 and 1 from T1 and T2, C2 will be assigned partition 2 from T1 and T2.
C) All consumers will read from all partitions
D) C1 will be assigned partitions 0 and 2 from T1 and partition 1 from T2. C2 will have partition 1 from T1 and partitions 0 and 2 from T2.
4. We have a store selling shoes. What dataset is a great candidate to be modeled as a KTable in Kafka Streams?
A) The transaction stream
B) Inventory contents right now
C) Items returned
D) Money made until now
5. You create a producer that writes messages about bank account transactions from tens of thousands of different customers into a topic.
* Your consumers must process these messages with low latency and minimize consumer lag
* Processing takes ~6x longer than producing
* Transactions for each bank account must be processedin orderWhich strategy should you use?
A) Use a combination of the bank account number and the transaction timestamp as the message key.
B) Use the timestamp of the message's arrival as its key.
C) Use the bank account number found in the message as the message key.
D) Use a unique identifier such as a universally unique identifier (UUID) as the message key.
Solutions:
Question # 1 Answer: B | Question # 2 Answer: C,D | Question # 3 Answer: D | Question # 4 Answer: C,D | Question # 5 Answer: C |