Bird
0
0

You run the command:

medium📝 Debug Q14 of 15
Kafka - Security
You run the command:
kafka-acls --add --allow-principal User:carol --operation Read --topic sales
But Carol still cannot read from the sales topic. What is the most likely cause?
AThe ACL was added but the Kafka broker was not restarted
BCarol needs Write permission to read messages
CCarol's client is not authenticating as User:carol
DThe ACL was added for the wrong user
Step-by-Step Solution
Solution:
  1. Step 1: Check if ACL command syntax is correct

    The command correctly adds Read permission for User:carol on topic sales.
  2. Step 2: Consider authentication and identity

    If Carol cannot read despite ACL, likely her client is not authenticating as User:carol, so ACL does not apply.
  3. Final Answer:

    Carol's client is not authenticating as User:carol -> Option C
  4. Quick Check:

    ACL needs matching user identity = A [OK]
Quick Trick: ACLs depend on correct user authentication [OK]
Common Mistakes:
  • Thinking Write permission is needed to read
  • Assuming Kafka broker restart is required for ACL changes
  • Confusing user names in ACL commands

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes