Learn Labs
12. Administering Kafka

12.12 Self-test

Self-test38 questions

—/38
  1. Why must you restrict access to the CLI tools even if you've configured ACLs?

  2. Why should tool version match broker version, and what's the safest practice?

  3. Give two topic-naming rules and the concrete failure each prevents.

  4. Which of --if-exists / --if-not-exists is recommended, and why is the other dangerous?

  5. Order these by severity and say what each means for producers and consumers: under-replicated, at-min-ISR, under-min-ISR, unavailable.

  6. Why are URPs "not necessarily bad"? What should you actually alert on?

  7. Interpret Replicas: 0,1 Isr: 0 with min-ISR 1. What happens if broker 0 now fails?

  8. Two reasons to add partitions. What breaks when you do, and what's the standing advice?

  9. Why can't you reduce partitions? Give both workarounds.

  10. Why is deleting an unused topic worth doing at all?

  11. What must be true for --delete to work, and how do you confirm it succeeded?

  12. Why should you delete only one or two topics at a time?

  13. Define CURRENT-OFFSET, LOG-END-OFFSET, and LAG precisely.

  14. What must be true to delete a consumer group? What's the alternative if you only want to clear one topic's offsets?

  15. Give the safe six-step offset-reset workflow. What single flag separates export from destruction?

  16. Why won't imported offsets take effect if consumers are running?

  17. Explain the per-broker quota trap with the 5-broker / 10 MBps example.

  18. Why should each consumer group have a unique client.id?

  19. What does --describe on a topic config not show, and which API does show it?

  20. Which topic config fixes Ch. 2's synchronized-segment-roll storm? Which two govern GDPR compaction timing?

  21. What does message.downconversion.enable let you do, and what Ch. 6 problem does that address?

  22. Name three notable broker-level dynamic configs. Why does one of them matter for incident response?

  23. Why does leadership get skewed after a rolling restart, and what are the three remedies?

  24. Distinguish --property, --producer-property, and --consumer-property.

  25. How does the console producer decide the key? What happens with no separator?

  26. Name the four message formatters and one use for each.

  27. Write the command to inspect __consumer_offsets. Name the three non-obvious things it needs.

  28. Walk the three steps of a partition reassignment. Which two files must you save, and why?

  29. What does the controller actually do during a reassignment? What temporarily changes?

  30. What are --additional, --disable-rack-aware, and --throttle for? Which combination is the emergency brake?

  31. Why does moving leadership off a broker before reassignment speed things up? What must you disable temporarily?

  32. How do you change a topic's replication factor? Why doesn't changing the cluster default suffice?

  33. Give both caveats of --cancel.

  34. What does kafka-dump-log.sh --print-data-log show you, and how do its fields map to the v2 batch header from Ch. 6?

  35. Why does replica verification exist — what gap in replication does it detect? What does it cost to run?

  36. When would you delete the /admin/controller znode, and what can't you control about the outcome?

  37. Give both scenarios where topic deletion gets stuck, and the two-part fix.

  38. List the four steps of manual topic deletion. What's the prerequisite, and which child-node gotcha will bite you?

    Previous: Chapter 11 — Securing Kafka Next: Chapter 13 — Monitoring Kafka