Apache Kafka Test 1 — Questions and Answers
Question 1: A publish-subscribe messaging system is defined as which of the following?
- KnouckoutJS
- Scala
- Kafka (Correct answer)
- Groovy
Correct answer: Kafka
Explanation: <br> Apache Kafka is a distributed streaming framework for creating real-time data pipelines and applications that react to changing data streams.
Question 2: What language did Kafka write in?
- Groovy
- Scala (Correct answer)
- Python
- None of the above
Correct answer: Scala
Explanation: <br> The programming languages Java and Scala were used to create Kafka.
Question 3: What is the largest message a Kafka server can receive?
- 100,000,000 bytes
- 1,000,000 bytes (Correct answer)
- 1,000,000,000 bytes
- 10,000,000 bytes
Correct answer: 1,000,000 bytes
Explanation: <br> The maximum size of a message that can be received by the Kafka server is 1,000,000 bytes.
Question 4: Kafka was created by which organization?
- Linkedln (Correct answer)
- Microsoft
- Amazon
- Goggle
Correct answer: Linkedln
Explanation: <br> LinkedIn created Kafka in 2009, but it was eventually outsourced to the Apache Software Foundation in 2011. In a word, Kafka is a distributed streaming technology with high volume, high throughput, super scalability, and reliability.
Question 5: In Kafka, why is replication required? Because it guarantees...
- A published message will not be sent
- A published message will not be lost (Correct answer)
- A published message will not be saved
- A published message will not be deleted
Correct answer: A published message will not be lost
Explanation: <br> In any case, Kafka ensures that no data is lost.
Question 6: In Kafka, what is referred to as a broker?
- Zookeeper
- Message
- Subscriber
- Server (Correct answer)
Correct answer: Server
Explanation: <br> A Kafka server functions similarly to this messaging system. The Kafka server, on the other hand, is utilized as a message broker. A producer and a consumer are the two basic abstractions of a Kafka server. Content is created by producers and then published to the Kafka server. This content is consumed from the Kafka server by a consumer. In this example, each producer can generate and submit messages to a Kafka server. These messages can then be consumed straight from the Kafka server by a consumer. In this way, Kafka serves as a go-between for the two.
Question 7: In Kafka, how many traditional message transfer techniques are available?
- 2 (Correct answer)
- 3
- 4
- 5
Correct answer: 2
Explanation: <br> The traditional message transfer method includes two methods: queuing and delivery. Queuing is a method in which a group of consumers read a message from the server, and each message is delivered to one of them. Publish-Subscribe: In Publish-Subscribe, messages are published to all consumers.
Question 8: Which of the following types of communication is performed between two nodes?
- Zookeeper (Correct answer)
- Server
- Message
- Broker
Correct answer: Zookeeper
Explanation: <br> Zookeeper is a top-tier cluster coordination service that employs the most reliable synchronization techniques to keep the cluster's nodes perfectly connected. Apache Zookeeper solves distributed environment management with its simple architecture and API.
Question 9: Which of these is a method of Queuing?
- Zookeeper
- Cluster
- Apache Kafka
- Traditional message transfer (Correct answer)
Correct answer: Traditional message transfer
Explanation: <br> Queuing is a method in which a group of consumers read a message from the server, and each message is delivered to one of them.
A publish-subscribe messaging system is defined as which of the following?