Kafka Interview Prep Quiz Welcome to your Kafka Quiz 1. Kafka Which method fetches records from Kafka? Choose the correct answer.Deselect Answer produce() send() consume() poll() None 2. Kafka What happens during consumer group rebalancing? Choose the correct answer.Deselect Answer Topics are deleted Messages are compressed Brokers restart Partitions are reassigned among consumers None 3. Kafka Who reads messages from Kafka? Choose the correct answer.Deselect Answer Schema Registry Consumer Producer Broker None 4. Kafka What enables idempotent producer? Choose the correct answer.Deselect Answer enable.idempotence=true linger.ms=0 acks=0 compression.type=none None 5. Kafka Which compression codec is commonly supported? Choose the correct answer.Deselect Answer ZIPX RAR BZIP1 Snappy None 6. Kafka Which tool is commonly used to monitor Kafka consumer lag? Choose the correct answer.Deselect Answer Burrow Jenkins Nexus Tomcat None 7. Kafka Consumer auto commit means? Choose the correct answer.Deselect Answer Topics created automatically Partitions increase automatically Messages deleted automatically Offsets are committed automatically None 8. Kafka Exactly-once semantics require? Choose the correct answer.Deselect Answer Only partitions Only compression Only retries Idempotent producer and transactions None 9. Kafka Kafka is best for? Choose the correct answer.Deselect Answer Image editing SQL reporting Email High-throughput event streaming None 10. Kafka Compression in Kafka primarily helps? Choose the correct answer.Deselect Answer Increase partitions Reduce network and storage usage Improve ordering Disable retries None 11. Kafka Which producer setting controls maximum batch size? Choose the correct answer.Deselect Answer acks batch.size linger.ms retries None 12. Kafka Kafka primarily follows which architecture? Choose the correct answer.Deselect Answer MVC Peer-to-Peer Publish-Subscribe Client-Server only None 13. Kafka Kafka in microservices mainly provides? Choose the correct answer.Deselect Answer Image storage REST hosting Database replacement Asynchronous loose coupling None 14. Kafka Which partitioner is used by default when a key is present? Choose the correct answer.Deselect Answer Round Robin Sticky only Random Hash-based partitioner None 15. Kafka Schema Registry commonly works with? Choose the correct answer.Deselect Answer CSV Avro HTML XML None 16. Kafka Idempotent producer mainly prevents? Choose the correct answer.Deselect Answer Partition reassignment Consumer lag Duplicate writes due to retries Topic deletion None 17. Kafka Consumer lag is calculated as? Choose the correct answer.Deselect Answer Latest offset - Consumer committed offset ISR count Topic size Partition count None 18. Kafka Retention can be based on? Choose the correct answer.Deselect Answer Topic name Broker ID Time or size Consumers None 19. Kafka What does linger.ms control? Choose the correct answer.Deselect Answer Message retention Consumer timeout Broker startup How long producer waits before sending a batch None 20. Kafka Kafka Connect is for? Choose the correct answer.Deselect Answer External system integration Monitoring API Gateway Caching None 21. Kafka Can offsets be committed manually? Choose the correct answer.Deselect Answer Only in Java No Yes Only by broker None 22. Kafka What uniquely identifies a message in a partition? Choose the correct answer.Deselect Answer Key Topic Offset Header None 23. Kafka ISR stands for? Choose the correct answer.Deselect Answer In-Sync Replicas Integrated Sync Requests Indexed Stream Records Internal Service Router None 24. Kafka Deserializer is used by? Choose the correct answer.Deselect Answer Broker Producer Consumer ZooKeeper None 25. Kafka Which API allows manual offset commits? Choose the correct answer.Deselect Answer commitSync() send() subscribe() poll() None 26. Kafka Who writes messages to Kafka? Choose the correct answer.Deselect Answer Producer ZooKeeper Broker Consumer None 27. Kafka Why use manual offset commits? Choose the correct answer.Deselect Answer Better control over message processing Increase partitions Reduce replication Avoid serialization None 28. Kafka Message ordering is guaranteed within? Choose the correct answer.Deselect Answer Consumer group A single partition All partitions Entire cluster None 29. Kafka acks=all means? Choose the correct answer.Deselect Answer No acknowledgement Leader waits for all ISR acknowledgements Leader only Async only None 30. Kafka Without a key, Kafka producer generally distributes records using? Choose the correct answer.Deselect Answer Consumer groups Sticky partitioning (modern clients) Hash partitioning Always partition 0 None Loading questions... Loading questions... Please fill in the comment box below. Previous Start Quiz Next Time's up