Kafka - SecurityYou 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 logsDkafka-acls --add --allow-principal User:frank --operation Write --topic logs*Check Answer
Step-by-Step SolutionSolution:Step 1: Understand wildcard usage in topic namesKafka supports '*' as a wildcard to match multiple topics with a prefix.Step 2: Choose command with correct wildcardlogs-* matches all topics starting with 'logs-'. Other options do not use wildcard properly.Final Answer:kafka-acls --add --allow-principal User:frank --operation Write --topic logs-* -> Option AQuick Check:Use '*' wildcard for topic prefixes [OK]Quick Trick: Use '*' to match topic name patterns [OK]Common Mistakes:Not using wildcard for topic prefixesUsing incomplete topic namesRepeating same topic name without wildcard
Master "Security" in Kafka9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kafka Quizzes Advanced Stream Processing - Custom SerDes - Quiz 3easy Event-Driven Architecture - Dead letter queue pattern - Quiz 15hard Kubernetes and Cloud Deployment - Helm charts for Kafka - Quiz 15hard Kubernetes and Cloud Deployment - Resource planning and capacity - Quiz 5medium Multi-Datacenter and Replication - Disaster recovery planning - Quiz 10hard Multi-Datacenter and Replication - Active-passive vs active-active - Quiz 13medium Performance Tuning - Memory and buffer configuration - Quiz 9hard Performance Tuning - Consumer throughput optimization - Quiz 2easy Security - SASL authentication - Quiz 12easy Security - Encryption at rest - Quiz 12easy