CCDAK practice question 6 of 25

If you enable an SSL endpoint in Kafka, what feature of Kafka will be lost?

Full set: 150 questions
Answer options
A: Cross-cluster mirroring
B: Support for Avro format
C: Zero copy Correct answer
D: Exactly-once delivery
Correct Answer:
C. Zero copy
Explanation

The "zero copy" principle is a high-performance optimization in Kafka that allows data to be transferred directly from the operating system's page cache to the network socket without being copied into the user-space memory of the Kafka broker application. When an SSL endpoint is enabled, data must be encrypted before transmission. This encryption process must occur in user space (within the JVM), which requires copying the data from the page cache into the application's memory. After encryption, the data is then copied to the network socket. This extra copy step negates the zero-copy optimization, leading to increased CPU usage and potential performance degradation.

Why Incorrect

A. Cross-cluster mirroring is a feature (e.g., using MirrorMaker) that functions as a Kafka client and can be configured to communicate with SSL-enabled clusters.
B. Support for Avro format is related to data serialization and is independent of the transport layer security protocol used for data transmission.
D. Exactly-once delivery is a semantic guarantee provided by Kafka's transactional API and is not functionally impacted by enabling transport-level encryption with SSL.

References

1. Confluent Documentation, "Encryption and Authentication using SSL": "When SSL is enabled, the data is encrypted and copied on the broker. This breaks zero-copy optimization and adds some overhead."

Source: Confluent, Inc., Confluent Platform Documentation, Security Section. Specific reference can be found under the SSL configuration and performance implications subsections.

2. Narkhede, N., Shapira, G., & Palino, T. (2017). Kafka: The Definitive Guide. O'Reilly Media.

Chapter 8, Security, Section: Encryption with SSL/TLS: "When encryption is not used, Kafka can use the zero-copy optimization to transfer message data from the page cache directly to the network socket. When encryption is used, this is not possible. The data must be read from the page cache into the Kafka broker application, encrypted, and then written to the network socket." (Page 188).

3. Apache Kafka Documentation, "Security": The official documentation explains that enabling security features like SSL/TLS introduces performance overhead. While it may not explicitly name "zero copy" in every section, the mechanism of encryption requiring user-space processing is a fundamental concept that implies the loss of this kernel-level optimization.

Source: Apache Software Foundation, Apache Kafka Documentation, Section 1.7 Security.

Scroll to Top