Olete.in
Articles
Mock Tests
🧪 kafka MCQ Quiz Hub
Kafka MCQ
Choose a topic to test your knowledge and improve your kafka skills
1. Each kafka partition has one server which acts as the _______
leaders
ollowers
staters
All of the mentioned
2. Which are the elements of Kafka?
topic
Producer
Consumer
All of the above
3. What are consumers or users?
If all consumer instances have the same consumer set, then this works like a conventional queue adjusting load over the consumers
If all customer instances have dissimilar consumer groups, then this works like a publish-subscribe and all messages are transmitted to all the consumers
Both A & B
None of these
4. What is the benefits of Apache Kafka over the traditional technique?
Fast
Scalable
Durable
All of the above
5. Kafka maintains feeds of messages in categories called
Topics
Chunks
domains
messages
6. Kafka only provides a _________ order over messages within a partition
partial
Total
30%
None of the above
7. Preferred Leader Election is enabled by default. Typically, a leader is restored within 5 minutes of coming back online. Which property can be set to minimize the chance of data loss during the switching back?
Kafka.request.required.acks property on the Producer to 1
Kafka.request.required.acks property on the Producer to 10
Kafka.request.required.acks property on the Producer to NIL
Kafka.request.required.acks property on the Producer to -1
8. What exactly Kafka key capabilities?
Publish and subscribe to streams of records, similar to a message queue or enterprise messaging system
Store streams of records in a fault-tolerant durable way
Process streams of records as they occur
All of these
9. Which components are used for Stream Flow of Data?
Bolt
Spou
Reliable
All of these
10. What are the distinct layers are of Storm's codebase?
First, Storm was designed from the very beginning to be compatible with multiple languages. Nimbus is a Thrift service and topologies are defined as Thrift structures. The usage of Thrift allows Storm to be used from any language
Second, all of Storm's interfaces are specified as Java interfaces. So even though there's a lot of Clojure in Storm's implementation, all usage must go through the Java API. This means
Third, Storm's implementation is largely in Clojure. Line-wise, Storm is about half Java code, half Clojure code. But Clojure is much more expressive, so in reality the great majority of the impl
All of the above
11. What is the traditional method of message transfer?
Queuing
Publish-Subscribe
Both A & B
None of these
12. What are the disadvantages of Apache Kafka?
No Complete Set of Monitoring Tools
Issues with Message Tweaking
Not support wildcard topic selection
All of the above
13. What is the maximum size of a message that can be received by the Kafka?
It is approx. 1250000 bytes
It is approx. 1000000 bytescorrect
It is approx. 1456000 bytes
None
14. How many distinct layers are of storm’s codebase?
1
2
3correct
None of these
15. What are the main APIs of Kafka?
Streams API
Connector API
Both A and Bcorrect
None of these
16. Kafka maintains feeds of messages in categories called
Topicscorrect
Chunks
Domains
Messages
17. What is the use Apache Kafka Cluster?
Through this, we can Alert as well as report the operational metrics
Also, we can transform data into the standard formatwrong
Moreover, it allows continuous processing of streaming data to the topic
All the above mentioned
18. Kafka can be used for which kind of applications?
Building real-time streaming data pipelines that reliably get data between systems or applications
Building real-time streaming applications that transform or react to the streams of data
Both A and Bcorrect
None of these
19. Which of the following is a feature of Kafka architecture?
Low Overhead and High Throughput
High Overhear and Low Throughput
Low Overhead and Low Throughput
High Overhead and High Throughput
20. What are use cases of Apache Kafka?
Message queue
Event streams
Tracking and logging
All of the above
Submit