Bird
0
0

Given this Kafka client config snippet:

medium📝 Predict Output Q13 of 15
Kafka - Security
Given this Kafka client config snippet:
security.protocol=SSL
ssl.keystore.location=/path/client.keystore.jks
ssl.truststore.location=/path/client.truststore.jks

What will happen if the truststore file path is incorrect?
AThe client will connect but with a warning logged
BThe client will connect but without encryption
CThe client will ignore the truststore and use default certificates
DThe client will fail to connect due to truststore loading error
Step-by-Step Solution
Solution:
  1. Step 1: Understand truststore role

    The truststore contains certificates to verify the broker's identity. If missing or incorrect, verification fails.
  2. Step 2: Predict client behavior on truststore error

    Kafka client will fail to establish SSL connection if truststore cannot be loaded or is invalid.
  3. Final Answer:

    The client will fail to connect due to truststore loading error -> Option D
  4. Quick Check:

    Incorrect truststore causes connection failure [OK]
Quick Trick: Truststore errors block SSL connection, no fallback [OK]
Common Mistakes:
  • Assuming client connects without encryption
  • Thinking client uses default certificates automatically
  • Believing connection succeeds with warnings

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes