Hadoop Questions and Answers – Kafka with Hadoop – 2

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

Answer: b
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

Answer: b
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

Answer: a
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

Answer: b
Explanation: We’ll call processes that subscribe to topics and process the feed of published messages consumers.

advertisement
advertisement

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

Answer: a
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

Answer: b
Explanation: Java client is provided for Kafka, but clients are available in many languages.

Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

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

Answer: a
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

Answer: a
Explanation: Each partition is replicated across a configurable number of servers for fault tolerance.

advertisement

9. _________ has stronger ordering guarantees than a traditional messaging system.
a) kafka
b) Slider
c) Suz
d) None of the mentioned
View Answer

Answer: a
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

Answer: b
Explanation: Per-partition ordering combined with the ability to partition data by key is sufficient for most applications.

advertisement

Sanfoundry Global Education & Learning Series – Hadoop.

Here’s the list of Best Books in Hadoop.

To practice all interview questions and answers on Kafka, here is complete set of 1000+ Multiple Choice Questions and Answers.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.