0
0
Kafkadevops~10 mins

Cross-datacenter replication 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 Kafka cluster for replication.

Kafka
replication.source.cluster = "[1]"
Drag options to blanks, or click blank then click option'
Asource-cluster
Bus-east-1
Cdestination-cluster
Dreplica-cluster
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing source and destination cluster names.
Using region names instead of cluster identifiers.
2fill in blank
medium

Complete the code to specify the destination Kafka cluster for replication.

Kafka
replication.destination.cluster = "[1]"
Drag options to blanks, or click blank then click option'
Asource-cluster
Bprimary-cluster
Cbackup-cluster
Ddestination-cluster
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up source and destination cluster names.
Using unrelated cluster names.
3fill in blank
hard

Fix the error in the replication topic configuration to enable replication.

Kafka
replication.topic = "[1]"
Drag options to blanks, or click blank then click option'
Areplicated-topic
Btopic-replica
Creplication-topic
Dtopic
Attempts:
3 left
💡 Hint
Common Mistakes
Using generic or incorrect topic names.
Confusing topic names with cluster names.
4fill in blank
hard

Fill both blanks to configure the replication factor and the number of partitions for the replicated topic.

Kafka
replication.topic.config = {"replication.factor": [1], "partitions": [2]
Drag options to blanks, or click blank then click option'
A3
B5
C10
D1
Attempts:
3 left
💡 Hint
Common Mistakes
Setting replication factor too low or too high.
Choosing too few partitions for workload.
5fill in blank
hard

Fill all three blanks to complete the replication configuration with topic name, replication factor, and partitions.

Kafka
replication.config = {"topic": "[1]", "replication.factor": [2], "partitions": [3]
Drag options to blanks, or click blank then click option'
Areplicated-topic
B3
C10
Dsource-topic
Attempts:
3 left
💡 Hint
Common Mistakes
Using source topic name instead of replicated topic.
Incorrect replication factor or partition count.