Bird
0
0

You want to secure Kafka communication with SSL and also require client authentication. Which configuration combination is correct?

hard📝 Application Q15 of 15
Kafka - Security
You want to secure Kafka communication with SSL and also require client authentication. Which configuration combination is correct?
ABroker: security.protocol=SSL; Client: security.protocol=PLAINTEXT
BBroker: security.protocol=PLAINTEXT; Client: security.protocol=SSL
CBroker: security.protocol=SSL, ssl.client.auth=required; Client: security.protocol=SSL, ssl.keystore.location set
DBroker: security.protocol=SSL, ssl.client.auth=none; Client: security.protocol=SSL
Step-by-Step Solution
Solution:
  1. Step 1: Understand client authentication in Kafka SSL

    To require client authentication, broker must set ssl.client.auth=required and clients must provide keystore with their certificates.
  2. Step 2: Verify correct protocol settings

    Both broker and client must use security.protocol=SSL to enable SSL communication.
  3. Step 3: Eliminate incorrect options

    Options with PLAINTEXT protocol or ssl.client.auth=none do not enforce client authentication.
  4. Final Answer:

    Broker: security.protocol=SSL, ssl.client.auth=required; Client: security.protocol=SSL, ssl.keystore.location set -> Option C
  5. Quick Check:

    Client auth requires ssl.client.auth=required and client keystore [OK]
Quick Trick: Client auth needs broker ssl.client.auth=required and client keystore [OK]
Common Mistakes:
  • Setting broker to PLAINTEXT while client uses SSL
  • Not setting ssl.client.auth to required on broker
  • Forgetting client keystore for authentication

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes