Apache Kafka MCQs with answers Page - 7

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 does 'offset.reset' configuration control?

  • (A) It resets Kafka broker logs
  • (B) It defines the starting point for a new consumer group
  • (C) It deletes consumer groups
  • (D) It sets producer retry interval

A

Admin • 833.24K Points
Coach

Q. Kafka uses which method to distribute messages among partitions?

  • (A) Random selection
  • (B) Round-robin only
  • (C) Partitioner logic (round-robin or key-based)
  • (D) Alphabetical topic name

A

Admin • 833.24K Points
Coach

Q. Which component is not part of the Kafka ecosystem?

  • (A) Kafka Connect
  • (B) Kafka Streams
  • (C) Kafka Router
  • (D) Kafka Broker

A

Admin • 833.24K Points
Coach

Q. Kafka consumers track their read progress using:

  • (A) Message ID
  • (B) Offset
  • (C) Timestamp
  • (D) Record key

A

Admin • 833.24K Points
Coach

Q. Kafka messages can be compressed using all except:

  • (A) gzip
  • (B) snappy
  • (C) lz4
  • (D) zip

A

Admin • 833.24K Points
Coach

Q. Kafka Connect uses which of the following to run connectors?

  • (A) Producers
  • (B) Connect Workers
  • (C) Kafka Streams
  • (D) Brokers

A

Admin • 833.24K Points
Coach

Q. What is a connector in Kafka Connect?

  • (A) A network cable
  • (B) A plugin that moves data between Kafka and another system
  • (C) A consumer group manager
  • (D) A broker metadata fetcher

A

Admin • 833.24K Points
Coach

Q. Which file format is commonly used for Kafka configurations?

  • (A) XML
  • (B) JSON
  • (C) YAML
  • (D) Properties

A

Admin • 833.24K Points
Coach

Q. Kafka's topic cleanup policy 'compact' does what?

  • (A) Deletes all messages older than a set time
  • (B) Keeps only the latest value for each key
  • (C) Backs up all partitions
  • (D) Encrypts old data

A

Admin • 833.24K Points
Coach

Q. Which protocol does Kafka use for communication?

  • (A) HTTP
  • (B) HTTPS
  • (C) TCP
  • (D) UDP