Bird
0
0

Given the following YAML snippet for a Kafka cluster managed by Strimzi:

medium📝 Command Output Q13 of 15
Kafka - Kubernetes and Cloud Deployment
Given the following YAML snippet for a Kafka cluster managed by Strimzi:
apiVersion: kafka.strimzi.io/v1beta2
kind: Kafka
metadata:
  name: my-cluster
spec:
  kafka:
    replicas: 3
    storage:
      type: ephemeral
  zookeeper:
    replicas: 3
    storage:
      type: ephemeral

What will be the number of Kafka broker pods created in the Kubernetes cluster?
A3
B0
C6
D1
Step-by-Step Solution
Solution:
  1. Step 1: Identify Kafka replicas in YAML

    The replicas field under kafka is set to 3, meaning 3 Kafka broker pods.
  2. Step 2: Understand pod creation

    Strimzi creates one pod per replica, so 3 Kafka broker pods will be created.
  3. Final Answer:

    3 -> Option A
  4. Quick Check:

    Kafka replicas = 3 pods [OK]
Quick Trick: Kafka replicas number = Kafka pods count [OK]
Common Mistakes:
MISTAKES
  • Adding Kafka and Zookeeper replicas together
  • Confusing ephemeral storage with pod count
  • Assuming default pod count if replicas missing

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes