0
0
Kafkadevops~20 mins

Encryption at rest in Kafka - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Kafka Encryption Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Predict Output
intermediate
1:30remaining
What is the output of this Kafka configuration snippet?
Given the following Kafka broker configuration snippet for encryption at rest, what will be the value of log.dirs after parsing?
Kafka
log.dirs=/var/lib/kafka/data,/mnt/kafka/storage
log.dirs=/var/lib/kafka/data
A/var/lib/kafka/data
B/mnt/kafka/storage
Cnull
D/var/lib/kafka/data,/mnt/kafka/storage
Attempts:
2 left
💡 Hint
Later configuration lines override earlier ones in Kafka properties files.
🧠 Conceptual
intermediate
1:30remaining
Which Kafka feature directly supports encryption at rest?
Which Kafka feature is designed to encrypt data stored on disk to ensure encryption at rest?
ABroker-side disk encryption using the <code>log.dirs</code> encrypted filesystem
BSSL encryption for client-broker communication
CSASL authentication
DKafka Streams API
Attempts:
2 left
💡 Hint
Encryption at rest means data is encrypted when stored on disk, not during transmission.
🔧 Debug
advanced
2:00remaining
Why does this Kafka broker fail to start with encryption at rest enabled?
A Kafka broker is configured to use an encrypted filesystem for log.dirs. The broker fails to start with the error: java.io.IOException: Permission denied. What is the most likely cause?
AKafka topic configuration is incorrect
BKafka configuration file syntax error
CKafka broker is missing SSL certificates
DKafka broker user lacks read/write permissions on the encrypted <code>log.dirs</code> directory
Attempts:
2 left
💡 Hint
Permission denied errors usually relate to filesystem access rights.
📝 Syntax
advanced
1:30remaining
Which Kafka configuration snippet correctly enables encryption at rest using a mounted encrypted volume?
Select the valid Kafka broker configuration snippet that points to an encrypted volume for storing logs.
Alog.dirs: /mnt/encrypted_volume/kafka_logs
Blog.dirs = /mnt/encrypted_volume/kafka_logs
Clog.dirs=/mnt/encrypted_volume/kafka_logs
Dlog.dirs => /mnt/encrypted_volume/kafka_logs
Attempts:
2 left
💡 Hint
Kafka configuration files use key=value pairs without spaces around the equals sign.
🚀 Application
expert
2:30remaining
How to verify Kafka data is encrypted at rest on a Linux system?
You have configured Kafka to store logs on an encrypted filesystem. Which command sequence best verifies that the Kafka log directory is encrypted at rest?
Aopenssl enc -d -aes-256-cbc -in /mnt/encrypted_volume/kafka_logs
Bmount | grep kafka_logs && lsattr /mnt/encrypted_volume/kafka_logs
Ccat /etc/kafka/server.properties | grep log.dirs
Dkafka-topics.sh --describe --topic test
Attempts:
2 left
💡 Hint
Check the mounted filesystem type and attributes of the directory.