Apache Kafka MCQs with answers Page - 33

Here, you will find a collection of MCQ questions on Apache Kafka. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 833.24K Points
Coach

Q. What is a source connector?

  • (A) Reads data from Kafka
  • (B) Writes data to Kafka
  • (C) Deletes data
  • (D) Monitors topics

A

Admin • 833.24K Points
Coach

Q. What is a sink connector?

  • (A) Writes data to Kafka
  • (B) Reads data from Kafka and pushes to external systems
  • (C) Deletes topics
  • (D) Creates partitions

A

Admin • 833.24K Points
Coach

Q. What is exactly-once semantics in Kafka?

  • (A) Message may be duplicated
  • (B) Message delivered only once without duplication
  • (C) Message may be lost
  • (D) Message is not delivered

A

Admin • 833.24K Points
Coach

Q. What is a transactional producer?

  • (A) Produces messages without guarantee
  • (B) Ensures atomic writes across partitions
  • (C) Consumes messages
  • (D) Deletes messages

A

Admin • 833.24K Points
Coach

Q. What is commitSync() in Kafka consumer?

Code:
consumer.commitSync();
  • (A) Asynchronous commit
  • (B) Synchronous offset commit
  • (C) Deletes messages
  • (D) Fetches messages

A

Admin • 833.24K Points
Coach

Q. What is commitAsync() in Kafka consumer?

Code:
consumer.commitAsync();
  • (A) Synchronous commit
  • (B) Asynchronous offset commit
  • (C) Deletes offsets
  • (D) Reads messages

A

Admin • 833.24K Points
Coach

Q. What is auto.offset.reset?

  • (A) Resets broker
  • (B) Defines behavior when no offset is found
  • (C) Deletes offsets
  • (D) Creates new topics

A

Admin • 833.24K Points
Coach

Q. What are Kafka headers?

  • (A) Message metadata key-value pairs
  • (B) Partition identifiers
  • (C) Consumer IDs
  • (D) Broker configs

A

Admin • 833.24K Points
Coach

Q. What is batch.size in producer config?

  • (A) Number of brokers
  • (B) Size of message batch sent to broker
  • (C) Number of topics
  • (D) Number of partitions

A

Admin • 833.24K Points
Coach

Q. What is linger.ms in Kafka producer?

  • (A) Time to wait before sending batch
  • (B) Time to delete messages
  • (C) Consumer timeout
  • (D) Broker timeout

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ