Kafka Architecture & Internals 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 Architecture & Internals flashcards as text
What is the purpose of Kafka's `__consumer_offsets` topic compaction?
Answer: To retain only the latest committed offset per consumer group and partition, keeping the topic size manageable
Log compaction on __consumer_offsets ensures that only the most recent offset commit per (group, topic, partition) key is retained, preventing unbounded growth.
What does `isolation.level=read_committed` do for a Kafka consumer?
Answer: Causes the consumer to skip transactional messages that have not yet been committed, avoiding dirty reads
read_committed isolation level ensures consumers only see messages from committed transactions, hiding in-flight or aborted transactional records.
What is a Kafka 'broker rack' configuration used for?
Answer: Assigns a broker to a rack/availability zone so partition replicas can be spread across failure domains
The broker.rack setting tells Kafka to spread partition replicas across different racks or AZs so that a single rack failure won't take down all replicas of a partition.
What is a 'fetch session' in the Kafka broker's fetch protocol?
Answer: An incremental fetch optimization where the broker caches partition state between fetches, reducing repeated metadata overhead
Fetch sessions (incremental fetch) allow the broker and consumer to maintain a session so that the fetch request only needs to include changed partitions, reducing network overhead.
What is the significance of `max.in.flight.requests.per.connection` in a Kafka producer?
Answer: Controls how many unacknowledged requests can be in flight simultaneously; setting it to 1 preserves ordering under retries
If retries > 0 and max.in.flight.requests.per.connection > 1, a retry can cause message reordering; setting it to 1 guarantees order at the cost of throughput.
What metric best indicates a Kafka broker is under memory pressure?
Answer: High page cache miss rate (increased disk read I/O)
Kafka relies heavily on the OS page cache; if the working set exceeds available memory, page cache misses cause disk reads and severely degrade throughput.
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