Kafka

0%
Theory
Quiz

    Fundamentals & Use Cases

    • Why is Kafka so popular, and what are the key benefits of Apache Kafka over other traditional techniques?

      Junior
    • What is Apache Kafka, and what are its primary use cases?

      Junior
    • Why is Kafka preferred to REST for certain use cases?

      Junior
    • Can you explain 3 to 5 important features of Kafka?

      Junior
    • Can Kafka be used for real-time data processing?

      Junior
    • What are the origins of Kafka at LinkedIn, and what problem was it originally built to solve?

      Junior
    • Why is Kafka used in microservices architecture?

      Mid
    • How has Kafka usage changed by 2026?

      Mid
    • What is Change Data Capture (CDC) in the context of Kafka?

      Mid
    • How does Kafka compare to Amazon SQS/SNS, and when would you choose one over the other?

      Mid
    • How does Kafka fit into an event sourcing architecture as the source of truth log?

      Senior

    Topics & Partitions

    • What is a Kafka topic, and how is it structured?

      Junior
    • How does partitioning improve scalability?

      Junior
    • What is a topic in Kafka, and how does it differ from a partition?

      Junior
    • What is a Kafka partition key?

      Junior
    • Can partition count be increased?

      Junior
    • What is the role of partitions in Kafka, and how do they affect scalability, ordering, and parallelism?

      Mid
    • How does Kafka guarantee message ordering?

      Mid
    • Can partition count be decreased?

      Mid
    • Why is there no global ordering guarantee across partitions in Kafka, only per-partition ordering?

      Mid
    • How would you choose the optimal number of partitions for a Kafka topic, and what are the trade-offs of increasing or decreasing partitions?

      Senior

    Producers

    • What is a Kafka producer?

      Junior
    • How does a Kafka Producer determine which partition to send a message to, and what are the different partitioning strategies?

      Mid
    • What are the most important configurations for Kafka producers?

      Mid
    • How do Kafka producers achieve fault tolerance?

      Mid
    • What is the sticky partitioner, and how does it differ from the default key-hash and round-robin partitioning?

      Mid

    Consumers & Consumer Groups

    • What is a Kafka consumer?

      Junior
    • What happens if there are more consumers than partitions?

      Junior
    • What is a Consumer Group, and how does it enable parallel processing and scalability?

      Mid
    • Explain the difference between Kafka's high-level and low-level consumer APIs.

      Mid
    • Explain the consumer pull model in Kafka.

      Mid
    • What is the difference between using subscribe() and assign() in a Kafka consumer?

      Mid
    • What strategies can be used for Kafka consumer group management?

      Senior
    • What does the consumer isolation.level (read_committed vs read_uncommitted) control?

      Senior

    Offsets Records & Log Internals

    • What is an Offset in Kafka?

      Junior
    • What information does a Kafka record contain beyond key and value, and what are headers used for?

      Junior
    • What is consumer offset, and how is it managed in Kafka?

      Mid
    • What is the difference between CreateTime and LogAppendTime for a Kafka record's timestamp?

      Mid
    • What is the difference between the log-end-offset and the high watermark?

      Mid
    • What is the __consumer_offsets topic, and how does Kafka use it to store consumer offsets?

      Mid
    • What is the Last Stable Offset (LSO), and how does it relate to transactions and consumer visibility?

      Senior
    • What are the .index and .timeindex files in a Kafka log segment, and what purpose do they serve?

      Senior

    Architecture & Cluster Components

    • What is the role of a Kafka broker?

      Junior
    • What are bootstrap servers, and how does a client discover the rest of the Kafka cluster?

      Junior
    • What are the core components of Kafka, and how do they interact?

      Mid
    • What happens if a Kafka broker goes down?

      Mid
    • What is the fundamental architecture of Apache Kafka and how does it differ from traditional message brokers?

      Mid
    • What is the Kafka Controller, and what are its responsibilities?

      Senior
    • What is preferred leader election, and why does Kafka perform automatic leader rebalancing?

      Senior

    Kafka Connect

    • Explain the difference between Source and Sink connectors.

      Junior
    • What serialization formats are supported by Kafka Connect?

      Junior
    • What is Kafka Connect, why was it introduced, and how does it differ from writing custom producers/consumers?

      Mid
    • How does Kafka Connect manage offsets for connectors?

      Mid
    • What is the role of converters in Kafka Connect?

      Mid
    • What are Single Message Transforms (SMTs), and when would you use them?

      Mid
    • What is a connector, task, and worker in Kafka Connect?

      Mid
    • What is a Dead Letter Queue (DLQ) in Kafka Connect, and when would you use it?

      Mid
    • What are Kafka connectors, and how are they used to integrate with external systems?

      Mid
    • What are Kafka Connect and Kafka Streams?

      Mid
    • Why does Kafka Connect run as a separate service?

      Mid
    • Can Kafka Connect produce duplicates?

      Mid
    • What is the difference between JsonConverter and AvroConverter in Kafka Connect?

      Mid
    • Can Kafka Connect work without Schema Registry?

      Mid
    • What are tombstone records used for in Kafka Connect?

      Mid
    • What is the difference between standalone and distributed mode in Kafka Connect?

      Mid
    • Does Kafka Connect support exactly-once semantics?

      Senior
    • What delivery guarantees does Kafka Connect provide?

      Senior
    • How does Kafka Connect avoid data loss?

      Senior
    • How do you ensure idempotency in sinks with Kafka Connect?

      Senior
    • When should you not use SMTs?

      Senior
    • How does schema evolution work with Kafka Connect?

      Senior

    Change Data Capture

    • What database logs does CDC read?

      Mid
    • How are updates represented in CDC?

      Mid
    • How are deletes handled in CDC?

      Mid
    • How does Debezium work with Kafka Connect?

      Senior

    Replication & Durability

    • What is replication factor?

      Junior
    • How does Kafka ensure fault tolerance and data durability?

      Mid
    • Explain the role of Leader and Follower replicas in a Kafka partition.

      Mid
    • Explain the replication mechanism in Kafka.

      Mid
    • How can you increase the replication factor in Kafka?

      Mid
    • What are under-replicated and offline partitions, and what do they indicate about cluster health?

      Mid
    • What is the In-Sync Replica (ISR) set, and why is it important for durability and availability?

      Senior
    • What is the High Watermark, and how does it relate to message visibility and durability?

      Senior
    • What is a replication tool in Kafka and what are some of the replication tools available?

      Senior
    • What is min.insync.replicas, and how does it interact with acks=all to guarantee durability?

      Senior
    • What is unclean leader election, and what is the trade-off between availability and durability it represents?

      Senior

    Delivery Semantics & Transactions

    • What is at-least-once delivery in Kafka?

      Junior
    • How do you handle duplicate messages in Kafka?

      Mid
    • What is exactly-once semantics in Kafka?

      Mid
    • What is the difference between at-least-once and exactly-once semantics in Kafka?

      Mid
    • Explain the three message delivery semantics in Kafka (at-most-once, at-least-once, exactly-once) and how Kafka achieves each.

      Senior
    • What are Kafka Transactions, and how are they used to achieve exactly-once semantics in read-process-write loops?

      Senior
    • Why can duplicates still happen even when Kafka's exactly-once semantics is enabled, especially with external systems?

      Senior
    • What is the transaction coordinator, and how does it manage a Kafka transaction's lifecycle?

      Senior
    • What is the role of the transactional.id in Kafka transactions, and why is it important for fencing zombie producers?

      Senior

    Producer Config & Idempotence

    • What is message compression in Kafka, and why is it used?

      Junior
    • What is producer acknowledgement (acks)?

      Junior
    • Explain the acks parameter in a Kafka Producer and the trade-offs between acks=0, acks=1, and acks=all.

      Mid
    • What is an Idempotent Producer, and how does it prevent duplicate messages?

      Mid
    • How do Kafka Producers handle message batching and compression, and what are the relevant configurations?

      Mid
    • What is the role of batch size and linger.ms in Kafka producer performance?

      Mid
    • What does delivery.timeout.ms control in a Kafka producer, and how does it relate to retries?

      Mid
    • What is the role of buffer.memory in a Kafka producer, and what happens when it fills up?

      Mid
    • How does max.in.flight.requests.per.connection affect message ordering, especially with retries?

      Senior
    • How do producer IDs and sequence numbers enable idempotent delivery under the hood?

      Senior

    Consumer Rebalancing & Offset Management

    • How do consumers manage offsets, and what is the difference between auto-commit and manual commit (sync/async)?

      Mid
    • When would you use auto.offset.reset with earliest, latest, or none?

      Mid
    • How does max.poll.records affect consumer behavior and rebalancing?

      Mid
    • What can you do with the kafka-consumer-groups CLI tool for inspecting or resetting offsets?

      Mid
    • What is a consumer rebalance, what triggers it, and why can it be disruptive?

      Senior
    • What is static group membership, and when would you use it?

      Senior
    • How does Kafka handle backpressure?

      Senior
    • What is the difference between eager rebalancing and cooperative rebalancing?

      Senior
    • What is the difference between session.timeout.ms and max.poll.interval.ms, and how do heartbeats work in a consumer?

      Senior
    • Compare the range, round-robin, sticky, and cooperative-sticky partition assignment strategies.

      Senior

    Monitoring & Operations

    • What is Consumer Lag, and how can you monitor and remediate it?

      Mid
    • What are some key metrics you would monitor in a Kafka cluster (brokers, producers, consumers)?

      Mid
    • You observe high consumer lag for a topic — how would you investigate and troubleshoot this issue?

      Mid
    • What is the Kafka AdminClient, and what kinds of operations can you perform with it?

      Mid
    • How would you monitor and troubleshoot Kafka performance issues in production?

      Senior
    • How do you perform a rolling restart of a Kafka cluster?

      Senior
    • What are the most common Kafka production mistakes?

      Senior
    • What are quotas in Kafka, and how does throttling protect a cluster from misbehaving clients?

      Senior
    • How do you approach sizing and capacity planning for a Kafka cluster?

      Senior

    Schema Registry & Evolution

    • What is the Schema Registry, and why is it important?

      Mid
    • What are subjects and versions in the Schema Registry, and how are they related to topics?

      Mid
    • Explain the different schema compatibility modes (backward, forward, full, none) and their implications for schema evolution.

      Senior
    • How does the Schema Registry wire format work, and what is the role of the embedded schema id in each message?

      Senior

    Storage Retention & Compaction

    • What are Kafka logs, and how are they managed?

      Junior
    • Describe Kafka's log compaction feature and its typical use cases.

      Mid
    • How does Kafka handle message retention and deletion?

      Mid
    • What is the difference between cleanup.policy=delete and cleanup.policy=compact?

      Mid
    • What is a tombstone record in a compacted topic, and how does it trigger deletion?

      Mid
    • How does Kafka store data on disk, and what are log segments?

      Senior
    • What is tiered storage in Kafka, and what problem does it solve?

      Senior

    Zookeeper & Kraft

    • Can Kafka be used without ZooKeeper?

      Junior
    • Explain the transition from ZooKeeper to KRaft mode in Kafka. What problems does KRaft solve?

      Senior
    • Can you explain ZooKeeper's role in Kafka's architecture, and how Kafka will operate without it in the future?

      Senior
    • In KRaft mode, what is the metadata log, and what is the difference between combined and isolated controller modes?

      Senior

    Security

    • What are SSL/TLS and SASL in Kafka security?

      Mid
    • How do you secure Kafka, including encryption (SSL/TLS), authentication (SASL), and authorization (ACLs)?

      Senior
    • What Kafka security mechanisms would you implement to ensure that only authorized producers can publish to a topic?

      Senior
    • Compare the different SASL mechanisms Kafka supports (PLAIN, SCRAM, GSSAPI/Kerberos, OAUTHBEARER).

      Senior
    • How do Kafka ACLs and the authorizer work to control access to topics and operations?

      Senior

    Comparisons With Other Systems

    • How does Kafka differ from traditional message brokers like RabbitMQ?

      Mid
    • What are the main differences between Apache Kafka and Apache Pulsar?

      Senior
    • Explain the differences between Kafka and Pulsar in terms of the separation of storage and processing layers and the benefits this provides in Pulsar.

      Senior

    Kafka Streams & Ksqldb

    • What is Kafka Streams?

      Junior
    • What is a stream in the context of Kafka Streams?

      Junior
    • What are common use cases for Kafka Streams?

      Junior
    • What is Kafka Streams, and how does it differ from traditional message processing?

      Mid
    • Explain the concept of windowing in Kafka Streams (tumbling, hopping, sliding, session windows).

      Mid
    • What is Kafka Streams, and what are its key abstractions (KStream, KTable, GlobalKTable)?

      Mid
    • How does Kafka Streams differ from the Kafka Consumer API?

      Mid
    • What is a topology in Kafka Streams?

      Mid
    • What is a KTable in Kafka Streams, and how does it differ from a KStream?

      Mid
    • What is the role of stateful and stateless transformations in Kafka Streams?

      Mid
    • How does Kafka Streams scale horizontally?

      Mid
    • What is the significance of the application ID in Kafka Streams?

      Mid
    • What is ksqlDB, and how does it relate to Kafka Streams?

      Mid
    • How does Kafka Streams achieve exactly-once processing?

      Senior
    • What is the Processor API and when would you use it instead of the DSL in Kafka Streams?

      Senior
    • How do state stores work in Kafka Streams, and what is their relationship with changelog topics?

      Senior
    • How does Kafka Streams handle fault tolerance?

      Senior
    • What is a stream thread and how does it relate to tasks in Kafka Streams?

      Senior
    • What are standby replicas in Kafka Streams?

      Senior
    • What are common causes of high consumer lag in a Kafka Streams application?

      Senior
    • Why prefer event time over processing time for aggregations in Kafka Streams?

      Senior
    • What are interactive queries in Kafka Streams, and how do they let you query state stores?

      Senior
    • What is the difference between a GlobalKTable and a KTable, and when would you use each in joins?

      Senior

    Performance & Tuning

    • What are the key Kafka performance tuning parameters?

      Mid
    • How does Kafka use the OS page cache and sequential disk I/O to achieve performance?

      Mid
    • Compare the trade-offs of the different compression codecs (gzip, snappy, lz4, zstd) in Kafka.

      Mid
    • What is zero-copy, and how does it impact Kafka's performance?

      Senior
    • How does Kafka ensure high throughput and low latency?

      Senior
    • How would you optimize Kafka for high throughput?

      Senior

    High Availability & Disaster Recovery

    • How can you replay or reprocess historical data in Kafka using seek and offset reset?

      Mid
    • How do you ensure message ordering when replaying historical Kafka events?

      Senior
    • Explain the concept of rack awareness in Kafka.

      Senior
    • What is MirrorMaker 2, and when would you use it for cross-cluster replication?

      Senior
    • How would you configure Kafka for high availability?

      Senior
    • How would you approach disaster recovery and multi-datacenter deployment with Kafka?

      Senior