Complete the code to enable encryption at rest by specifying the correct configuration property.
props.put("[1]", "true");
The correct Kafka configuration property to enable encryption at rest is encryption.at.rest.enabled.
Complete the code to specify the encryption key location for Kafka's encryption at rest.
props.put("encryption.key.location", "[1]");
The encryption key location should be a full path to the key file, such as /etc/kafka/keys/keyfile.
Fix the error in the code to correctly configure Kafka to use AES encryption algorithm for encryption at rest.
props.put("encryption.algorithm", "[1]");
The correct algorithm for encryption at rest in Kafka is AES, which is a symmetric encryption algorithm.
Fill both blanks to configure Kafka to rotate encryption keys every 30 days and set the key rotation policy.
props.put("encryption.key.rotation.interval.days", "[1]"); props.put("encryption.key.rotation.policy", "[2]");
Setting the rotation interval to 30 days and the policy to automatic enables Kafka to rotate keys every 30 days automatically.
Fill all three blanks to create a secure Kafka configuration for encryption at rest with key location, algorithm, and enabling encryption.
props.put("encryption.key.location", "[1]"); props.put("encryption.algorithm", "[2]"); props.put("encryption.at.rest.enabled", "[3]");
This configuration sets the key location to a secure path, uses AES encryption, and enables encryption at rest.