Complete the code to enable SSL encryption for Kafka client.
security.protocol=[1]Setting security.protocol to SSL enables SSL encryption for Kafka clients.
Complete the code to configure SASL mechanism for Kafka authentication.
sasl.mechanism=[1]The PLAIN mechanism is a common SASL authentication method for Kafka.
Fix the error in the Kafka ACL command to allow user 'alice' to produce to topic 'orders'.
kafka-acls --authorizer-properties zookeeper.connect=localhost:2181 --add --allow-principal User:[1] --operation Write --topic orders
The principal must match the username 'alice' to grant write permission on the 'orders' topic.
Fill both blanks to configure Kafka broker to require client authentication and enable SSL.
ssl.client.auth=[1] security.protocol=[2]
Setting ssl.client.auth to required enforces client authentication. Using SSL for security.protocol enables encrypted communication.
Fill all three blanks to create a Kafka ACL that allows user 'bob' to consume from topic 'payments' with group 'payment-group'.
kafka-acls --authorizer-properties zookeeper.connect=localhost:2181 --add --allow-principal User:[1] --operation [2] --topic payments --group [3]
The principal is 'bob', the operation is 'Read', and the group is 'payment-group' to allow consumption from the topic.