QuizzesKafka Security (TLS & SASL) — Concept Check
intermediate
kafka

Kafka Security (TLS & SASL) — Concept Check

Questions on Kafka Security (TLS & SASL). Enable TLS for encryption in transit; use SASL/PLAIN, SASL/SCRAM, or SASL/OAUTHBEARER for authentication; ACLs control per-topic produce/consume permissions.

8 minutes 8 questions Pass at 70%
Time Limit
8 minutes - timer starts when you begin
Change Answers Freely
Revisit and change any answer before submitting
Full Review After Submit
Correct answers and explanations shown for every question
Auto-submit on timeout
Quiz submits automatically when time runs out

Questions in this quiz

8 questions on Kafka Security (TLS & SASL) — Concept Check. Work through them here, then start the quiz to answer them and see your score.

  1. 1.A Kafka broker is configured with one-way TLS. What is required for a client to connect securely?

    • AA mutual TLS setup with client certificates
    • BA client truststore with the broker's CA certificate
    • CNo additional configuration is needed
    • DA client keystore with the broker's certificate
  2. 2.A company uses SASL/PLAIN for authentication without TLS. What is the security risk?

    • AData is encrypted, but credentials are not
    • BSASL/PLAIN does not support password authentication
    • CSASL/PLAIN requires Kerberos, which is complex
    • DCredentials are sent in plaintext, risking interception
  3. 3.A Kafka client configured with SASL/SCRAM-SHA-256 fails to authenticate. What could be the issue?

    • AThe client truststore is missing the broker's certificate
    • BThe broker is not configured for SCRAM-SHA-256
    • CThe client password is incorrect
    • DThe client is using an expired JWT token
  4. 4.What is a key difference between SASL/SCRAM and SASL/PLAIN?

    • ASASL/SCRAM uses challenge-response; SASL/PLAIN sends plaintext
    • BSASL/SCRAM uses OAuth tokens; SASL/PLAIN uses passwords
    • CSASL/SCRAM is only for inter-broker communication
    • DSASL/SCRAM requires Kerberos; SASL/PLAIN does not
  5. 5.A Kafka broker is set up with mTLS. What additional configuration is needed for clients?

    • AClients must use SASL/PLAIN for authentication
    • BClients need only the broker's CA certificate
    • CNo additional configuration is needed for clients
    • DClients must have a keystore with their own certificates
  6. 6.How are ACLs used in Kafka authorisation?

    • AThey control produce/consume permissions per topic
    • BThey authenticate users with passwords
    • CThey encrypt data in transit
    • DThey store credentials as salted hashes
  7. 7.A Kafka client using SASL/OAUTHBEARER cannot authenticate. What might be wrong?

    • AThe client truststore is missing the broker's certificate
    • BThe client is using SCRAM-SHA-256 instead
    • CThe broker is configured for mTLS only
    • DThe OAuth2 provider is unreachable
  8. 8.What does setting 'ssl.client.auth=required' in broker configuration imply?

    • AClients only need the broker's CA certificate
    • BOnly the broker verifies its identity to clients
    • CClients must present certificates for mTLS
    • DNo authentication is needed for clients