Apache Kafka MCQs with answers Page - 28

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. Which Kafka setting determines how often data is flushed to disk?

  • (A) flush.interval.ms
  • (B) retention.ms
  • (C) log.flush.interval.messages
  • (D) log.retention.check.interval.ms

A

Admin • 833.24K Points
Coach

Q. Which Kafka command lists the current consumer groups?

  • (A) kafka-list-groups.sh
  • (B) kafka-consumer-groups.sh --list
  • (C) kafka-consumer-status.sh
  • (D) kafka-topic-groups.sh

A

Admin • 833.24K Points
Coach

Q. Kafka’s default message compression type is:

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

A

Admin • 833.24K Points
Coach

Q. What is the use of the Kafka AdminClient API?

  • (A) Create brokers
  • (B) Manage topics, configurations, and partitions programmatically
  • (C) Consume messages
  • (D) Monitor Kafka memory

A

Admin • 833.24K Points
Coach

Q. What happens if a Kafka topic does not exist when a producer sends data?

  • (A) Error is thrown
  • (B) Topic is auto-created (if enabled)
  • (C) Producer retries indefinitely
  • (D) Message is redirected to another topic

A

Admin • 833.24K Points
Coach

Q. Which command is used to consume messages from a topic?

  • (A) kafka-topic-reader.sh
  • (B) kafka-console-consumer.sh
  • (C) kafka-message-read.sh
  • (D) kafka-reader.sh

A

Admin • 833.24K Points
Coach

Q. Kafka uses what kind of commit for offset management?

  • (A) Soft commit
  • (B) Durable commit
  • (C) Auto or manual commit
  • (D) Transactional commit only

A

Admin • 833.24K Points
Coach

Q. What does `min.insync.replicas` ensure in Kafka?

  • (A) Minimum consumer threads
  • (B) Minimum replicas that must acknowledge a write
  • (C) Minimum retention time
  • (D) Minimum partition count

A

Admin • 833.24K Points
Coach

Q. Kafka is optimized for which type of workloads?

  • (A) Long-term archival
  • (B) High-throughput and low-latency streaming
  • (C) Data warehouse analysis
  • (D) Low-frequency batch updates

A

Admin • 833.24K Points
Coach

Q. What is a Kafka message key used for?

  • (A) Encrypting data
  • (B) Tracking producer IPs
  • (C) Determining the partition for a message
  • (D) Counting offset resets

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