Bird
0
0

If a user has the following ACL:

medium📝 Predict Output Q5 of 15
Kafka - Security
If a user has the following ACL:
kafka-acls --add --allow-principal User:carol --operation Read --topic sales

What will happen if Carol tries to write to the 'sales' topic?
ACarol will get a permission denied error
BCarol can write messages successfully
CCarol can write only if the topic is empty
DCarol can write only during off-peak hours
Step-by-Step Solution
Solution:
  1. Step 1: Check Carol's ACL permissions

    Carol has Read permission only on the 'sales' topic.
  2. Step 2: Understand write attempt without Write permission

    Without Write permission, Carol cannot send messages and will get denied.
  3. Final Answer:

    Carol will get a permission denied error -> Option A
  4. Quick Check:

    Write without permission = denied error [OK]
Quick Trick: Read permission does not allow writing [OK]
Common Mistakes:
  • Assuming Read implies Write permission
  • Thinking topic state affects permission
  • Believing time affects ACL enforcement

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes