Bird
0
0

You want to allow user 'frank' to produce messages to any topic starting with 'logs-'. Which ACL command should you use?

hard📝 Application Q8 of 15
Kafka - Security
You want to allow user 'frank' to produce messages to any topic starting with 'logs-'. Which ACL command should you use?
Akafka-acls --add --allow-principal User:frank --operation Write --topic logs-*
Bkafka-acls --add --allow-principal User:frank --operation Write --topic logs-
Ckafka-acls --add --allow-principal User:frank --operation Write --topic logs
Dkafka-acls --add --allow-principal User:frank --operation Write --topic logs*
Step-by-Step Solution
Solution:
  1. Step 1: Understand wildcard usage in topic names

    Kafka supports '*' as a wildcard to match multiple topics with a prefix.
  2. Step 2: Choose command with correct wildcard

    logs-* matches all topics starting with 'logs-'. Other options do not use wildcard properly.
  3. Final Answer:

    kafka-acls --add --allow-principal User:frank --operation Write --topic logs-* -> Option A
  4. Quick Check:

    Use '*' wildcard for topic prefixes [OK]
Quick Trick: Use '*' to match topic name patterns [OK]
Common Mistakes:
  • Not using wildcard for topic prefixes
  • Using incomplete topic names
  • Repeating same topic name without wildcard

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes