Bird
0
0

Identify the error in the following Kafka security configuration snippet:

medium📝 Debug Q14 of 15
Kafka - Security
Identify the error in the following Kafka security configuration snippet:
security.protocol=SASL_PLAINTEXT
sasl.mechanism=SCRAM-SHA-256
Asecurity.protocol should be SASL_SSL to enable encryption
BThe property should be sasl.mechanism instead of sasl.mechanisms
CSCRAM-SHA-256 is not a valid SASL mechanism
DNo error, configuration is correct
Step-by-Step Solution
Solution:
  1. Step 1: Check security.protocol value

    SASL_PLAINTEXT enables SASL but does not encrypt traffic, which is insecure for sensitive data.
  2. Step 2: Recommend secure protocol

    Using SASL_SSL enables SASL authentication with SSL encryption, which is a best practice.
  3. Final Answer:

    security.protocol should be SASL_SSL to enable encryption -> Option A
  4. Quick Check:

    Use SASL_SSL for encrypted SASL connections [OK]
Quick Trick: SASL_PLAINTEXT lacks encryption; use SASL_SSL for security [OK]
Common Mistakes:
MISTAKES
  • Thinking SASL_PLAINTEXT encrypts data
  • Confusing sasl.mechanism property name
  • Believing SCRAM-SHA-256 is invalid

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes