Bird
0
0

Which of the following is the correct command to add an ACL for a user named alice to read from topic orders?

easy📝 Syntax Q12 of 15
Kafka - Security
Which of the following is the correct command to add an ACL for a user named alice to read from topic orders?
Akafka-acls --add --allow-principal User:alice --operation Read --topic orders
Bkafka-acls --remove --allow-principal User:alice --operation Read --topic orders
Ckafka-acls --add --deny-principal User:alice --operation Write --topic orders
Dkafka-acls --add --allow-principal User:bob --operation Read --topic orders
Step-by-Step Solution
Solution:
  1. Step 1: Identify the command to add ACL

    The command to add an ACL uses --add and specifies the principal and operation.
  2. Step 2: Match user, operation, and topic

    We want to add read permission for user alice on topic orders, so the command must include these exactly.
  3. Final Answer:

    kafka-acls --add --allow-principal User:alice --operation Read --topic orders -> Option A
  4. Quick Check:

    Add ACL for alice to read orders = D [OK]
Quick Trick: Add ACL uses --add and --allow-principal [OK]
Common Mistakes:
  • Using --remove instead of --add
  • Using deny instead of allow
  • Specifying wrong user or operation

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes