Bird
0
0

Given this Kafka producer config snippet:

medium📝 Predict Output Q13 of 15
Kafka - Security
Given this Kafka producer config snippet:
props.put("security.protocol", "SASL_SSL");
props.put("sasl.mechanism", "PLAIN");
props.put("ssl.truststore.location", "/path/to/truststore.jks");

What is the main security feature enabled here?
AData encryption and user authentication
BOnly data compression
CNo security, just logging
DAutomatic message deletion
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the config properties

    The security.protocol is set to SASL_SSL, which means SSL encryption plus SASL authentication.
  2. Step 2: Understand SASL and SSL roles

    SSL encrypts data in transit, SASL provides user authentication. The truststore location supports SSL trust verification.
  3. Final Answer:

    Data encryption and user authentication -> Option A
  4. Quick Check:

    SASL_SSL = encryption + authentication [OK]
Quick Trick: SASL_SSL means both encryption and authentication [OK]
Common Mistakes:
  • Thinking it only compresses data
  • Ignoring authentication part
  • Assuming no security is set

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes