0
0
Kafkadevops~20 mins

Why multi-datacenter ensures availability in Kafka - Challenge Your Understanding

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Kafka Multi-Datacenter Availability Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Why does multi-datacenter deployment improve Kafka availability?
In a Kafka setup spanning multiple datacenters, what is the main reason availability is improved?
ABecause multi-datacenter setups eliminate the need for ZooKeeper coordination
BBecause Kafka brokers in different datacenters run different versions of Kafka, increasing fault tolerance
CBecause data is replicated across datacenters, so if one datacenter fails, others can continue serving data
DBecause clients connect only to the nearest datacenter, reducing network latency
Attempts:
2 left
💡 Hint
Think about what happens if one datacenter goes offline.
Predict Output
intermediate
2:00remaining
What is the output when a Kafka consumer reads from a multi-datacenter cluster after one datacenter fails?
Assume a Kafka cluster with two datacenters replicating topic data. The consumer reads from the cluster. If datacenter 1 goes down, what will the consumer output?
Kafka
records = consumer.poll(timeout_ms=1000)
print(records)
ARecords from datacenter 2, continuing without interruption
BPartial records with errors for partitions in datacenter 1
CNo records, consumer throws a connection error
DConsumer stops and waits indefinitely for datacenter 1 to recover
Attempts:
2 left
💡 Hint
Think about data replication and failover.
🔧 Debug
advanced
2:00remaining
Identify the cause of availability loss in a multi-datacenter Kafka setup
Given a Kafka cluster with two datacenters replicating data, the system loses availability when datacenter 1 fails. What is the most likely cause?
AReplication factor is set to 1, so data is not replicated to datacenter 2
BKafka brokers in datacenter 2 are running an incompatible Kafka version
CZooKeeper ensemble is only running in datacenter 1
DProducers are configured to write only to datacenter 1
Attempts:
2 left
💡 Hint
Check replication settings.
📝 Syntax
advanced
2:00remaining
Which Kafka topic configuration ensures data replication across datacenters?
Select the correct topic creation command that sets replication factor to 3 for multi-datacenter availability.
Kafka
kafka-topics --create --topic my-topic --partitions 3 --replication-factor ? --bootstrap-server kafka1:9092
A1
B3
C0
DNone
Attempts:
2 left
💡 Hint
Replication factor must be greater than 1 for replication.
🚀 Application
expert
2:00remaining
How to configure Kafka producer for multi-datacenter availability?
Which producer configuration ensures messages are acknowledged only after replication to all datacenters?
Aacks=-1
Backs=0
Cacks=1
Dacks=all
Attempts:
2 left
💡 Hint
Check Kafka acks settings for replication guarantees.