0
0
Kafkadevops~10 mins

SSL/TLS encryption in Kafka - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to enable SSL encryption in Kafka client configuration.

Kafka
security.protocol=[1]
Drag options to blanks, or click blank then click option'
ASSL
BSASL_PLAINTEXT
CPLAINTEXT
DSASL_SSL
Attempts:
3 left
💡 Hint
Common Mistakes
Using PLAINTEXT disables encryption.
Confusing SASL_SSL with SSL alone.
2fill in blank
medium

Complete the code to specify the location of the Kafka client's truststore file.

Kafka
ssl.truststore.location=[1]
Drag options to blanks, or click blank then click option'
A/etc/kafka/client.keystore.jks
B/etc/kafka/client.truststore.jks
C/etc/kafka/server.keystore.jks
D/etc/kafka/server.truststore.jks
Attempts:
3 left
💡 Hint
Common Mistakes
Using keystore file instead of truststore.
Pointing to server-side files instead of client-side.
3fill in blank
hard

Fix the error in the Kafka SSL configuration property name.

Kafka
ssl.keystore.pasword=[1]
Drag options to blanks, or click blank then click option'
Assl.keystore.password
Bssl.keystore.keypassword
Cssl.keystore.passwd
Dssl.keystore.pass
Attempts:
3 left
💡 Hint
Common Mistakes
Misspelling 'password' as 'pasword'.
Using incorrect property names.
4fill in blank
hard

Fill both blanks to configure Kafka client SSL with keystore and truststore passwords.

Kafka
ssl.keystore.password=[1]
ssl.truststore.password=[2]
Drag options to blanks, or click blank then click option'
Achangeit
Bpassword123
Ctrustpass
Dkeystorepass
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping keystore and truststore passwords.
Using default or empty passwords.
5fill in blank
hard

Fill all three blanks to create a Kafka SSL configuration dictionary with protocol, keystore location, and truststore location.

Kafka
config = {
    'security.protocol': [1],
    'ssl.keystore.location': [2],
    'ssl.truststore.location': [3]
}
Drag options to blanks, or click blank then click option'
A'SSL'
B'/etc/kafka/client.keystore.jks'
C'/etc/kafka/client.truststore.jks'
D'PLAINTEXT'
Attempts:
3 left
💡 Hint
Common Mistakes
Using PLAINTEXT instead of SSL.
Incorrect file paths or missing quotes.