← All Apache Kafka Flashcard Decks

Kafka Topics & Partitions 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 Topics & Partitions flashcards as text
  1. What is a Kafka 'leader' partition?

    Answer: The single replica that handles all reads and writes for a partition

    Each partition has exactly one leader replica that handles all producer writes and (by default) consumer reads; followers replicate from it.

  2. What does 'log compaction' do in a Kafka topic?

    Answer: Retains only the latest message for each key, removing older duplicates

    Log compaction ensures that for each key, only the most recent message value is retained, acting like an upsert store for change-data-capture use cases.

  3. What is the purpose of the `__consumer_offsets` internal topic in Kafka?

    Answer: Stores committed consumer group offsets so consumers can resume after restart

    __consumer_offsets is an internal Kafka topic that durably stores the committed offsets for all consumer groups.

  4. What is an ISR (In-Sync Replica) set?

    Answer: The set of replicas that are fully caught up with the leader's log

    The ISR is the subset of a partition's replicas that have replicated all messages up to a configurable threshold and are considered 'caught up' with the leader.

  5. What command lists all topics in a Kafka cluster?

    Answer: kafka-topics.sh --bootstrap-server --list

    kafka-topics.sh --list with --bootstrap-server connects to the cluster and lists all existing topic names.

  6. What is the impact of increasing the number of partitions on a topic that already has consumers?

    Answer: It triggers a consumer group rebalance as partitions are redistributed

    Adding partitions to a topic causes the group coordinator to initiate a rebalance so that the new partitions are assigned to consumer group members.

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