Q. Kafka can be used for:

  • (A) Email scheduling
  • (B) Real-time analytics
  • (C) Desktop app design
  • (D) UI rendering
πŸ’¬ Discuss
βœ… Correct Answer: (B) Real-time analytics
Explanation: Kafka is ideal for real-time analytics and stream processing.

Q. Kafka messages are immutable, meaning:

  • (A) They can be changed anytime
  • (B) They are encrypted
  • (C) They cannot be modified after writing
  • (D) They are stored temporarily
πŸ’¬ Discuss
βœ… Correct Answer: (C) They cannot be modified after writing
Explanation: Kafka messages are immutable and append-only.

Q. What does Kafka's 'linger.ms' setting control?

  • (A) Message timeout
  • (B) Consumer wait time
  • (C) Delay before sending a batch
  • (D) Retention period
πŸ’¬ Discuss
βœ… Correct Answer: (C) Delay before sending a batch
Explanation: 'linger.ms' is used to wait a specified time before sending a batch to improve efficiency.

Q. Which of the following can automatically scale Kafka workloads?

  • (A) ZooKeeper
  • (B) Kubernetes
  • (C) Kafka Connect
  • (D) Kafka Streams
πŸ’¬ Discuss
βœ… Correct Answer: (B) Kubernetes
Explanation: Kubernetes can scale Kafka workloads automatically by managing pods and resources.

Q. Which of these guarantees is strongest in Kafka by default?

  • (A) At-most-once
  • (B) At-least-once
  • (C) Exactly-once
  • (D) Real-time-only
πŸ’¬ Discuss
βœ… Correct Answer: (B) At-least-once
Explanation: Kafka provides at-least-once delivery by default.

Q. Kafka logs are stored in:

  • (A) RAM only
  • (B) Cloud storage
  • (C) Broker local disk
  • (D) Zookeeper nodes
πŸ’¬ Discuss
βœ… Correct Answer: (C) Broker local disk
Explanation: Kafka stores logs on the local disk of each broker.

Q. What is the main purpose of a Kafka broker?

  • (A) Generate messages
  • (B) Store and distribute messages
  • (C) Connect external systems
  • (D) Display UI messages
πŸ’¬ Discuss
βœ… Correct Answer: (B) Store and distribute messages
Explanation: Kafka brokers are responsible for storing and distributing topic messages.

Q. Kafka topics can be divided into multiple:

  • (A) Consumers
  • (B) Producers
  • (C) Partitions
  • (D) Clusters
πŸ’¬ Discuss
βœ… Correct Answer: (C) Partitions
Explanation: Kafka topics are split into partitions for scalability and parallelism.

Q. Kafka Connect is used for:

  • (A) Real-time stream processing
  • (B) Security and authorization
  • (C) Connecting Kafka with external systems
  • (D) Monitoring system load
πŸ’¬ Discuss
βœ… Correct Answer: (C) Connecting Kafka with external systems
Explanation: Kafka Connect integrates Kafka with external sources and sinks.

Q. Kafka producers send data to:

  • (A) Zookeeper nodes
  • (B) Kafka topics via brokers
  • (C) Consumer groups
  • (D) Kafka logs
πŸ’¬ Discuss
βœ… Correct Answer: (B) Kafka topics via brokers
Explanation: Producers send messages to topics via Kafka brokers.