Q. Kafka topics can be configured for cleanup using:

  • (A) log.cleanup.policy
  • (B) cleanup.schedule
  • (C) topic.cleaner
  • (D) delete.policy
πŸ’¬ Discuss
βœ… Correct Answer: (A) log.cleanup.policy
Explanation: log.cleanup.policy can be set to 'delete' or 'compact' for data cleanup.

Q. Which Kafka feature allows integration with relational databases?

  • (A) Kafka Streams
  • (B) Kafka Producer API
  • (C) Kafka Connect JDBC connector
  • (D) Kafka MirrorMaker
πŸ’¬ Discuss
βœ… Correct Answer: (C) Kafka Connect JDBC connector
Explanation: Kafka Connect JDBC connector is used to pull/push data from/to relational databases.

Q. Kafka's ISR list includes:

  • (A) Only leader partition
  • (B) All consumers
  • (C) In-sync replicas
  • (D) Producers
πŸ’¬ Discuss
βœ… Correct Answer: (C) In-sync replicas
Explanation: ISR stands for In-Sync Replicas, which are fully up-to-date replicas.

Q. Kafka can encrypt messages using:

  • (A) AES encryption in topics
  • (B) SSL/TLS for data in transit
  • (C) Built-in message secrets
  • (D) Kafka safe mode
πŸ’¬ Discuss
βœ… Correct Answer: (B) SSL/TLS for data in transit
Explanation: Kafka uses SSL/TLS for encrypting data in transit between clients and brokers.

Q. Kafka can be deployed using:

  • (A) On-premise only
  • (B) Cloud only
  • (C) Both cloud and on-premise
  • (D) Mobile devices
πŸ’¬ Discuss
βœ… Correct Answer: (C) Both cloud and on-premise
Explanation: Kafka is flexible and can be deployed on cloud platforms or on-premise infrastructure.

Q. What is the default number of partitions for a Kafka topic?

  • (A) 0
  • (B) 1
  • (C) 3
  • (D) 5
πŸ’¬ Discuss
βœ… Correct Answer: (B) 1
Explanation: If not specified, Kafka creates a topic with 1 partition by default.

Q. Kafka replication ensures:

  • (A) Increased speed
  • (B) Redundancy and fault tolerance
  • (C) Better compression
  • (D) Consumer group expansion
πŸ’¬ Discuss
βœ… Correct Answer: (B) Redundancy and fault tolerance
Explanation: Replication ensures messages survive broker failures by duplicating data.

Q. Kafka relies on which data structure for its core storage?

  • (A) Queue
  • (B) Tree
  • (C) Log
  • (D) Heap
πŸ’¬ Discuss
βœ… Correct Answer: (C) Log
Explanation: Kafka is fundamentally a distributed commit log system.

Q. In Kafka, messages are immutable. This means:

  • (A) They can be edited anytime
  • (B) They are encrypted automatically
  • (C) They cannot be changed once written
  • (D) They are deleted after consumption
πŸ’¬ Discuss
βœ… Correct Answer: (C) They cannot be changed once written
Explanation: Once a message is written to Kafka, it cannot be modified.

Q. Kafka ensures scalability by using:

  • (A) Centralized broker management
  • (B) Topic filtering
  • (C) Partitioning and horizontal scaling
  • (D) Single-threaded consumers
πŸ’¬ Discuss
βœ… Correct Answer: (C) Partitioning and horizontal scaling
Explanation: Kafka uses partitioning to distribute load across brokers and consumers.