0
0
Kafkadevops~10 mins

ACL-based authorization in Kafka - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create an ACL that allows a user to produce to a topic.

Kafka
kafka-acls --add --allow-principal User:[1] --operation Write --topic my-topic
Drag options to blanks, or click blank then click option'
Adave
Balice
Cbob
Dcharlie
Attempts:
3 left
💡 Hint
Common Mistakes
Using a user name not prefixed with 'User:'
Misspelling the user name
2fill in blank
medium

Complete the code to list all ACLs for a specific topic.

Kafka
kafka-acls --list --topic [1]
Drag options to blanks, or click blank then click option'
Amy-topic
Btest-topic
Clogs
Devents
Attempts:
3 left
💡 Hint
Common Mistakes
Using a topic name that does not exist
Omitting the --topic flag
3fill in blank
hard

Fix the error in the command to remove an ACL for a user on a topic.

Kafka
kafka-acls --remove --allow-principal User:[1] --operation Read --topic my-topic
Drag options to blanks, or click blank then click option'
Aalice
Bbob
Ccharlie
Ddave
Attempts:
3 left
💡 Hint
Common Mistakes
Removing ACLs for the wrong user
Using incorrect operation names
4fill in blank
hard

Fill both blanks to create an ACL that allows a user to consume from a topic.

Kafka
kafka-acls --add --allow-principal User:[1] --operation [2] --topic logs
Drag options to blanks, or click blank then click option'
Aeve
BRead
CWrite
Dfrank
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Write' instead of 'Read' for consuming
Incorrect user name format
5fill in blank
hard

Fill all three blanks to create an ACL that allows a user to describe a consumer group.

Kafka
kafka-acls --add --allow-principal User:[1] --operation [2] --group [3]
Drag options to blanks, or click blank then click option'
Agrace
BDescribe
Cmy-group
DDelete
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Delete' instead of 'Describe' for operation
Wrong group name or missing --group flag