Challenge - 5 Problems
Kafka SSL/TLS Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Predict Output
intermediate2:00remaining
What is the output of this Kafka SSL configuration snippet?
Consider the following Kafka client SSL configuration in a properties file format. What will be the value of
ssl.endpoint.identification.algorithm after loading this configuration?Kafka
ssl.endpoint.identification.algorithm= ssl.keystore.location=/var/private/ssl/kafka.client.keystore.jks ssl.keystore.password=keystorepass ssl.key.password=keypass ssl.truststore.location=/var/private/ssl/kafka.client.truststore.jks ssl.truststore.password=truststorepass
Attempts:
2 left
💡 Hint
Look carefully at the value assigned to
ssl.endpoint.identification.algorithm.✗ Incorrect
The configuration explicitly sets
ssl.endpoint.identification.algorithm to an empty value, which disables hostname verification in Kafka SSL connections.🧠 Conceptual
intermediate2:00remaining
Which Kafka SSL property enables client authentication?
In Kafka SSL encryption, which configuration property must be set to enable the broker to authenticate clients using SSL certificates?
Attempts:
2 left
💡 Hint
Think about the property that controls client certificate requirements.
✗ Incorrect
The
ssl.client.auth property set to required forces the broker to require and verify client certificates for authentication.🔧 Debug
advanced2:00remaining
What error does this Kafka SSL producer configuration cause?
Given this Kafka producer SSL configuration snippet, what error will occur when the producer tries to connect to the broker?
Kafka
security.protocol=SSL ssl.keystore.location=/etc/kafka/producer.keystore.jks ssl.keystore.password=producerpass ssl.key.password=wrongpass ssl.truststore.location=/etc/kafka/producer.truststore.jks ssl.truststore.password=trustpass
Attempts:
2 left
💡 Hint
Check the password used for the private key in the keystore.
✗ Incorrect
The
ssl.key.password is incorrect, so the producer cannot access the private key, causing an SSL handshake failure.📝 Syntax
advanced2:00remaining
Which Kafka SSL configuration snippet is syntactically correct?
Identify the syntactically correct Kafka SSL configuration snippet from the options below.
Attempts:
2 left
💡 Hint
Look for missing values after the equals sign.
✗ Incorrect
Option B has all properties correctly assigned with values. Other options have missing values causing syntax errors.
🚀 Application
expert2:00remaining
How many SSL handshake attempts will occur with this Kafka client config?
A Kafka client is configured with the following SSL properties:
security.protocol=SSL
ssl.keystore.location=/client/keystore.jks
ssl.keystore.password=clientpass
ssl.key.password=clientkeypass
ssl.truststore.location=/client/truststore.jks
ssl.truststore.password=trustpass
ssl.endpoint.identification.algorithm=https
If the broker's certificate hostname does not match the broker's DNS name, how many SSL handshake attempts will the client make before failing?
Attempts:
2 left
💡 Hint
Consider how hostname verification affects SSL handshake in Kafka clients.
✗ Incorrect
With
ssl.endpoint.identification.algorithm=https, Kafka client verifies hostname. If it doesn't match, the handshake fails immediately after one attempt.