Bird
0
0

What is the main purpose of a Deployment in Kubernetes when defined using a YAML file?

easy📝 Conceptual Q11 of 15
Kubernetes - ReplicaSets and Deployments
What is the main purpose of a Deployment in Kubernetes when defined using a YAML file?
ATo manage and update multiple copies of an application smoothly
BTo store data persistently across pods
CTo expose an application to the internet
DTo define network policies between pods
Step-by-Step Solution
Solution:
  1. Step 1: Understand Deployment role

    A Deployment manages the lifecycle of pods, ensuring the desired number of replicas run and updates happen smoothly.
  2. Step 2: Compare options

    Options B, C, and D describe other Kubernetes resources (PersistentVolume, Service, NetworkPolicy), not Deployment.
  3. Final Answer:

    To manage and update multiple copies of an application smoothly -> Option A
  4. Quick Check:

    Deployment = Manage app replicas and updates [OK]
Quick Trick: Deployments control app copies and updates, not storage or networking [OK]
Common Mistakes:
  • Confusing Deployment with Service or PersistentVolume
  • Thinking Deployment exposes apps externally
  • Assuming Deployment manages network policies

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes