0
0
Kafkadevops~20 mins

Active-passive vs active-active in Kafka - Practice Questions

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Kafka Cluster Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Difference between active-passive and active-active Kafka clusters

Which statement best describes the difference between active-passive and active-active Kafka cluster setups?

AActive-passive clusters require manual failover; active-active clusters never require failover.
BActive-passive clusters share the same data center; active-active clusters are always in different data centers.
CActive-passive has one cluster handling all traffic while the other is standby; active-active has both clusters handling traffic simultaneously.
DActive-passive clusters use multiple brokers; active-active clusters use a single broker.
Attempts:
2 left
💡 Hint

Think about how traffic is handled in each setup.

Predict Output
intermediate
2:00remaining
Output of Kafka consumer group behavior in active-active setup

Given two Kafka clusters in an active-active setup, what will be the output of the following consumer group status command if both clusters consume from the same topic independently?

Kafka
kafka-consumer-groups --bootstrap-server cluster1:9092 --describe --group my-group
kafka-consumer-groups --bootstrap-server cluster2:9092 --describe --group my-group
ANo output because consumer groups cannot exist in active-active setups.
BA single combined consumer group status merging offsets from both clusters.
CAn error indicating consumer group conflicts between clusters.
DTwo separate consumer group statuses showing independent offsets for each cluster.
Attempts:
2 left
💡 Hint

Consider how consumer groups are managed per cluster.

🔧 Debug
advanced
2:00remaining
Why does failover not happen automatically in active-passive Kafka setup?

In an active-passive Kafka cluster setup, the passive cluster does not start handling traffic automatically after the active cluster fails. What is the most likely cause?

AThe passive cluster has no brokers running.
BThe passive cluster is not configured with automatic failover or monitoring tools.
CKafka does not support failover in any cluster setup.
DThe active cluster is still partially responding, so failover is blocked.
Attempts:
2 left
💡 Hint

Think about what triggers failover in active-passive setups.

📝 Syntax
advanced
2:00remaining
Identify the error in Kafka MirrorMaker active-active configuration snippet

What is wrong with this MirrorMaker configuration snippet intended for active-active replication?

Kafka
clusters = clusterA, clusterB
clusterA.bootstrap.servers = kafkaA:9092
clusterB.bootstrap.servers = kafkaB:9092

# Replication flows
clusterA->clusterB.enabled = true
clusterB->clusterA.enabled = false
AThe replication from clusterB to clusterA is disabled, so it's not truly active-active.
BThe bootstrap servers are incorrectly specified with ports.
CThe clusters variable should be a list, not a comma-separated string.
DMirrorMaker does not support active-active replication.
Attempts:
2 left
💡 Hint

Check the replication directions enabled.

🚀 Application
expert
3:00remaining
Choosing cluster setup for global low-latency Kafka access

You need to design a Kafka deployment for a global application requiring low-latency writes and reads from multiple continents. Which setup is best?

AActive-active clusters in multiple regions with bi-directional replication.
BSingle active cluster in one region with passive clusters in others for failover.
CMultiple independent clusters with no replication to reduce complexity.
DActive-passive clusters with manual failover to control traffic.
Attempts:
2 left
💡 Hint

Consider latency and availability for global users.