Bird
0
0

What happens if you schedule a punctuator with STREAM_TIME but the stream has no new records arriving?

medium📝 Predict Output Q5 of 15
Kafka - Advanced Stream Processing
What happens if you schedule a punctuator with STREAM_TIME but the stream has no new records arriving?
AThe punctuator triggers immediately once and then stops.
BThe punctuator will not be triggered until new records advance the stream time.
CThe punctuator triggers at fixed intervals regardless of records.
DThe stream processing crashes with an error.
Step-by-Step Solution
Solution:
  1. Step 1: Understand STREAM_TIME punctuator behavior

    STREAM_TIME triggers based on the progress of the stream's event time, which advances only when new records arrive.
  2. Step 2: Analyze effect of no new records

    If no new records arrive, stream time does not advance, so the punctuator does not trigger.
  3. Final Answer:

    The punctuator will not be triggered until new records advance the stream time. -> Option B
  4. Quick Check:

    STREAM_TIME triggers only on new record timestamps [OK]
Quick Trick: STREAM_TIME depends on record timestamps advancing [OK]
Common Mistakes:
MISTAKES
  • Assuming fixed interval triggers for STREAM_TIME
  • Expecting immediate or periodic triggers without records
  • Thinking it causes errors when idle

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes