Bird
0
0

After enabling SASL, clients fail to authenticate with error 'SASL authentication failed'. What should you check first?

medium📝 Debug Q7 of 15
Kafka - Security
After enabling SASL, clients fail to authenticate with error 'SASL authentication failed'. What should you check first?
ARestart ZooKeeper service
BVerify client credentials and mechanism match broker settings
CIncrease broker log retention time
DDisable SSL encryption
Step-by-Step Solution
Solution:
  1. Step 1: Understand SASL authentication failure causes

    Common cause is mismatch or incorrect client credentials or SASL mechanism.
  2. Step 2: Identify first troubleshooting step

    Check client credentials and SASL mechanism configuration against broker settings.
  3. Final Answer:

    Verify client credentials and mechanism match broker settings -> Option B
  4. Quick Check:

    SASL failure = check credentials and mechanism [OK]
Quick Trick: Match client SASL config with broker [OK]
Common Mistakes:
MISTAKES
  • Restarting unrelated services first
  • Disabling SSL unnecessarily
  • Changing unrelated broker settings

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes