This is one of the best Kafka interview questions from the perspective of candidates. Start your answer by emphasizing the fact that you cannot start the Kafka server without Zookeeper. So, it is important to start Zookeeper’s server. Then, we have to use the convince script that comes packaged with Kafka to obtain a raw yet effective single-node instance of Zookeeper. Here is an example,
bin/zookeeper-server-start.shconfig/zookeeper.properties
Following this, the Kafka server starts like in the example below,
bin/Kafka-server-start.shconfig/server.properties