Choose the main function of a Deployment in Kubernetes.
Think about what keeps your app running smoothly even if some parts fail.
A Deployment manages Pods by creating, updating, and scaling them to maintain the desired state.
What is the output of the following command after scaling the Deployment to 3 replicas?
kubectl get deployment myapp
Scaling to 3 replicas means all 3 should be ready and available.
The READY column shows how many Pods are running and ready out of the desired replicas. After scaling to 3, all 3 should be ready.
Which YAML snippet correctly configures a Deployment to use a rolling update strategy with max 1 unavailable Pod?
RollingUpdate with maxUnavailable controls how many Pods can be down during update.
Option A correctly sets the strategy type and maxUnavailable to 1, allowing one Pod to be unavailable during updates.
You notice your Deployment keeps creating new Pods and old ones are terminating repeatedly. What is the most likely cause?
Think about what triggers a new ReplicaSet creation in a Deployment.
Changing the Pod template causes Kubernetes to create a new ReplicaSet and terminate old Pods to match the new spec.
Arrange the steps in the correct order to update a Deployment without downtime.
Think about the natural flow from editing to applying and then Kubernetes handling the rollout.
First update the manifest, then apply it. Kubernetes then creates new Pods and gradually removes old ones to avoid downtime.