Bird
0
0

You want to replicate only messages with key starting with 'user_' from topic 'events' across data centers. Which MirrorMaker feature helps achieve this?

hard📝 Application Q8 of 15
Kafka - Multi-Datacenter and Replication

You want to replicate only messages with key starting with 'user_' from topic 'events' across data centers. Which MirrorMaker feature helps achieve this?

AUsing a custom message filter plugin
BSetting 'topics' property to 'user_*'
CConfiguring producer to filter keys
DUsing consumer group ID to filter keys
Step-by-Step Solution
Solution:
  1. Step 1: Understand filtering capabilities

    MirrorMaker supports custom plugins to filter messages based on keys or content.
  2. Step 2: Identify correct method for key-based filtering

    Setting 'topics' or consumer group ID cannot filter by message key; producer config does not filter keys.
  3. Final Answer:

    Using a custom message filter plugin -> Option A
  4. Quick Check:

    Key-based filtering = custom plugin [OK]
Quick Trick: Use custom filter plugin for key-based replication [OK]
Common Mistakes:
MISTAKES
  • Trying to filter keys via topic names
  • Using producer config for filtering
  • Confusing consumer group ID with filtering

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes