This set of Interview Questions & Answers focuses on “Kafka with Hadoop – 2”.
1. __________ provides the functionality of a messaging system.
a) Oozie
b) Kafka
c) Lucene
d) BigTop
View Answer
Explanation: Kafka is a distributed, partitioned, replicated commit log service.
2. Point out the correct statement.
a) With Kafka, more users, whether using SQL queries or BI applications, can interact with more data
b) A topic is a category or feed name to which messages are published
c) For each topic, the Kafka cluster maintains a partitioned log
d) None of the mentioned
View Answer
Explanation: Kafka is possible through a single repository and metadata store from source through analysis.
3. Kafka maintains feeds of messages in categories called __________
a) topics
b) chunks
c) domains
d) messages
View Answer
Explanation: We’ll call processes that publish messages to Kafka topic producers.
4. Kafka is run as a cluster comprised of one or more servers each of which is called __________
a) cTakes
b) broker
c) test
d) none of the mentioned
View Answer
Explanation: We’ll call processes that subscribe to topics and process the feed of published messages consumers.
5. Point out the wrong statement.
a) The Kafka cluster does not retain all published messages
b) A single Kafka broker can handle hundreds of megabytes of reads and writes per second from thousands of clients
c) Kafka is designed to allow a single cluster to serve as the central data backbone for a large organization
d) Messages are persisted on disk and replicated within the cluster to prevent data loss
View Answer
Explanation: The Kafka cluster retains all published messages—whether or not they have been consumed—for a configurable period of time.
6. Communication between the clients and the servers is done with a simple, high-performance, language-agnostic _________ protocol.
a) IP
b) TCP
c) SMTP
d) ICMP
View Answer
Explanation: Java client is provided for Kafka, but clients are available in many languages.
7. The only metadata retained on a per-consumer basis is the position of the consumer in the log, called __________
a) offset
b) partition
c) chunks
d) all of the mentioned
View Answer
Explanation: offset is controlled by the consumer: normally a consumer will advance its offset linearly as it reads messages
8. Each kafka partition has one server which acts as the _________
a) leaders
b) followers
c) staters
d) all of the mentioned
View Answer
Explanation: Each partition is replicated across a configurable number of servers for fault tolerance.
9. _________ has stronger ordering guarantees than a traditional messaging system.
a) kafka
b) Slider
c) Suz
d) None of the mentioned
View Answer
Explanation: A traditional queue retains messages in-order on the server.
10. Kafka only provides a _________ order over messages within a partition.
a) partial
b) total
c) 30%
d) none of the mentioned
View Answer
Explanation: Per-partition ordering combined with the ability to partition data by key is sufficient for most applications.
Sanfoundry Global Education & Learning Series – Hadoop.
Here’s the list of Best Books in Hadoop.
- Get Free Certificate of Merit in Hadoop
- Participate in Hadoop Certification Contest
- Become a Top Ranker in Hadoop
- Take Hadoop Tests
- Chapterwise Practice Tests: Chapter 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
- Chapterwise Mock Tests: Chapter 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
- Apply for Information Technology Internship
- Practice Programming MCQs
- Buy Programming Books
- Buy Hadoop Books
- Apply for Hadoop Internship