Kafka - SecurityWhich of the following is the correct syntax to enable SASL_SSL in Kafka client properties in Java?Aprops.put("securityProtocol", "SASL_SSL");Bprops.put("security.protocol", "SASL_SSL");Cprops.setProperty("securityProtocol", "SASL_SSL");Dprops.set("security.protocol", "SASL_SSL");Check Answer
Step-by-Step SolutionSolution:Step 1: Recall Java Properties syntaxJava Properties uses put(key, value) to set properties.Step 2: Check correct property name and methodThe property name is 'security.protocol' and method is put, so 'props.put("security.protocol", "SASL_SSL");' is correct.Final Answer:props.put("security.protocol", "SASL_SSL"); -> Option BQuick Check:Java Properties set SASL_SSL with put and correct key [OK]Quick Trick: Use props.put("security.protocol", "SASL_SSL") in Java [OK]Common Mistakes:Using setProperty instead of putWrong property name like securityProtocolUsing non-existent set methodIncorrect casing in property key
Master "Security" in Kafka9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kafka Quizzes Advanced Stream Processing - Interactive queries - Quiz 4medium Advanced Stream Processing - Why advanced patterns handle complex flows - Quiz 15hard Advanced Stream Processing - Testing stream topologies - Quiz 5medium Event-Driven Architecture - Event choreography vs orchestration - Quiz 1easy Kubernetes and Cloud Deployment - Confluent Cloud overview - Quiz 7medium Multi-Datacenter and Replication - Active-passive vs active-active - Quiz 7medium Performance Tuning - Why tuning handles production load - Quiz 8hard Performance Tuning - Batch size and compression tuning - Quiz 4medium Security - SSL/TLS encryption - Quiz 13medium Security - Why securing Kafka protects data - Quiz 3easy