Bird
0
0

You want to implement a windowed aggregation using a state store that keeps counts per user per 5-minute window. Which state store type should you use?

hard📝 Application Q8 of 15
Kafka - Advanced Stream Processing
You want to implement a windowed aggregation using a state store that keeps counts per user per 5-minute window. Which state store type should you use?
AInMemoryKeyValueStore
BWindowStore
CPersistentKeyValueStore
DTimestampedKeyValueStore
Step-by-Step Solution
Solution:
  1. Step 1: Identify store type for windowed data

    WindowStore is designed to keep data segmented by time windows.
  2. Step 2: Differentiate from other store types

    KeyValueStores do not handle windowed keys natively.
  3. Final Answer:

    WindowStore -> Option B
  4. Quick Check:

    Windowed aggregation uses WindowStore [OK]
Quick Trick: Use WindowStore for time-windowed aggregations [OK]
Common Mistakes:
MISTAKES
  • Using KeyValueStore for windowed data
  • Confusing timestamped store with window store
  • Choosing in-memory store without window support

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes