Geo-replication in Kafka means copying data across different geographic locations to improve availability and disaster recovery.
Click to reveal answer
beginner
Name two common Kafka geo-replication tools or methods.
Two common methods are MirrorMaker 2 and Confluent Replicator, which help copy topics between Kafka clusters in different regions.
Click to reveal answer
intermediate
What is the main difference between active-active and active-passive geo-replication?
Active-active means multiple clusters can read and write data simultaneously, while active-passive means only one cluster writes and others are backups.
Click to reveal answer
intermediate
Why is data consistency a challenge in geo-replication?
Because data is copied across distant locations, network delays and conflicts can cause data to be out of sync or inconsistent temporarily.
Click to reveal answer
advanced
How does MirrorMaker 2 handle topic replication?
MirrorMaker 2 uses the Kafka Connect framework to replicate topics, consumer offsets, and configurations between clusters, supporting automatic failover.
Click to reveal answer
What is the purpose of geo-replication in Kafka?
ATo delete old Kafka logs
BTo compress Kafka messages
CTo encrypt Kafka topics
DTo copy data across regions for availability and disaster recovery
✗ Incorrect
Geo-replication copies data across regions to keep it safe and available even if one location fails.
Which tool is commonly used for Kafka geo-replication?
AMirrorMaker 2
BKafka Streams
CKafka Connect Sink
DZooKeeper
✗ Incorrect
MirrorMaker 2 is designed specifically to replicate Kafka topics between clusters.
In active-passive geo-replication, which cluster handles writes?
ABoth clusters simultaneously
BOnly the passive cluster
COnly the active cluster
DNeither cluster
✗ Incorrect
Only the active cluster accepts writes; the passive cluster is a backup.
What challenge does network latency cause in geo-replication?
AData inconsistency
BFaster replication
CMore storage space
DAutomatic topic creation
✗ Incorrect
Network delays can cause data to be temporarily out of sync between clusters.
MirrorMaker 2 is built on which Kafka framework?
AKafka Streams
BKafka Connect
CKafka Producer API
DKafka Consumer API
✗ Incorrect
MirrorMaker 2 uses Kafka Connect to manage replication tasks.
Explain the difference between active-active and active-passive geo-replication strategies in Kafka.
Think about how many clusters can write data at the same time.
You got /3 concepts.
Describe how MirrorMaker 2 helps with Kafka geo-replication.
Focus on the framework MirrorMaker 2 is built on and what it replicates.
You got /4 concepts.
Practice
(1/5)
1. What is the main purpose of geo-replication in Kafka?
easy
A. To encrypt Kafka topics for security
B. To compress Kafka messages for faster transmission
C. To copy data between Kafka clusters in different locations for safety and availability
D. To delete old Kafka data automatically
Solution
Step 1: Understand geo-replication concept
Geo-replication means copying data between clusters in different places to keep data safe and accessible.
Step 2: Identify the main goal
The main goal is to keep data safe and close to users worldwide by copying it across locations.
Final Answer:
To copy data between Kafka clusters in different locations for safety and availability -> Option C
Quick Check:
Geo-replication = Data copying across locations [OK]
Hint: Geo-replication means copying data across locations [OK]
Common Mistakes:
Confusing geo-replication with data compression
Thinking geo-replication encrypts data
Assuming geo-replication deletes data
2. Which Kafka tool is commonly used for geo-replication?
easy
A. MirrorMaker 2
B. Kafka Connect Sink
C. Kafka Streams
D. Kafka Producer API
Solution
Step 1: Recall Kafka geo-replication tools
MirrorMaker 2 is designed to replicate data between Kafka clusters in different locations.
Step 2: Differentiate from other tools
Kafka Streams processes data streams, Kafka Connect Sink moves data to external systems, and Producer API sends data to Kafka but does not replicate clusters.
Final Answer:
MirrorMaker 2 -> Option A
Quick Check:
Geo-replication tool = MirrorMaker 2 [OK]
Hint: MirrorMaker 2 is for replicating Kafka clusters [OK]
Common Mistakes:
Choosing Kafka Streams which is for processing, not replication
Confusing Kafka Connect Sink with replication tool
Selecting Producer API which only sends data
3. Given the following MirrorMaker 2 configuration snippet, what is the effect?
B. MirrorMaker 2 requires only one cluster in config
C. Cluster names must be numeric, not strings
D. Empty topics list means no topics are selected for replication
Solution
Step 1: Check topics list in mirror config
The topics list is empty [], so no topics are selected to replicate.
Step 2: Validate other config parts
Bootstrap servers are correctly formatted, cluster names as strings are valid, and multiple clusters are allowed.
Final Answer:
Empty topics list means no topics are selected for replication -> Option D
Quick Check:
Empty topics list = no replication [OK]
Hint: Empty topics list disables replication [OK]
Common Mistakes:
Assuming bootstrap.servers format is wrong
Thinking cluster names must be numbers
Believing MirrorMaker 2 supports only one cluster
5. You want to set up geo-replication between three Kafka clusters (US, EU, Asia) so that each cluster has all topics from the others. Which strategy should you use?
hard
A. Set up MirrorMaker 2 with a full mesh replication where each cluster replicates to the other two
B. Use a single MirrorMaker 2 instance replicating only from US to EU and Asia
C. Configure MirrorMaker 2 to replicate only the largest topic across clusters
D. Use Kafka Connect Sink to move data between clusters
Solution
Step 1: Understand full data availability goal
Each cluster should have all topics from the others, meaning data must flow both ways between all clusters.
Step 2: Choose replication strategy
A full mesh replication with MirrorMaker 2 means each cluster replicates to the other two, ensuring complete data presence everywhere.
Final Answer:
Set up MirrorMaker 2 with a full mesh replication where each cluster replicates to the other two -> Option A
Quick Check:
Full mesh replication = all clusters have all topics [OK]
Hint: Full mesh replicates all topics between all clusters [OK]
Common Mistakes:
Using one-way replication only
Replicating only largest topic, missing others
Confusing Kafka Connect Sink with cluster replication
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.