Learn Labs
2. Installing Kafka

2.11 Self-test

Self-test15 questions

—/15
  1. What are the only two config requirements for brokers to form one cluster?

  2. Why 5 ZooKeeper nodes rather than 3, when 3 already tolerates a failure?

  3. Why is vm.swappiness=0 wrong, and when did it become wrong?

  4. Your topic has 7-day retention but you find 17-day-old messages. Explain precisely why, and give two fixes.

  5. log.dirs has three mounts; one is 95% full and the other two are near-empty. Why did Kafka do this?

  6. Why does raising message.max.bytes risk both a stuck consumer and stalled replication?

  7. acks=all is set and the producer got a success response, yet the message is gone. Explain the exact sequence.

  8. What does RF++ mean and what two simultaneous events is it designed to survive?

  9. Why does the broker need CPU at all, given it treats messages as opaque bytes?

  10. Why is colocating another service on a broker a consumer performance problem specifically?

  11. Give the outbound-network formula for sizing a broker's NIC. What term do people forget?

  12. Rack awareness is configured and RF is 3, yet losing one rack took a partition offline. How?

  13. Why does a ZooKeeper hiccup cause errors hours later during an unrelated controlled shutdown?

  14. What are the current per-broker and per-cluster replica ceilings — and why is "replica" not "partition"?

  15. You must set retention to exactly 24 hours for a compliance requirement, on a topic receiving 20 MB/day. What do you configure and why?

    Previous: Chapter 1 — Meet Kafka Next: Chapter 3 — Kafka Producers