There are 3 brokers in the cluster. You want to create a topic with a single partition that is resilient to one broker failure and one broker maintenance. What is the replication factor will you specify while creating the topic?
Correct Answer:
B
1 is not possible as it doesn't provide resilience to failure, 2 is not enough as if we take a broker down for maintenance, we cannot tolerate a broker failure, and 6 is impossible as we only have 3 brokers (RF cannot be greater than the number of brokers). Here the correct answer is 3
If I produce to a topic that does not exist, and the broker setting auto.create.topic.enable=true, what will happen?
Correct Answer:
C
The broker settings comes into play when a topic is auto created
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?
Correct Answer:
A
The correct option is the only one where the two consumers share an equal number of partitions amongst the two topics of three partitions. An interesting article to read ishttps://medium.com/@anyili0928/what-i-have-learned-from-kafka-partition-assignment- strategy-799fdf15d3ab
You want to sink data from a Kafka topic to S3 using Kafka Connect. There are 10 brokers in the cluster, the topic has 2 partitions with replication factor of 3. How many tasks will you configure for the S3 connector?
Correct Answer:
D
You cannot have more sink tasks (= consumers) than the number of partitions, so 2.
Which actions will trigger partition rebalance for a consumer group? (select three)
Correct Answer:
ACD
Rebalance occurs when a new consumer is added, removed or consumer dies or paritions increased.