Bird
0
0

You want to maintain a Kubernetes resource declaratively and update it frequently. Which command should you use and why?

hard📝 Workflow Q8 of 15
Kubernetes - kubectl Essential Commands
You want to maintain a Kubernetes resource declaratively and update it frequently. Which command should you use and why?
Akubectl create, because it ensures resource is created fresh each time
Bkubectl apply, because it tracks changes and updates resource safely
Ckubectl delete, because it removes old resource before creating new
Dkubectl get, because it shows current resource state
Step-by-Step Solution
Solution:
  1. Step 1: Understand declarative management

    Declarative means describing desired state and letting system update resource accordingly.
  2. Step 2: Choose command for frequent updates

    kubectl apply tracks changes and updates resource safely without deleting.
  3. Final Answer:

    kubectl apply, because it tracks changes and updates resource safely -> Option B
  4. Quick Check:

    Apply is best for declarative frequent updates = B [OK]
Quick Trick: Use apply for declarative, safe updates of resources [OK]
Common Mistakes:
  • Using create repeatedly causing errors
  • Deleting resource unnecessarily
  • Confusing get with update

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes