Challenge - 5 Problems
Kafka Mode Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Predict Output
intermediate2:00remaining
Output of Kafka standalone mode configuration
Consider a Kafka setup running in standalone mode with a single broker. What will be the output of the following command that lists topics?
Kafka
kafka-topics.sh --list --bootstrap-server localhost:9092
Attempts:
2 left
💡 Hint
In standalone mode, there is only one broker managing all topics.
✗ Incorrect
In standalone mode, Kafka runs a single broker that manages all topics. The command lists all topics on that broker.
🧠 Conceptual
intermediate2:00remaining
Difference in fault tolerance between standalone and distributed mode
Which statement correctly describes the fault tolerance difference between Kafka's standalone and distributed modes?
Attempts:
2 left
💡 Hint
Think about how Kafka handles data safety in a cluster.
✗ Incorrect
Distributed mode uses multiple brokers and replicates partitions to provide fault tolerance. Standalone mode has only one broker and no replication.
🔧 Debug
advanced2:00remaining
Identify the error in distributed mode broker configuration
Given this broker configuration snippet for distributed mode, what error will occur?
broker.id=0
listeners=PLAINTEXT://:9092
log.dirs=/tmp/kafka-logs
zookeeper.connect=localhost:2181
Options:
Attempts:
2 left
💡 Hint
In distributed mode, brokers must advertise their address to clients and other brokers.
✗ Incorrect
Without advertised.listeners, clients cannot connect properly, causing startup issues in distributed mode.
📝 Syntax
advanced2:00remaining
Syntax error in standalone mode startup command
Which option shows the correct syntax to start Kafka in standalone mode using the command line?
Attempts:
2 left
💡 Hint
The -daemon flag runs Kafka in the background.
✗ Incorrect
Option A correctly uses the -daemon flag to start Kafka with the given config file in standalone mode.
🚀 Application
expert3:00remaining
Choosing mode for a fault-tolerant Kafka deployment
You need to deploy Kafka for a critical application requiring high availability and fault tolerance. Which mode should you choose and why?
Attempts:
2 left
💡 Hint
Consider how Kafka handles failures and data safety.
✗ Incorrect
Distributed mode allows multiple brokers with replicated partitions, providing fault tolerance and high availability.