Bird
0
0

What is wrong with this Kafka ACL command?

medium📝 Debug Q7 of 15
Kafka - Security
What is wrong with this Kafka ACL command?
kafka-acls --add --allow-principal User:Bob --operation Read --topic myTopic
AMissing --cluster flag to allow cluster-level operations
BNo error; command correctly grants read access to Bob on myTopic
CPrincipal name should be lowercase 'user:bob'
DOperation 'Read' is invalid; should be 'read'
Step-by-Step Solution
Solution:
  1. Step 1: Review ACL command syntax

    The command correctly adds read permission for User:Bob on topic 'myTopic'.
  2. Step 2: Validate case sensitivity and flags

    Principal names are case sensitive but 'User:Bob' is valid; operation names are case insensitive.
  3. Final Answer:

    No error; command correctly grants read access to Bob on myTopic -> Option B
  4. Quick Check:

    ACL command syntax correct = No error; command correctly grants read access to Bob on myTopic [OK]
Quick Trick: ACL commands are case sensitive for principal names [OK]
Common Mistakes:
MISTAKES
  • Assuming operation names must be lowercase
  • Thinking --cluster flag is required for topic ACLs
  • Confusing principal name case sensitivity

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes