0
0
Kafkadevops~20 mins

Why securing Kafka protects data - Challenge Your Understanding

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Kafka Security Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Why enable SSL encryption in Kafka?

What is the main benefit of enabling SSL encryption for Kafka communication?

AIt ensures that data sent between Kafka clients and brokers is encrypted, preventing eavesdropping.
BIt speeds up message delivery by compressing data packets.
CIt allows Kafka to store messages in a compressed format on disk.
DIt automatically balances load across Kafka brokers.
Attempts:
2 left
💡 Hint

Think about what encryption does to data traveling over a network.

Predict Output
intermediate
2:00remaining
What happens if Kafka ACLs are not configured?

Consider a Kafka cluster without Access Control Lists (ACLs). What is the likely outcome?

AKafka will reject all client connections by default.
BKafka automatically encrypts all messages to protect data.
COnly authenticated users can access topics, but with limited permissions.
DAny user can produce or consume messages from any topic, risking data leaks.
Attempts:
2 left
💡 Hint

Think about what happens if no permissions are set on resources.

Predict Output
advanced
2:00remaining
What output shows Kafka client authentication failure?

Given this Kafka client error log snippet, what is the cause?

[2024-06-01 10:00:00,000] ERROR Failed authentication for user 'client1' (org.apache.kafka.common.security.authenticator.AbstractLogin)
AThe client successfully connected but has no topic permissions.
BThe Kafka broker is down and cannot accept connections.
CThe client failed to provide valid credentials, so access was denied.
DThe client is using an unsupported Kafka version.
Attempts:
2 left
💡 Hint

Look for keywords related to authentication in the error message.

🧠 Conceptual
advanced
2:00remaining
Why is Kafka authorization important for data protection?

How does Kafka authorization help protect data in a multi-tenant environment?

AIt restricts which users or applications can read or write to specific topics, preventing unauthorized data access.
BIt compresses data to reduce storage space on Kafka brokers.
CIt automatically backs up Kafka topics to external storage.
DIt monitors network traffic for suspicious activity.
Attempts:
2 left
💡 Hint

Think about controlling who can do what with data.

🚀 Application
expert
3:00remaining
Identify the security risk in this Kafka configuration snippet

Review this Kafka broker configuration snippet and identify the security risk:

listeners=PLAINTEXT://:9092
allow.everyone.if.no.acl.found=true
AThe broker restricts access only to authenticated users, which may block some clients.
BThe broker allows connections without encryption and permits all access if no ACLs are set, risking data exposure.
CThe broker uses SSL encryption but has weak cipher suites enabled.
DThe broker is configured to reject all client connections by default.
Attempts:
2 left
💡 Hint

Consider what PLAINTEXT means and the effect of allowing everyone if no ACLs exist.