Bird
0
0

Which of the following is the correct syntax to enable SSL client authentication in Kafka client config?

easy📝 Syntax Q3 of 15
Kafka - Security
Which 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.jks
Bssl.enabled=true security.protocol=SSL
Csasl.mechanism=SSL security.protocol=SASL_SSL
Dsecurity.protocol=SSL ssl.keystore.location=/path/to/keystore.jks ssl.keystore.password=secret
Step-by-Step Solution
Solution:
  1. Step 1: Check correct SSL config syntax

    To enable SSL client authentication, security.protocol must be SSL and keystore location and password must be set.
  2. Step 2: Evaluate other options

    security.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.
  3. Final Answer:

    security.protocol=SSL ssl.keystore.location=/path/to/keystore.jks ssl.keystore.password=secret -> Option D
  4. Quick 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:
MISTAKES
  • Using PLAINTEXT disables SSL
  • Confusing sasl.mechanism with SSL
  • Using non-existent ssl.enabled property

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes