0
0
Kafkadevops~20 mins

Helm charts for Kafka - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Kafka Helm Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Predict Output
intermediate
2:00remaining
What is the output of Helm install command with default Kafka chart values?

You run the command helm install my-kafka bitnami/kafka with default values. What will be the status of the Kafka pods immediately after installation?

AKafka pods will be in <strong>Pending</strong> state indefinitely due to missing PVCs.
BKafka pods will be in <strong>Running</strong> state after a few seconds.
CKafka pods will fail to start with <strong>CrashLoopBackOff</strong> error.
DKafka pods will be <strong>Completed</strong> and exit immediately.
Attempts:
2 left
💡 Hint

Default Bitnami Kafka Helm chart provisions persistent storage and readiness probes.

🧠 Conceptual
intermediate
1:30remaining
Which Helm value controls the number of Kafka broker replicas?

In the Kafka Helm chart, which value key sets how many Kafka broker pods will be created?

AreplicaCount
Bbrokers.count
Ckafka.brokerReplicas
Dbroker.replicas
Attempts:
2 left
💡 Hint

Look for the common Helm pattern for replica count.

🔧 Debug
advanced
2:30remaining
Why does Kafka pod fail with 'CrashLoopBackOff' after Helm install?

You installed Kafka using Helm with a custom values file that disables persistence (persistence.enabled=false). The Kafka pod fails with CrashLoopBackOff. What is the most likely cause?

AThe Helm chart does not support disabling persistence; it causes syntax errors.
BThe Kafka image version is incompatible with Kubernetes version.
CKafka requires persistent storage; disabling persistence causes startup failure.
DKafka broker count is zero, so no pods are created.
Attempts:
2 left
💡 Hint

Think about Kafka's need for data storage and state.

📝 Syntax
advanced
2:00remaining
Identify the correct Helm values YAML snippet to enable Kafka TLS encryption

Which YAML snippet correctly enables TLS encryption for Kafka brokers in the Helm values file?

A
tls:
  enabled: true
  autoGenerate: true
B
tls:
  enabled: yes
  autoGenerated: true
C
tls:
  enable: true
  autoGenerated: true
D
tls:
  enabled: true
  autoGenerated: true
Attempts:
2 left
💡 Hint

Check the exact key names and boolean values.

🚀 Application
expert
3:00remaining
How to upgrade Kafka Helm chart to add a new broker without downtime?

You have a Kafka cluster deployed with 3 brokers using Helm. You want to upgrade the cluster to 4 brokers without downtime. Which approach is correct?

AUpdate <code>replicaCount</code> to 4 in values and run <code>helm upgrade</code>. Kafka will add the broker gracefully.
BDelete the Kafka release and reinstall with 4 brokers to avoid conflicts.
CScale the StatefulSet manually to 4 replicas, then update Helm values to match.
DChange <code>replicaCount</code> to 4 and run <code>helm upgrade --force</code> to recreate pods.
Attempts:
2 left
💡 Hint

Think about Helm upgrade behavior and Kafka broker scaling.