Complete the code to enable SSL encryption in Kafka configuration.
security.protocol=[1]Setting security.protocol to SSL enables encryption of data in transit, protecting it from interception.
Complete the code to configure Kafka to require client authentication.
ssl.client.auth=[1]Setting ssl.client.auth to required forces clients to present certificates, ensuring only authorized clients connect.
Fix the error in the Kafka ACL command to allow user 'alice' to read from topic 'orders'.
kafka-acls --add --allow-principal User:[1] --operation Read --topic ordersThe principal must match the user name 'alice' to grant read access to that user.
Fill both blanks to create a Kafka ACL that denies user 'eve' from writing to topic 'payments'.
kafka-acls --add --deny-principal User:[1] --operation [2] --topic payments
To deny user 'eve' from writing, the principal must be 'eve' and the operation 'Write'.
Fill the two blanks to configure Kafka to use SASL authentication with the SCRAM-SHA-256 mechanism.
security.protocol=[1] sasl.mechanism=[2] sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required;
Using SASL_SSL for security.protocol enables SASL authentication over SSL. The mechanism SCRAM-SHA-256 specifies the authentication method. The JAAS config line is standard for SCRAM login.