Challenge - 5 Problems
MirrorMaker 2 Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
What is the primary role of MirrorMaker 2 in Kafka?
MirrorMaker 2 is a tool used in Kafka ecosystems. What is its main purpose?
Attempts:
2 left
💡 Hint
Think about data movement between clusters.
✗ Incorrect
MirrorMaker 2 is designed to replicate topics between Kafka clusters, enabling disaster recovery and geo-replication.
❓ Predict Output
intermediate2:00remaining
What output does this MirrorMaker 2 configuration produce?
Given this MirrorMaker 2 configuration snippet, what will be the effect?
Kafka
clusters = {
'primary': {
'bootstrap.servers': 'primary.kafka:9092'
},
'secondary': {
'bootstrap.servers': 'secondary.kafka:9092'
}
}
tasks.max = 2
replication.policy.class = org.apache.kafka.connect.mirror.DefaultReplicationPolicy
# Replicate all topics from primary to secondary
source.cluster = primary
target.cluster = secondaryAttempts:
2 left
💡 Hint
Look at source and target cluster settings.
✗ Incorrect
The configuration sets the source as primary and target as secondary, replicating all topics by default.
🔧 Debug
advanced2:30remaining
Why does this MirrorMaker 2 setup fail to replicate topics?
This MirrorMaker 2 config does not replicate any topics. Identify the cause.
Kafka
clusters = {
'clusterA': {
'bootstrap.servers': 'clusterA.kafka:9092'
},
'clusterB': {
'bootstrap.servers': 'clusterB.kafka:9092'
}
}
tasks.max = 1
replication.policy.class = org.apache.kafka.connect.mirror.DefaultReplicationPolicy
source.cluster = clusterA
target.cluster = clusterB
# Missing topics whitelist filterAttempts:
2 left
💡 Hint
Check if topics are selected for replication.
✗ Incorrect
MirrorMaker 2 requires a topics whitelist or pattern to know which topics to replicate; without it, no topics are replicated.
📝 Syntax
advanced2:00remaining
Which MirrorMaker 2 configuration snippet is syntactically correct?
Select the configuration snippet that is valid for MirrorMaker 2.
Attempts:
2 left
💡 Hint
Look for correct data structure and value types.
✗ Incorrect
Option B uses correct dictionary syntax and numeric value for tasks.max; others have syntax errors or invalid values.
🚀 Application
expert3:00remaining
How does MirrorMaker 2 handle topic offsets during replication?
When MirrorMaker 2 replicates topics between clusters, how does it manage consumer offsets to ensure consumers can continue seamlessly?
Attempts:
2 left
💡 Hint
Think about how consumer groups keep track of their position.
✗ Incorrect
MirrorMaker 2 replicates the __consumer_offsets topic so that consumer groups can continue consuming from the correct position on the target cluster.