Bird
0
0

Given this Kafka event flow: Producer sends events to topic 'orders'. Consumer reads from 'orders'. What happens if the consumer is slow?

medium📝 Predict Output Q13 of 15
Kafka - Basics and Event Streaming
Given this Kafka event flow: Producer sends events to topic 'orders'. Consumer reads from 'orders'. What happens if the consumer is slow?
AEvents are lost immediately
BEvents accumulate in the topic until consumed
CProducer stops sending events
DTopic deletes old events instantly
Step-by-Step Solution
Solution:
  1. Step 1: Understand Kafka topic behavior

    Kafka stores events in topics until consumers read them; slow consumers cause events to accumulate.
  2. Step 2: Analyze options based on behavior

    Events accumulate in the topic until consumed matches this behavior; events wait in topic. Events are not lost immediately, producer keeps sending, and topic deletes old events only after retention period.
  3. Final Answer:

    Events accumulate in the topic until consumed -> Option B
  4. Quick Check:

    Slow consumer = event backlog in topic [OK]
Quick Trick: Slow consumer causes event backlog, not loss [OK]
Common Mistakes:
  • Assuming events are lost if consumer is slow
  • Thinking producer stops sending events
  • Believing topics delete events instantly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes