Exam KCNA Topic 4 Question 164 Discussion
Actual exam question for Linux Foundation's KCNA exam
Question #: 164
Topic #: 4
Question #: 164
Topic #: 4
You have a Deployment with the following YAML definition:

You want to update the image to 'my-app:v2' without deleting and recreating the Deployment. Which Kubernetes command can you use to achieve this update?

You want to update the image to 'my-app:v2' without deleting and recreating the Deployment. Which Kubernetes command can you use to achieve this update?
Suggested Answer: D Vote an answer
The 'kubectl set image' command is specifically designed to update the container image within a Deployment without needing to delete and recreate it. It allows you to target a specific container within the Deployment and specify the new image.
by Amy at Aug 17, 2026, 10:53 AM
0
0
0
10
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).