0
0
Kafkadevops~20 mins

Kafka on Kubernetes (Strimzi) - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Strimzi Kafka Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding Strimzi Kafka Cluster Custom Resource

Which field in the Strimzi Kafka custom resource defines the number of Kafka broker replicas?

Aspec.kafka.brokers.count
Bspec.zookeeper.replicas
Cmetadata.replicas
Dspec.kafka.replicas
Attempts:
2 left
💡 Hint

Think about where the Kafka broker count is configured inside the Kafka resource spec.

💻 Command Output
intermediate
1:30remaining
Output of Kafka Topic List Command in Strimzi

What is the output of this command when run inside a Kafka pod managed by Strimzi?

bin/kafka-topics.sh --bootstrap-server localhost:9092 --list
ANo topics found
BError: Could not connect to bootstrap server
C
my-topic
another-topic
DUsage: kafka-topics.sh [options]
Attempts:
2 left
💡 Hint

Assume the Kafka cluster has two topics named 'my-topic' and 'another-topic'.

Configuration
advanced
2:00remaining
Correct YAML for Kafka User Authentication with TLS

Which YAML snippet correctly configures a KafkaUser resource with TLS authentication in Strimzi?

A
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaUser
metadata:
  name: my-user
spec:
  authentication:
    type: tls
B
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaUser
metadata:
  name: my-user
spec:
  auth:
    type: tls
C
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaUser
metadata:
  name: my-user
spec:
  authentication:
    tls: true
D
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaUser
metadata:
  name: my-user
spec:
  authentication:
    type: scram-sha-512
Attempts:
2 left
💡 Hint

Look for the correct field names and values for TLS authentication.

Troubleshoot
advanced
2:00remaining
Troubleshooting Kafka Broker CrashLoopBackOff in Strimzi

You see a Kafka broker pod stuck in CrashLoopBackOff after deploying Strimzi Kafka cluster. Which of these is the most likely cause?

AIncorrect TLS certificates or missing secrets for broker authentication
BZookeeper pods are running normally
CKafkaUser resource is missing
DKafka topics are empty
Attempts:
2 left
💡 Hint

Think about what can cause Kafka broker pods to fail starting repeatedly.

🔀 Workflow
expert
3:00remaining
Order of Steps to Upgrade Kafka Cluster with Strimzi

Arrange the correct order of steps to safely upgrade a Kafka cluster managed by Strimzi without downtime.

A1,3,4,2
B4,1,2,3
C4,2,1,3
D1,4,2,3
Attempts:
2 left
💡 Hint

Think about what must be done before changing the cluster and what to verify after.