← All Apache Kafka Flashcard Decks

Kafka Producers & Consumers Flashcards

6 cards from real Apache Kafka practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 6 Kafka Producers & Consumers flashcards as text
  1. What is a 'consumer lag' in Kafka?

    Answer: The difference between the latest produced offset and the consumer's current offset

    Consumer lag measures how far behind a consumer group is relative to the latest messages produced in a partition.

  2. What does the `fetch.min.bytes` consumer configuration control?

    Answer: Minimum data the broker returns in a fetch response before sending

    fetch.min.bytes tells the broker to wait until at least that many bytes are available before responding to a fetch request, reducing round trips.

  3. Which of the following accurately describes a 'sticky partitioner' for producers?

    Answer: It sends all batched messages to the same partition until the batch is full or linger.ms expires

    The sticky partitioner batches records to a single partition until the batch is full or linger.ms fires, then switches, reducing the number of small batches.

  4. When using `assign()` instead of `subscribe()`, what is the consumer responsible for?

    Answer: Manually managing partition assignment without group coordinator involvement

    assign() gives the consumer direct control over which partitions it reads, bypassing the group coordinator and rebalance protocol entirely.

  5. What type of serializer is required when the producer message key is a String?

    Answer: org.apache.kafka.common.serialization.StringSerializer

    StringSerializer converts Java String keys/values to bytes, and is the standard serializer when working with string-typed keys.

  6. What is the effect of setting `retries=0` on a Kafka producer?

    Answer: The producer will not retry failed sends, potentially losing messages on transient errors

    retries=0 disables automatic retry on send failure, meaning any transient network error will result in a lost or failed message.

How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy

Sources & references

Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy

  1. assets.confluent.io — Exam information · verified Oct 2026
  2. confluent.io — Test delivery, eligibility, exam format, registration deadline, renewal, retake policy, score release, score validity · verified Oct 2026
  3. training.confluent.io — Fees, time limit · verified Oct 2026