Bird
0
0

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📝 Application Q15 of 15
Kafka - Security
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?
AUse PLAINTEXT protocol with ACLs to restrict access, no encryption needed
BEnable SSL encryption with <code>security.protocol=SASL_SSL</code>, configure SASL authentication, and set ACLs for user permissions
CEnable SASL_PLAINTEXT for authentication and rely on network firewall for encryption
DUse SSL only without SASL or ACLs to simplify configuration
Step-by-Step Solution
Solution:
  1. Step 1: Ensure encryption and authentication

    Using security.protocol=SASL_SSL enables both encryption (SSL) and authentication (SASL).
  2. Step 2: Control access with ACLs

    ACLs restrict which authenticated users can produce or consume messages, enforcing permissions.
  3. Final Answer:

    Enable SSL encryption with security.protocol=SASL_SSL, configure SASL authentication, and set ACLs for user permissions -> Option B
  4. Quick Check:

    Encryption + Authentication + ACLs = Secure Kafka [OK]
Quick Trick: Combine SASL_SSL, SASL auth, and ACLs for full security [OK]
Common Mistakes:
  • Using PLAINTEXT disables encryption
  • Relying on firewall instead of encryption
  • Skipping ACLs allows unauthorized access

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes