Bird
0
0

If you run kubectl get pods -l strimzi.io/kind=Kafka after deploying a Strimzi Kafka cluster with 2 replicas, what output do you expect?

medium📝 Command Output Q5 of 15
Kafka - Kubernetes and Cloud Deployment
If you run kubectl get pods -l strimzi.io/kind=Kafka after deploying a Strimzi Kafka cluster with 2 replicas, what output do you expect?
ATwo Kafka broker pods listed
BNo pods listed
COne Zookeeper pod listed
DPods unrelated to Kafka
Step-by-Step Solution
Solution:
  1. Step 1: Understand label selector

    The label strimzi.io/kind=Kafka selects Kafka cluster pods, which include broker pods.
  2. Step 2: Match replicas to pods

    With 2 replicas, there should be 2 Kafka broker pods matching the label.
  3. Final Answer:

    Two Kafka broker pods listed -> Option A
  4. Quick Check:

    Label selector lists Kafka pods = 2 pods [OK]
Quick Trick: Label selector strimzi.io/kind=Kafka lists Kafka broker pods [OK]
Common Mistakes:
MISTAKES
  • Expecting Zookeeper pods with Kafka label
  • Assuming no pods before ready
  • Confusing label selectors

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes