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
Which producer configuration controls the maximum time (in ms) a producer will wait before sending a batch of records?
Answer: linger.ms
linger.ms specifies the delay a producer adds before sending a batch, allowing more records to accumulate.
What does setting `acks=all` mean for a Kafka producer?
Answer: The producer waits for acknowledgment from all in-sync replicas
acks=all (or acks=-1) requires the leader to wait for the full set of in-sync replicas to acknowledge the record.
Which consumer configuration determines how frequently the consumer offsets are committed automatically?
Answer: auto.commit.interval.ms
auto.commit.interval.ms sets the frequency (in milliseconds) at which the consumer's offsets are committed when enable.auto.commit is true.
What is the purpose of the `max.poll.records` consumer configuration?
Answer: Limits the maximum number of records returned in a single poll() call
max.poll.records controls the maximum number of records that a single call to poll() will return.
When a Kafka producer sends a message without a key, how is the partition selected?
Answer: Round-robin across available partitions
Without a key, the default partitioner distributes messages in round-robin fashion across all available partitions.
Which setting must be enabled for a Kafka consumer to commit offsets automatically?
Answer: enable.auto.commit=true
enable.auto.commit=true instructs the consumer to automatically commit offsets at the interval specified by auto.commit.interval.ms.
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
- assets.confluent.io — Exam information · verified Oct 2026
- confluent.io — Test delivery, eligibility, exam format, registration deadline, renewal, retake policy, score release, score validity · verified Oct 2026
- training.confluent.io — Fees, time limit · verified Oct 2026