An application runs in Amazon EKS under a Kubernetes Deployment. A developer must release a new image while retaining declarative management and the existing Service endpoint. What should the developer update?
Show the answer
Correct answerA. The image reference in the Deployment's Pod template
AWhy this is right: Updating the Pod template image triggers a controller-managed rollout while retaining the Service.
BWhy not this: Individual Pod edits do not update the Deployment's desired state and are not the declarative release mechanism.
CWhy not this: Changing the replica count scales the existing application version rather than selecting a new image.
DWhy not this: A Service selects endpoints and routes traffic; an image annotation does not deploy containers.
Changing the Deployment's Pod template image triggers a rollout managed by the Deployment controller. Editing individual Pods does not update the controller's desired state, and a Service routes traffic rather than defining container images.