Apache Kafka MCQs with answers Page - 21

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. Kafka does not delete messages immediately after consumption because:

  • (A) It lacks a deletion mechanism
  • (B) It stores all logs in memory
  • (C) It follows a retention-based model
  • (D) ZooKeeper needs access

A

Admin • 833.24K Points
Coach

Q. In Kafka, 'throughput' typically refers to:

  • (A) Message priority
  • (B) Messages per second
  • (C) Latency
  • (D) Number of topics

A

Admin • 833.24K Points
Coach

Q. Kafka's Streams API is used for:

  • (A) Topic replication
  • (B) Monitoring brokers
  • (C) Stream processing within applications
  • (D) Topic compression

A

Admin • 833.24K Points
Coach

Q. Kafka Connect includes which types of connectors?

  • (A) Mirror and Aggregator
  • (B) Database and Filesystem
  • (C) Source and Sink
  • (D) Input and Output

A

Admin • 833.24K Points
Coach

Q. Which configuration determines how Kafka handles log cleanup?

  • (A) log.cleanup.policy
  • (B) cleanup.ms
  • (C) log.check.interval
  • (D) retention.policy.ms

A

Admin • 833.24K Points
Coach

Q. Kafka's message keys are used to:

  • (A) Encrypt messages
  • (B) Determine topic name
  • (C) Determine partitioning
  • (D) Set offset values

A

Admin • 833.24K Points
Coach

Q. Kafka consumers can manage offsets manually or:

  • (A) Ignore offsets
  • (B) Use ZooKeeper directly
  • (C) Use automatic offset commits
  • (D) Push to producers

A

Admin • 833.24K Points
Coach

Q. Kafka’s 'exactly-once' guarantee works best when:

  • (A) Replication is disabled
  • (B) Idempotence and transactions are enabled
  • (C) Acks=0
  • (D) Consumer lag is zero

A

Admin • 833.24K Points
Coach

Q. Kafka partitions can be reassigned to brokers using:

  • (A) Zookeeper scripts
  • (B) Kafka Streams API
  • (C) Kafka-reassign-partitions.sh
  • (D) Consumer config

A

Admin • 833.24K Points
Coach

Q. Kafka MirrorMaker is used for:

  • (A) Encrypting topics
  • (B) Mirroring data between clusters
  • (C) Stream joining
  • (D) Compacting logs

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