0
0
Kafkadevops~10 mins

MirrorMaker 2 concept in Kafka - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to specify the source cluster in MirrorMaker 2 configuration.

Kafka
source.bootstrap.servers=[1]
Drag options to blanks, or click blank then click option'
A"target.kafka:9092"
B"source.kafka:9092"
C"localhost:9092"
D"mirror.kafka:9092"
Attempts:
3 left
💡 Hint
Common Mistakes
Using the target cluster address instead of the source cluster.
Leaving the value empty or with incorrect format.
2fill in blank
medium

Complete the code to specify the target cluster in MirrorMaker 2 configuration.

Kafka
target.bootstrap.servers=[1]
Drag options to blanks, or click blank then click option'
A"source.kafka:9092"
B"mirror.kafka:9092"
C"localhost:9092"
D"target.kafka:9092"
Attempts:
3 left
💡 Hint
Common Mistakes
Using the source cluster address instead of the target cluster.
Using an invalid or empty address.
3fill in blank
hard

Fix the error in the MirrorMaker 2 configuration property to enable topic replication.

Kafka
replication.policy.class=[1]
Drag options to blanks, or click blank then click option'
A"org.apache.kafka.connect.mirror.DefaultReplicationPolicy"
B"org.apache.kafka.connect.mirror.TopicReplicationPolicy"
C"org.apache.kafka.connect.mirror.MirrorReplicationPolicy"
D"org.apache.kafka.connect.mirror.SimpleReplicationPolicy"
Attempts:
3 left
💡 Hint
Common Mistakes
Using a non-existent or incorrect class name.
Misspelling the class path.
4fill in blank
hard

Fill both blanks to configure MirrorMaker 2 to replicate topics with a specific prefix and exclude internal topics.

Kafka
topics=[1]
topics.exclude=[2]
Drag options to blanks, or click blank then click option'
A"prefix-.*"
B"__consumer_offsets"
C"__transaction_state"
D"internal-.*"
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect regex patterns.
Not excluding internal topics which can cause replication issues.
5fill in blank
hard

Fill all three blanks to configure MirrorMaker 2 with source, target, and replication policy settings.

Kafka
clusters=[1]
source.bootstrap.servers=[2]
replication.policy.class=[3]
Drag options to blanks, or click blank then click option'
A"source,target"
B"source.kafka:9092"
C"org.apache.kafka.connect.mirror.DefaultReplicationPolicy"
D"target.kafka:9092"
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing source and target addresses.
Incorrect replication policy class name.
Wrong cluster list format.