Kubernetes and Cloud Native Associate (KCNA) — Question 80
What methods can you use to scale a deployment?
Answer options
- A. With kubectl edit deployment exclusively.
- B. With kubectl scale-up deployment exclusively.
- C. With kubectl scale deployment and kubectl edit deployment.
- D. With kubectl scale deployment exclusively.
Correct answer: C
Explanation
The correct answer is C because both 'kubectl scale deployment' and 'kubectl edit deployment' can be used to adjust the number of replicas in a deployment. Option A is incorrect as it limits the method to just editing, while option B is not valid since 'kubectl scale-up deployment' is not a recognized command. Option D, while valid for scaling, does not include the ability to edit the deployment configuration.