Domain 1: Apache Kafka® Fundamentals
1.Which of the following represents the core components that make up a standard Apache Kafka message (record)?
- A.Key, Value, Timestamp, and Headers
- B.Key, Value, Schema ID, and Offset
- C.Topic, Partition, Value, and CRC Checksum
- D.Key, Value, Metadata, and Footer
Show answer & explanation
Correct answer: A — Key, Value, Timestamp, and Headers
- A. Correct. A standard Kafka record (message) consists of a Key, Value, Timestamp, and optional Headers. These components are the fundamental parts exposed by Kafka producer/consumer APIs and defined in the Kafka wire protocol.
- B. Incorrect. While Key and Value are core components, the Schema ID is specific to the Schema Registry and serialization formats (like Avro), not the Kafka record structure itself. The Offset is metadata assigned by the broker once the message is appended to the log.
- C. Incorrect. Topic and Partition are metadata fields that specify where a record is stored, but they are not internal components of the record payload. The CRC checksum is used for internal data integrity checking rather than being a functional component of the message record.
- D. Incorrect. Kafka messages do not use a 'Footer' structure. The standard components are key, value, timestamp, and headers; generic 'metadata' is handled through specific fields like headers or broker-assigned properties (offset, partition).