CCDAK practice question 6 of 25
If you enable an SSL endpoint in Kafka, what feature of Kafka will be lost?
Full set: 150 questionsThe "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.
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.
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.
Keep practicing
Take the free CCDAK practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other CCDAK practice questions
- Question 1In Avro, removing or adding a field that has a default is a __ schema evolution
- Question 2A topic has three replicas and you set min.insync.replicas to 2. If two out of three repl…
- Question 3To get acknowledgement of writes to only the leader partition, we need to use the config.…
- Question 4A customer has many consumer applications that process messages from a Kafka topic. Each …
- Question 5What information isn't stored inside of Zookeeper? (select two)
- Question 7The exactly once guarantee in the Kafka Streams is for which flow of data?
