Question 1
Topic: Application Design and Build
Skill tested: Update a Deployment image while preserving its selector and rollout configuration.
A team publishes a security-patched image for its web application as `registry.example.com/portal:2.4.1`. The running Deployment is named `portal` in namespace `apps`; its existing Pod template, labels, probes, and resource settings have been reviewed and must remain unchanged. The release process requires Kubernetes to manage replacement Pods through the existing Deployment rather than creating a second workload. Which action most directly applies the new image version while retaining the existing workload configuration?
Changing the image in the existing Deployment's Pod template creates a new revision, and the Deployment controller replaces Pods according to its rollout strategy. This preserves the reviewed template settings and keeps the existing workload in control. A second Deployment creates a separate workload rather than updating the existing one. Changing an individual Pod does not update its owning Deployment's template, so reconciliation can restore the old specification. Adding another container changes the application composition instead of replacing the application version.