Bird
0
0

You updated the Kafka resource YAML to increase replicas from 2 to 4 but only 2 broker pods are running. What is a likely cause?

medium📝 Troubleshoot Q7 of 15
Kafka - Kubernetes and Cloud Deployment
You updated the Kafka resource YAML to increase replicas from 2 to 4 but only 2 broker pods are running. What is a likely cause?
AKafka cluster does not support more than 2 replicas
BYou forgot to apply the YAML changes
CStrimzi Operator is not running or has errors
DKubernetes does not allow scaling pods
Step-by-Step Solution
Solution:
  1. Step 1: Understand Strimzi Operator role in scaling

    Strimzi Operator watches Kafka CR and creates pods accordingly. If it's down, pods won't scale.
  2. Step 2: Check other options

    Kafka supports more replicas, applying YAML is necessary but question implies it was done, Kubernetes allows scaling.
  3. Final Answer:

    Strimzi Operator is not running or has errors -> Option C
  4. Quick Check:

    Operator down = No pod scaling [OK]
Quick Trick: Strimzi Operator must be healthy for scaling to work [OK]
Common Mistakes:
MISTAKES
  • Assuming Kafka limits replicas to 2
  • Forgetting to apply YAML changes
  • Thinking Kubernetes blocks scaling

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes