A. security.protocol should be SASL_SSL to enable encryption
B. The property should be sasl.mechanism instead of sasl.mechanisms
C. SCRAM-SHA-256 is not a valid SASL mechanism
D. No error, configuration is correct
Solution
Step 1: Check security.protocol value
SASL_PLAINTEXT enables SASL but does not encrypt traffic, which is insecure for sensitive data.
Step 2: Recommend secure protocol
Using SASL_SSL enables SASL authentication with SSL encryption, which is a best practice.
Final Answer:
security.protocol should be SASL_SSL to enable encryption -> Option A
Quick Check:
Use SASL_SSL for encrypted SASL connections [OK]
Hint: SASL_PLAINTEXT lacks encryption; use SASL_SSL for security [OK]
Common Mistakes:
Thinking SASL_PLAINTEXT encrypts data
Confusing sasl.mechanism property name
Believing SCRAM-SHA-256 is invalid
5. You want to secure a Kafka cluster so that only authenticated users can produce or consume messages, and all traffic is encrypted. Which combination of settings achieves this best?
hard
A. Use PLAINTEXT protocol with ACLs to restrict access, no encryption needed
B. Enable SSL encryption with security.protocol=SASL_SSL, configure SASL authentication, and set ACLs for user permissions
C. Enable SASL_PLAINTEXT for authentication and rely on network firewall for encryption
D. Use SSL only without SASL or ACLs to simplify configuration
Solution
Step 1: Ensure encryption and authentication
Using security.protocol=SASL_SSL enables both encryption (SSL) and authentication (SASL).
Step 2: Control access with ACLs
ACLs restrict which authenticated users can produce or consume messages, enforcing permissions.
Final Answer:
Enable SSL encryption with security.protocol=SASL_SSL, configure SASL authentication, and set ACLs for user permissions -> Option B