
































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

































2026 Edition Apache Kafka Developer Practice Exam (Producers, Consumers, Streams, Connect, Operations, Security) - 300 Original Questions with Answers |
Exam Overview This original practice exam covers Kafka fundamentals, producers, consumers and groups, Kafka Streams, Kafka Connect and schemas, cluster operations, security, reliability and delivery semantics, and scenario judgement. It is not an official Confluent exam and does not reproduce proprietary content. Defaults change between versions, so please confirm details against current Kafka documentation. Exam Apache Kafka Developer Practice Exam (Producers, Consumers, Streams, Connect, Operations, Security) - 300 Original Questions with Answers Intended for Developers and engineers studying Apache Kafka and event streaming concepts Number of questions 300 multiple-choice (four options, one best answer) Content areas 9 Suggested time 5 hours (about 60 seconds per question) Suggested passing target 80% or higher (240 of 300) Answer format The correct answer and explanation appear directly after each question
Content area Questions Share of exam Kafka Fundamentals 33 11% Producers 33 11% Consumers and Groups 33 11% Kafka Streams and ksqlDB 33 11% Kafka Connect and Schemas 33 11% Cluster Operations 33 11% Security 33 11% Reliability and Delivery Semantics 33 11% Scenarios and Best Practices 36 12%
Cover the answer lines with a sheet of paper and attempt each question before checking. Work one content area at a time, or take all questions in one timed sitting to simulate test day. Mark every question you miss or guess on, then reread its explanation and the related reference material. Repeat the missed questions after a few days; aim to explain why each wrong option is wrong.
General Apache Kafka concepts (confirm against current Kafka documentation) Note: This is an independent practice resource written to the published content areas for this exam. It is not affiliated with or endorsed by the testing organization, and it does not contain actual exam questions. Laws, codes, fees and guidelines change; confirm current requirements with the official candidate handbook and references. Apache Kafka Developer Practice Exam (Producers, Consumers, Streams, Connect, Operations, Security) - 300 Original Questions with Answers |
Section 1: Kafka Fundamentals
1. Kafka is a: A. Relational database B. Web browser C. Distributed event streaming platform D. Stored cluster metadata Correct answer: C. Distributed event streaming platform Explanation: Fun. 2. A topic is: A. A named stream of records B. A server C. A user D. A bill Correct answer: A. A named stream of records Explanation: Fun. 3. A partition is: A. Number of copies of each partition B. An ordered, append-only log segment of a topic C. Helps Kafka serve reads efficiently D. Treats data as an immutable log Correct answer: B. An ordered, append-only log segment of a topic Explanation: Fun. 4. An offset is: A. A Kafka server that stores and serves data B. Number of copies of each partition C. Separates write and read models using events D. A unique position of a record in a partition Correct answer: D. A unique position of a record in a partition Explanation: Fun. 5. A broker is: A. A Kafka server that stores and serves data B. gzip, snappy, lz4 and zstd C. Key, value, timestamp and headers D. Creates new segments by size or time Correct answer: A. A Kafka server that stores and serves data Explanation: Fun. Apache Kafka Developer Practice Exam (Producers, Consumers, Streams, Connect, Operations, Security) - 300 Original Questions with Answers |
6. A cluster is: A. A single client B. A user C. A bill D. A group of brokers Correct answer: D. A group of brokers Explanation: Fun. 7. Records contain: A. Only value B. Only key C. Key, value, timestamp and headers D. Only offset Correct answer: C. Key, value, timestamp and headers Explanation: Fun. 8. Ordering is guaranteed: A. Across all partitions B. Within a partition C. Across topics D. Can break key-based ordering assumptions Correct answer: B. Within a partition Explanation: Fun. 9. Replication factor defines: A. Number of topics B. Number of users C. Number of copies of each partition D. Number of bills Correct answer: C. Number of copies of each partition Explanation: Fun. 10. A leader replica: A. Is a client B. Is a user C. Is a bill D. Handles reads and writes for a partition Correct answer: D. Handles reads and writes for a partition Explanation: Fun. Apache Kafka Developer Practice Exam (Producers, Consumers, Streams, Connect, Operations, Security) - 300 Original Questions with Answers |
16. Tombstone record: A. Has a null key B. A unique position of a record in a partition C. Is a bill D. Has a null value to delete a key in compaction Correct answer: D. Has a null value to delete a key in compaction Explanation: Fun. 17. KRaft mode: A. Needs ZooKeeper B. Is a client C. Is a bill D. Uses Kafka's own consensus for metadata Correct answer: D. Uses Kafka's own consensus for metadata Explanation: Fun. 18. ZooKeeper historically: A. Stored records B. Stored cluster metadata C. Was a client D. Was a bill Correct answer: B. Stored cluster metadata Explanation: Fun. 19. Controller: A. Manages partition leadership and metadata B. Is a client C. Is a user D. Is a bill Correct answer: A. Manages partition leadership and metadata Explanation: Fun. 20. Segment files: A. Reduces network and storage usage B. Handles reads and writes for a partition C. Are chunks of a partition log on disk D. An ordered, append-only log segment of a topic Correct answer: C. Are chunks of a partition log on disk Explanation: Fun. Apache Kafka Developer Practice Exam (Producers, Consumers, Streams, Connect, Operations, Security) - 300 Original Questions with Answers |
21. Segment rolling: A. Deletes topics B. Creates new segments by size or time C. A unique position of a record in a partition D. Is key to Kafka's throughput Correct answer: B. Creates new segments by size or time Explanation: Fun. 22. Page cache: A. Helps Kafka serve reads efficiently B. Is a client C. Is a user D. Is a bill Correct answer: A. Helps Kafka serve reads efficiently Explanation: Fun. 23. Sequential disk I/O: A. Slows Kafka B. Is a bill C. Is none D. Is key to Kafka's throughput Correct answer: D. Is key to Kafka's throughput Explanation: Fun. 24. Zero-copy: A. Copies many times B. Is a bill C. Transfers data from disk to network efficiently D. Is none Correct answer: C. Transfers data from disk to network efficiently Explanation: Fun. 25. Batching: A. Improves throughput B. Reduces throughput C. Is a bill D. Is none Correct answer: A. Improves throughput Explanation: Fun. Apache Kafka Developer Practice Exam (Producers, Consumers, Streams, Connect, Operations, Security) - 300 Original Questions with Answers |
31. Decreasing partitions: A. Is not supported B. Is supported C. Is a bill D. Is none Correct answer: A. Is not supported Explanation: Fun. 32. Message size limits: A. Are fixed B. Are a bill C. Are none D. Are configurable on broker and topic Correct answer: D. Are configurable on broker and topic Explanation: Fun. 33. Large messages: A. Are encouraged B. Are a bill C. Are none D. Are generally discouraged Correct answer: D. Are generally discouraged Explanation: Fun. Apache Kafka Developer Practice Exam (Producers, Consumers, Streams, Connect, Operations, Security) - 300 Original Questions with Answers |
Section 2: Producers
34. A producer: A. Writes records to topics B. Reads records C. Stores records D. Prints records Correct answer: A. Writes records to topics Explanation: Pro. 35. Partitioner decides: A. Which user reads B. Which bill C. Which partition a record goes to D. Which server prints Correct answer: C. Which partition a record goes to Explanation: Pro. 36. Records with the same key: A. Go to random partitions B. Go to the same partition by default C. Are dropped D. Are printed Correct answer: B. Go to the same partition by default Explanation: Pro. 37. Null keys: A. Are distributed across partitions B. Go to one partition always C. Are dropped D. Are printed Correct answer: A. Are distributed across partitions Explanation: Pro. 38. acks=0: A. Waits for all replicas B. Waits for leader C. Does not wait for broker acknowledgment D. Result from skewed keys Correct answer: C. Does not wait for broker acknowledgment Explanation: Pro. Apache Kafka Developer Practice Exam (Producers, Consumers, Streams, Connect, Operations, Security) - 300 Original Questions with Answers |
44. Enable idempotence: A. Gives none B. Does not wait for broker acknowledgment C. Identifies a transactional producer across restarts D. Gives per-partition exactly-once writes Correct answer: D. Gives per-partition exactly-once writes Explanation: Pro. 45. Transactions: A. Allow atomic writes across partitions and topics B. Allow only one write C. Waits to fill batches before sending D. Can be create time or log append time Correct answer: A. Allow atomic writes across partitions and topics Explanation: Pro. 46. transactional.id: A. Identifies users B. Identifies servers C. Identifies a transactional producer across restarts D. Identifies bills Correct answer: C. Identifies a transactional producer across restarts Explanation: Pro. 47. batch.size: A. Limits topics B. Limits batch memory per partition C. Limits users D. Limits bills Correct answer: B. Limits batch memory per partition Explanation: Pro. 48. linger.ms: A. Deletes batches B. Are distributed across partitions C. Result from skewed keys D. Waits to fill batches before sending Correct answer: D. Waits to fill batches before sending Explanation: Pro. Apache Kafka Developer Practice Exam (Producers, Consumers, Streams, Connect, Operations, Security) - 300 Original Questions with Answers |
49. buffer.memory: A. Limits topics B. Limits total memory for unsent records C. Limits users D. Limits bills Correct answer: B. Limits total memory for unsent records Explanation: Pro. 50. max.in.flight.requests: A. Limits unacknowledged requests per connection B. Limits topics C. Limits users D. Limits bills Correct answer: A. Limits unacknowledged requests per connection Explanation: Pro. 51. Ordering with retries: A. Is automatic always B. Is a bill C. Needs idempotence or limited in-flight requests D. Is none Correct answer: C. Needs idempotence or limited in-flight requests Explanation: Pro. 52. compression.type: A. Sets topics B. Sets users C. Sets bills D. Sets batch compression Correct answer: D. Sets batch compression Explanation: Pro. 53. Serializers: A. Convert bytes to objects B. Does not wait for broker acknowledgment C. Convert objects to bytes D. Validates and registers schemas Correct answer: C. Convert objects to bytes Explanation: Pro. Apache Kafka Developer Practice Exam (Producers, Consumers, Streams, Connect, Operations, Security) - 300 Original Questions with Answers |
59. Flush: A. Deletes records B. Gives per-partition exactly-once writes C. Sets minimum ISR needed for acks=all writes D. Blocks until buffered records are sent Correct answer: D. Blocks until buffered records are sent Explanation: Pro. 60. close: A. Deletes topics B. Releases producer resources C. Serializes the record value D. Gives per-partition exactly-once writes Correct answer: B. Releases producer resources Explanation: Pro. 61. Delivery timeout: A. Bounds topics B. Bounds users C. Bounds bills D. Bounds total time to deliver a record Correct answer: D. Bounds total time to deliver a record Explanation: Pro. 62. Request timeout: A. Bounds topics B. Bounds users C. Bounds time waiting for a response D. Bounds bills Correct answer: C. Bounds time waiting for a response Explanation: Pro. 63. Metadata refresh: A. Deletes data B. Updates leader and partition info C. Waits for all in-sync replicas D. Uses mock producers or test clusters Correct answer: B. Updates leader and partition info Explanation: Pro. Apache Kafka Developer Practice Exam (Producers, Consumers, Streams, Connect, Operations, Security) - 300 Original Questions with Answers |
64. Custom partitioners: A. Implement custom routing logic B. Delete routing C. Limits total memory for unsent records D. Can be create time or log append time Correct answer: A. Implement custom routing logic Explanation: Pro. 65. Hot partitions: A. Result from uniform keys B. Are a bill C. Result from skewed keys D. Are none Correct answer: C. Result from skewed keys Explanation: Pro. 66. Headers: A. Carry topics B. Carry metadata with records C. Carry users D. Carry bills Correct answer: B. Carry metadata with records Explanation: Pro. Apache Kafka Developer Practice Exam (Producers, Consumers, Streams, Connect, Operations, Security) - 300 Original Questions with Answers |
72. Rebalancing: A. Deletes partitions B. Leaves some consumers idle C. Limits records per poll D. Reassigns partitions among members Correct answer: D. Reassigns partitions among members Explanation: Con. 73. Rebalance triggers include: A. Only joins B. Members joining or leaving C. Only leaves D. Convert bytes to objects Correct answer: B. Members joining or leaving Explanation: Con. 74. Group coordinator: A. Writes records B. Is a user C. Manages group membership D. Is a bill Correct answer: C. Manages group membership Explanation: Con. 75. Eager rebalancing: A. Revokes all partitions then reassigns B. Revokes none C. Is a bill D. Is none Correct answer: A. Revokes all partitions then reassigns Explanation: Con. 76. Cooperative rebalancing: A. Moves all B. Is a bill C. Is none D. Moves only needed partitions incrementally Correct answer: D. Moves only needed partitions incrementally Explanation: Con. Apache Kafka Developer Practice Exam (Producers, Consumers, Streams, Connect, Operations, Security) - 300 Original Questions with Answers |
77. Static membership: A. Reduces rebalances on restarts B. Increases rebalances C. Is a bill D. Is none Correct answer: A. Reduces rebalances on restarts Explanation: Con. 78. Heartbeats: A. Delete consumers B. Commits before processing C. Signal consumer liveness D. Uses wakeup and close Correct answer: C. Signal consumer liveness Explanation: Con. 79. session.timeout.ms: A. Detects failed topics B. Detects failed consumers C. Detects users D. Detects bills Correct answer: B. Detects failed consumers Explanation: Con. 80. max.poll.interval.ms: A. Bounds topics B. Bounds users C. Bounds bills D. Bounds time between polls Correct answer: D. Bounds time between polls Explanation: Con. 81. poll(): A. Deletes records B. Decide partition assignment strategy C. Routes failed records elsewhere D. Fetches records and drives group membership Correct answer: D. Fetches records and drives group membership Explanation: Con. Apache Kafka Developer Practice Exam (Producers, Consumers, Streams, Connect, Operations, Security) - 300 Original Questions with Answers |