Exam KCNA Topic 4 Question 164 Discussion

Actual exam question for Linux Foundation's KCNA exam
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?

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

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

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.

0
0
0
10