Apache Kafka - Interview Questions and Answers for 'Apache kafka' | Search Java Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Apache Kafka - Interview Questions and Answers for 'Apache kafka' - 7 question(s) found - Order By Newest

 Q1. Can we have multiple threads consuming message stream from a single partition ?

Ans. Yes, by having multiple Consumer Groups.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     apache kafka  kafka  kafka consumer  kafka topic partitions  bigdata  consumer group


 Q2. Can we have multiple threads consuming messages from a single partition if we have single Consumer Group ?

Ans. No, we can only have max 1 thread per partition in a single Consumer Group.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     apache kafka  kafka  kafka consumer  kafka topic partitions  bigdata  consumer group


 Q3. If we have more threads than partitions in a kafka consumer, How can we model it efficiently ?

Ans. We will have to use multiple consumer groups in that case as threads will remain idle if we use single consumer group. A more sophisticated algorithm could be required with multiple groups if we have to ensure the order of consumption.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     apache kafka  kafka  kafka consumer  kafka topic partitions  bigdata  consumer group


 Q4. How can we make sure that we don't receive duplicate messages from the Kafka Topic ? Apache Kafka2017-08-17 11:00:15

 This question is still unanswered. Can you please provide an answer.


 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     kafka


 Q5. How can we makes sure that message has been consumed properly from Kafka ?Apache Kafka2017-08-17 15:29:49

Ans. We can have a mechanism to send the conformation back to Kafka so that Kafka can do offset only after receiving the confirmation.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     apache kafka  kafka  kafka consumer


 Q6. Kafka has a deliver atleast once default Policy, What are the other policies that can be configured with Kafka ?Apache Kafka2017-08-18 09:39:01

Ans. Exactly once and At Max Once

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     kafka


 Q7. What are the different delivery policies in Apache Kafka ?Apache Kafka2018-05-03 06:17:38

Ans. Exactly once , At least once , At max once

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve          Asked in 1 Companies      basic        frequent



Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: