Bird
0
0

Given this Kafka cluster YAML snippet managed by Strimzi:

medium📝 Command Output Q4 of 15
Kafka - Kubernetes and Cloud Deployment
Given this Kafka cluster YAML snippet managed by Strimzi:
spec:
  kafka:
    replicas: 3
    listeners:
      - name: plain
        port: 9092
        type: internal
        tls: false

What will be the number of Kafka broker pods created?
A3
B1
C0
DDepends on listener count
Step-by-Step Solution
Solution:
  1. Step 1: Identify replicas count in Kafka spec

    The replicas field under kafka.spec is set to 3, indicating 3 broker pods.
  2. Step 2: Understand listener impact

    Listeners define network access, not pod count. Pod count depends on replicas only.
  3. Final Answer:

    3 -> Option A
  4. Quick Check:

    Kafka replicas = Broker pods count = 3 [OK]
Quick Trick: Kafka broker pods = replicas count, listeners don't affect pod number [OK]
Common Mistakes:
  • Confusing listener count with pod count
  • Assuming default replicas if not specified
  • Thinking TLS affects pod number

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes