🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: Kafka: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. Two consumer groups, "notifications" and "analytics", read the topic orders. Who receives an OrderPlacedEvent?
  2. Q2. Why give all events of one order the same key?
  3. Q3. What does a consumer group's offset record?
  4. Q4. With at-least-once delivery, what must consumers be?
  5. Q5. When is a direct REST call better than publishing an event?
  6. Q6. A consumer service was down for an hour. What happens to events published during that time?
  7. Q7. A consumer group has 3 instances reading a topic with 3 partitions. How is the work shared?
  8. Q8. Why does the JSON deserializer have spring.json.trusted.packages=com.skills101.orders?
  9. Q9. Saving an order to the database and publishing its event cannot be one transaction. What does the outbox pattern do?
  10. Q10. What does auto-offset-reset=earliest mean for a brand-new consumer group?