Bird
0
0

How would you grant user 'gina' permission to consume from all consumer groups in the cluster?

hard📝 Application Q9 of 15
Kafka - Security
How would you grant user 'gina' permission to consume from all consumer groups in the cluster?
Akafka-acls --add --allow-principal User:gina --operation Read --group all
Bkafka-acls --add --allow-principal User:gina --operation Read --group '*'
Ckafka-acls --add --allow-principal User:gina --operation Read --cluster
Dkafka-acls --add --allow-principal User:gina --operation Write --group '*'
Step-by-Step Solution
Solution:
  1. Step 1: Identify how to specify all consumer groups

    Using '*' as a wildcard for group matches all consumer groups.
  2. Step 2: Confirm correct operation and resource

    Read operation is needed to consume messages, and group resource is correct.
  3. Final Answer:

    kafka-acls --add --allow-principal User:gina --operation Read --group '*' -> Option B
  4. Quick Check:

    Use '*' wildcard to match all groups [OK]
Quick Trick: Use '*' to grant permissions on all groups [OK]
Common Mistakes:
MISTAKES
  • Using 'all' instead of '*' wildcard
  • Using Write instead of Read for consuming
  • Confusing cluster permission with group permission

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes