Apache Kafka(Engineering > Computer Science And Engineering ) Questions and Answers
Question 1. Each kafka partition has one server which acts as the _________
leaders
followers
staters
All of the mentioned
Explanation:-
Answer: Option A. -> leaders
Question 2. Kafka maintains feeds of messages in categories called
Topics
Chunks
domains
messages
Explanation:-
Answer: Option A. -> Topics
Question 3. What is the benefits of Apache Kafka over the traditional technique?
Fast
Scalable
Durable
All of the above
Explanation:-
Answer: Option D. -> All of the above
Question 4. 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 and B
None
Explanation:-
Answer: Option C. -> Both A and B
Question 5. Which are the elements of Kafka?
Topic
Producer
Consumer
All of these
Explanation:-
Answer: Option D. -> All of these
Question 6. Kafka only provides a _________ order over messages within a partition
partial
Total
30%
None of the mentioned
Explanation:-
Answer: Option B. -> Total
Question 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
Explanation:-
Answer: Option C. -> Kafka.request.required.acks property on the Producer to NIL
Question 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
Explanation:-
Answer: Option D. -> All of these
Question 9. 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 that every feature of Storm is always available via Java
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 implementation logic is in Clojure
All of these
Explanation:-
Answer: Option D. -> All of these
Question 10. Which components are used for Stream Flow of Data?