0
0
Kafkadevops~5 mins

ACL-based authorization in Kafka - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does ACL stand for in Kafka's authorization?
ACL stands for Access Control List. It is a list that defines who can access Kafka resources and what actions they can perform.
Click to reveal answer
beginner
How does Kafka use ACLs to control access?
Kafka checks ACLs to decide if a user or client is allowed to perform an action like reading or writing on a topic or group.
Click to reveal answer
beginner
Name two common Kafka resource types that ACLs can protect.
Topics and Consumer Groups are two common Kafka resources protected by ACLs.
Click to reveal answer
intermediate
What is the command to add an ACL in Kafka for a user to write to a topic?
Use kafka-acls.sh with --add, --allow-principal, --operation=Write, and --topic options. Example: kafka-acls.sh --add --allow-principal User:Alice --operation Write --topic my-topic
Click to reveal answer
beginner
Why is ACL-based authorization important in Kafka?
It protects Kafka data by ensuring only authorized users or applications can read or write data, preventing unauthorized access and data leaks.
Click to reveal answer
What does an ACL in Kafka specify?
AThe replication factor of topics
BThe network settings for Kafka brokers
CWho can perform which actions on Kafka resources
DThe data format of Kafka messages
Which Kafka resource can you protect with ACLs?
ANetwork routers
BOperating system files
CDatabase tables
DTopic
Which command option is used to add an ACL in Kafka?
A--remove
B--add
C--list
D--describe
What operation would you specify to allow a user to read from a topic?
ARead
BWrite
CDelete
DCreate
If no ACL exists for a user on a topic, what happens when they try to access it?
AAccess is denied
BAccess is granted by default
CKafka crashes
DUser is prompted for a password
Explain how ACL-based authorization works in Kafka and why it is important.
Think about who can do what with Kafka topics and why controlling this matters.
You got /4 concepts.
    Describe the steps to add an ACL that allows a user to write to a Kafka topic.
    Focus on the command and options needed.
    You got /5 concepts.