Bird
0
0

Given the following ACLs:

medium📝 Predict Output Q13 of 15
Kafka - Security
Given the following ACLs:
kafka-acls --add --allow-principal User:bob --operation Write --topic payments
kafka-acls --add --allow-principal User:bob --operation Read --topic payments
What will happen if user bob tries to consume messages from topic payments?
ABob can only produce messages but not consume
BBob will get a permission denied error when consuming messages
CBob can neither produce nor consume messages
DBob will be able to consume messages from the payments topic
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the ACLs for user bob

    Bob has both Write and Read permissions on the payments topic.
  2. Step 2: Understand consuming messages requires Read permission

    Since Bob has Read permission, he can consume messages from the payments topic.
  3. Final Answer:

    Bob will be able to consume messages from the payments topic -> Option D
  4. Quick Check:

    Read permission allows consume = C [OK]
Quick Trick: Read permission lets user consume messages [OK]
Common Mistakes:
MISTAKES
  • Assuming Write permission alone allows consuming
  • Confusing produce and consume permissions
  • Ignoring the Read permission present

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes