Bird
0
0

A Kafka deployment YAML file is missing the 'selector' field under 'spec'. What issue will this cause in a cloud-native environment?

medium📝 Debug Q6 of 15
Kafka - Kubernetes and Cloud Deployment
A Kafka deployment YAML file is missing the 'selector' field under 'spec'. What issue will this cause in a cloud-native environment?
AThe Kafka topic configuration will be ignored.
BKafka brokers will run normally without any issues.
CThe Deployment will automatically add a default selector.
DThe Deployment will fail to manage pods correctly, causing unstable Kafka brokers.
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of 'selector' in Kubernetes Deployment

    The selector tells Deployment which pods it manages; missing it breaks pod management.
  2. Step 2: Consequence for Kafka brokers

    Without selector, Deployment cannot track pods, causing unstable Kafka broker management.
  3. Final Answer:

    The Deployment will fail to manage pods correctly, causing unstable Kafka brokers. -> Option D
  4. Quick Check:

    Missing selector = Deployment mismanages pods [OK]
Quick Trick: Always include selector in Deployment spec [OK]
Common Mistakes:
MISTAKES
  • Assuming Deployment adds default selector
  • Thinking Kafka topics depend on Deployment selector
  • Believing brokers run fine without selector

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes