Bird
0
0

In MirrorMaker 2, which configuration property allows you to replicate only topics that match a specific prefix such as 'logs-'?

hard📝 Application Q8 of 15
Kafka - Multi-Datacenter and Replication
In MirrorMaker 2, which configuration property allows you to replicate only topics that match a specific prefix such as 'logs-'?
Atopics = logs-*
Btopics.regex = logs-.*
Cinclude.topics = logs-
Dfilter.topics.prefix = logs-
Step-by-Step Solution
Solution:
  1. Step 1: Identify the correct property for topic filtering

    MirrorMaker 2 uses 'topics.regex' to specify topics by regex patterns.
  2. Step 2: Analyze options

    topics.regex = logs-.* uses a valid regex 'logs-.*' to match all topics starting with 'logs-'. Options B, C, and D are not valid MirrorMaker 2 properties.
  3. Final Answer:

    topics.regex = logs-.* -> Option B
  4. Quick Check:

    Regex property filters topics by pattern. [OK]
Quick Trick: Use topics.regex with regex pattern for topic filtering [OK]
Common Mistakes:
MISTAKES
  • Using 'topics' with wildcard which is unsupported
  • Assuming 'include.topics' or 'filter.topics.prefix' exist
  • Not using regex syntax for topic filtering

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes