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
πŸ’¬ Discuss
βœ… Correct Answer: (B) It defines the starting point for a new consumer group
Explanation: 'auto.offset.reset' determines what to do when there is no initial offset in Kafka.

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
πŸ’¬ Discuss
βœ… Correct Answer: (C) Partitioner logic (round-robin or key-based)
Explanation: Kafka uses a partitioner to determine message distribution — either round-robin or key-based.

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

  • (A) Kafka Connect
  • (B) Kafka Streams
  • (C) Kafka Router
  • (D) Kafka Broker
πŸ’¬ Discuss
βœ… Correct Answer: (C) Kafka Router
Explanation: Kafka Router is not a part of the official Kafka ecosystem.

Q. Kafka consumers track their read progress using:

  • (A) Message ID
  • (B) Offset
  • (C) Timestamp
  • (D) Record key
πŸ’¬ Discuss
βœ… Correct Answer: (B) Offset
Explanation: Kafka consumers use offsets to track which messages have been consumed.

Q. Kafka messages can be compressed using all except:

  • (A) gzip
  • (B) snappy
  • (C) lz4
  • (D) zip
πŸ’¬ Discuss
βœ… Correct Answer: (D) zip
Explanation: Kafka does not support 'zip' as a compression type; it supports gzip, snappy, and lz4.

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

  • (A) Producers
  • (B) Connect Workers
  • (C) Kafka Streams
  • (D) Brokers
πŸ’¬ Discuss
βœ… Correct Answer: (B) Connect Workers
Explanation: Kafka Connect uses workers (distributed or standalone) to run connectors.

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
πŸ’¬ Discuss
βœ… Correct Answer: (B) A plugin that moves data between Kafka and another system
Explanation: A connector is a pluggable component that transfers data between Kafka and external systems.

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

  • (A) XML
  • (B) JSON
  • (C) YAML
  • (D) Properties
πŸ’¬ Discuss
βœ… Correct Answer: (D) Properties
Explanation: Kafka configuration is typically provided using .properties files.

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
πŸ’¬ Discuss
βœ… Correct Answer: (B) Keeps only the latest value for each key
Explanation: Log compaction retains the last message for each unique key.

Q. Which protocol does Kafka use for communication?

  • (A) HTTP
  • (B) HTTPS
  • (C) TCP
  • (D) UDP
πŸ’¬ Discuss
βœ… Correct Answer: (C) TCP
Explanation: Kafka uses the TCP protocol for communication between clients and brokers.