Bird
0
0

Which of the following is the correct way to specify SASL mechanism in Kafka client configuration?

easy📝 Syntax Q12 of 15
Kafka - Security
Which of the following is the correct way to specify SASL mechanism in Kafka client configuration?
Asecurity.protocol = SASL_PLAINTEXT
Bsasl.config = PLAIN
Csasl.mechanism = PLAIN
Dsecurity.mechanism = SASL
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct property for SASL mechanism

    The Kafka client uses sasl.mechanism to specify the SASL mechanism like PLAIN, SCRAM, etc.
  2. Step 2: Check other options for correctness

    security.protocol sets protocol type, not mechanism; sasl.config is invalid; security.mechanism is not a valid property.
  3. Final Answer:

    sasl.mechanism = PLAIN -> Option C
  4. Quick Check:

    sasl.mechanism sets SASL type [OK]
Quick Trick: Use sasl.mechanism to set SASL type like PLAIN [OK]
Common Mistakes:
  • Using security.protocol instead of sasl.mechanism
  • Writing sasl.config instead of sasl.mechanism
  • Confusing property names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes