Kafka - SecurityWhich of the following is the correct syntax to enable SSL client authentication in Kafka client config?Asecurity.protocol=PLAINTEXT ssl.keystore.location=/path/to/keystore.jksBssl.enabled=true security.protocol=SSLCsasl.mechanism=SSL security.protocol=SASL_SSLDsecurity.protocol=SSL ssl.keystore.location=/path/to/keystore.jks ssl.keystore.password=secretCheck Answer
Step-by-Step SolutionSolution:Step 1: Check correct SSL config syntaxTo enable SSL client authentication, security.protocol must be SSL and keystore location and password must be set.Step 2: Evaluate other optionssecurity.protocol=PLAINTEXT ssl.keystore.location=/path/to/keystore.jks uses PLAINTEXT which disables SSL; sasl.mechanism=SSL security.protocol=SASL_SSL misuses sasl.mechanism; ssl.enabled=true security.protocol=SSL uses invalid ssl.enabled property.Final Answer:security.protocol=SSL ssl.keystore.location=/path/to/keystore.jks ssl.keystore.password=secret -> Option DQuick Check:SSL client auth requires security.protocol=SSL and keystore [OK]Quick Trick: Set security.protocol=SSL and keystore for SSL auth [OK]Common Mistakes:MISTAKESUsing PLAINTEXT disables SSLConfusing sasl.mechanism with SSLUsing non-existent ssl.enabled property
Master "Security" in Kafka9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kafka Quizzes Advanced Stream Processing - Why advanced patterns handle complex flows - Quiz 8hard Advanced Stream Processing - Punctuators for time-based triggers - Quiz 1easy Advanced Stream Processing - State stores - Quiz 13medium Advanced Stream Processing - Why advanced patterns handle complex flows - Quiz 2easy Event-Driven Architecture - Event sourcing pattern - Quiz 13medium Event-Driven Architecture - Dead letter queue pattern - Quiz 2easy Kubernetes and Cloud Deployment - Helm charts for Kafka - Quiz 1easy Kubernetes and Cloud Deployment - Helm charts for Kafka - Quiz 3easy Performance Tuning - Consumer throughput optimization - Quiz 1easy Security - Why securing Kafka protects data - Quiz 14medium