Bird
0
0

You want to build a real-time analytics system that processes large volumes of data and keeps a full history of all events for auditing. Which combination of messaging systems is the best approach?

hard📝 Conceptual Q15 of 15
Kafka - Basics and Event Streaming
You want to build a real-time analytics system that processes large volumes of data and keeps a full history of all events for auditing. Which combination of messaging systems is the best approach?
AUse Kafka for event storage and Redis Pub/Sub for real-time notifications.
BUse RabbitMQ for event storage and Redis Pub/Sub for message routing.
CUse Redis Pub/Sub alone for both storage and real-time processing.
DUse RabbitMQ alone for storing large data streams and real-time analytics.
Step-by-Step Solution
Solution:
  1. Step 1: Identify requirements

    The system needs to handle large data volumes, keep full event history, and provide real-time notifications.
  2. Step 2: Match systems to requirements

    Kafka is ideal for storing large data streams and keeping history. Redis Pub/Sub is fast for real-time notifications but does not store data.
  3. Step 3: Evaluate other options

    RabbitMQ is good for routing and delivery but less suited for big data storage. Redis Pub/Sub alone cannot store messages. RabbitMQ alone is not optimized for large data streams.
  4. Final Answer:

    Use Kafka for event storage and Redis Pub/Sub for real-time notifications. -> Option A
  5. Quick Check:

    Kafka stores history + Redis Pub/Sub fast notifications [OK]
Quick Trick: Combine Kafka storage with Redis Pub/Sub speed [OK]
Common Mistakes:
  • Using Redis Pub/Sub alone for storage
  • Assuming RabbitMQ handles big data storage well
  • Ignoring Kafka's strength in event history

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes