0
0
Kafkadevops~10 mins

Standalone vs distributed mode in Kafka - Interactive Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to start a Kafka broker in standalone mode.

Kafka
bin/kafka-server-start.sh config/server[1].properties
Drag options to blanks, or click blank then click option'
A1
Bstandalone
Cdistributed
Ddefault
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'distributed' or 'standalone' as part of the filename causes errors.
Omitting the number leads to missing configuration.
2fill in blank
medium

Complete the code to start multiple Kafka brokers in distributed mode.

Kafka
bin/kafka-server-start.sh config/server[1].properties
Drag options to blanks, or click blank then click option'
Adefault
Bstandalone
C2
Dsingle
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'standalone' instead of a number causes startup failure.
Using 'default' does not specify a broker number.
3fill in blank
hard

Fix the error in the command to start Kafka in distributed mode.

Kafka
bin/kafka-server-start.sh config/server[1].properties
Drag options to blanks, or click blank then click option'
Asingle
Bdefault
Cstandalone
D3
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'standalone' or 'default' instead of a number causes errors.
Omitting the broker number leads to wrong configuration.
4fill in blank
hard

Fill both blanks to configure Kafka for distributed mode with correct broker ID and port.

Kafka
broker.id=[1]
port=[2]
Drag options to blanks, or click blank then click option'
A2
B9093
C9092
D1
Attempts:
3 left
💡 Hint
Common Mistakes
Using the same broker ID for multiple brokers causes conflicts.
Using the default port 9092 for all brokers causes port conflicts.
5fill in blank
hard

Fill all three blanks to create a Kafka producer command for standalone and distributed modes.

Kafka
bin/kafka-console-producer.sh --broker-list localhost:[1] --topic [2] --producer-property acks=[3]
Drag options to blanks, or click blank then click option'
A9092
Btest-topic
Call
D9093
Attempts:
3 left
💡 Hint
Common Mistakes
Using port 9092 for distributed mode causes connection issues.
Setting acks to '0' or '1' may cause message loss.