DE Mastery GitHub

Apache Kafka · KFK-10

Testing & observability (apps)

From your world. dbt test + CI gates, and the lag/freshness monitors you already run on a warehouse

Practice quiz with instant feedback. For a scored run that counts toward your local progress, use uv run de quiz KFK-10.

1How is the lag of a consumer group for a partition defined?
2Why compute lag from the COMMITTED offset and not from the current in-memory position of the consumer?
3A nightly batch producer feeds a topic. Every night lag spikes to 50,000 and then drains to 0 within an hour. What is the best alerting rule?
4Which layer of the Kafka testing pyramid runs a Kafka Streams topology in-process with NO broker and NO RocksDB?
5Which of these should live in the FAST unit layer (plain data, no broker) and not in an integration test? (Select all that apply.) (select all that apply)
6You want to read the committed offsets of a consumer group and the end offsets of the partitions WITHOUT joining the group. Which admin APIs do that?
7A consumer group shows a high rebalance rate and growing lag. Which configuration is the most likely cause?
8Why make the alert RULE itself a pure, tested function and not only wire it into a dashboard?