Bird
0
0

You want to allow a group of users to produce messages to topic logs but deny them from deleting the topic. Which ACL commands correctly achieve this?

hard📝 Application Q15 of 15
Kafka - Security
You want to allow a group of users to produce messages to topic logs but deny them from deleting the topic. Which ACL commands correctly achieve this?
AAdd allow ACL for Produce operation only; deny is not needed because deny is default
BAdd allow ACL for Produce operation and add deny ACL for Delete operation for the user group
CAdd allow ACL for Produce and Delete operations for the user group
DAdd deny ACL for Produce and allow ACL for Delete operations for the user group
Step-by-Step Solution
Solution:
  1. Step 1: Understand permission requirements

    The users should be allowed to produce messages but denied from deleting the topic.
  2. Step 2: Use allow and deny ACLs appropriately

    We add an allow ACL for Produce operation and explicitly add a deny ACL for Delete operation to prevent deletion.
  3. Final Answer:

    Add allow ACL for Produce operation and add deny ACL for Delete operation for the user group -> Option B
  4. Quick Check:

    Allow produce + deny delete = A [OK]
Quick Trick: Use allow for produce and deny for delete explicitly [OK]
Common Mistakes:
  • Assuming deny is default without adding deny ACL
  • Allowing delete by mistake
  • Mixing up allow and deny commands

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes