Application Deployment: CKAD practice questions

Application Deployment is 21% of the free CKAD mock (10 of 50 questions). Pick an answer to see right away whether it is correct, with the explanation and the documentation section it comes from.

CK.II · CKAD practice question

A Deployment has progressDeadlineSeconds: 30 and a new ReplicaSet takes 45 seconds to become ready due to a slow image pull. What happens to the Deployment object itself?

Choose one answer
Check answer and explanation

Correct answer: It remains in the cluster and reports Progressing=False with reason ProgressDeadlineExceeded, without automatically rolling back

Explanation

progressDeadlineSeconds marks the Deployment status condition Progressing=False (ProgressDeadlineExceeded) after the deadline expires, but does not auto-delete or auto-rollback the Deployment.

Common trap

progressDeadlineSeconds marks the Deployment status condition Progressing=False (ProgressDeadlineExceeded) after the deadline expires, but does not auto-delete or auto-rollback the Deployment.

Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.

Report an error in this question

Open this question on its own page


CK.II · CKAD practice question

A Deployment has replicas: 3, maxSurge: 1, and maxUnavailable: 0. During a rolling update, which sequence of Pod counts is valid?

Choose one answer
Check answer and explanation

Correct answer: 3 -> 4 (1 surge Pod created) -> 3 (1 old Pod terminated) -> ... -> 3 Ready with new template

Explanation

With maxUnavailable: 0, no existing Pod can become unavailable before replacement capacity exists, so maxSurge: 1 allows up to 4 Pods temporarily while keeping at least 3 available.

Common trap

With maxUnavailable: 0, no existing Pod can become unavailable before replacement capacity exists, so maxSurge: 1 allows up to 4 Pods temporarily while keeping at least 3 available.

Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.

Report an error in this question

Open this question on its own page


CK.II · CKAD practice question

A Deployment is stuck in Progressing condition with message 'ReplicaSet ... has timed out progressing' because new Pods fail readiness probes. What is the fastest way to return traffic to the previous working version using kubectl?

Choose one answer
Check answer and explanation

Correct answer: kubectl rollout undo deployment/ -n

Explanation

kubectl rollout undo reverts the Deployment's Pod template to the previous revision, scaling down the failing ReplicaSet and restoring the prior ReplicaSet.

Common trap

kubectl rollout undo reverts the Deployment's Pod template to the previous revision, scaling down the failing ReplicaSet and restoring the prior ReplicaSet.

Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.

Report an error in this question

Open this question on its own page


CK.II · CKAD practice question

A Deployment named checkout has revisionHistoryLimit: 3 and has undergone 6 rollouts. How many old ReplicaSets does the Deployment controller typically retain?

Choose one answer
Check answer and explanation

Correct answer: At most 3 old ReplicaSets (plus the active ReplicaSet)

Explanation

spec.revisionHistoryLimit controls how many old ReplicaSets Kubernetes keeps for rollbacks; the default is 10, and setting 3 retains up to 3 old ReplicaSets.

Common trap

spec.revisionHistoryLimit controls how many old ReplicaSets Kubernetes keeps for rollbacks; the default is 10, and setting 3 retains up to 3 old ReplicaSets.

Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.

Report an error in this question

Open this question on its own page


CK.II · CKAD practice question

After running kubectl rollout pause deployment/api -n staging and updating the container image and environment variables, which command resumes the rollout?

Choose one answer
Check answer and explanation

Correct answer: kubectl rollout resume deployment/api -n staging

Explanation

kubectl rollout resume re-enables rollout processing on a paused Deployment so the updated Pod template rolls out.

Common trap

kubectl rollout resume re-enables rollout processing on a paused Deployment so the updated Pod template rolls out.

Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.

Report an error in this question

Open this question on its own page


CK.II · CKAD practice question

In a Kustomize kustomization.yaml file, which field prepends a consistent prefix to the metadata.name of generated resources (such as Deployments and ConfigMaps)?

Choose one answer
Check answer and explanation

Correct answer: namePrefix

Explanation

namePrefix prepends a string to resource names generated by Kustomize and automatically updates matching references where supported.

Common trap

namePrefix prepends a string to resource names generated by Kustomize and automatically updates matching references where supported.

Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.

Report an error in this question

Open this question on its own page


CK.II · CKAD practice question

In a Kustomize overlay, how do you override the container image tag of deployment/worker to worker:v1.8.2 without editing the base manifest?

Choose one answer
Check answer and explanation

Correct answer: Configure images: with name, newName, and newTag in kustomization.yaml

Explanation

Kustomize's images transformer field lets you rewrite image names and tags cleanly across matching resources in an overlay.

Common trap

Kustomize's images transformer field lets you rewrite image names and tags cleanly across matching resources in an overlay.

Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.

Report an error in this question

Open this question on its own page


CK.II · CKAD practice question

In a Kustomize overlay, you want to apply a Strategic Merge Patch from file patch-env.yaml to Deployment api. Which kustomization.yaml field lists that patch?

Choose one answer
Check answer and explanation

Correct answer: patches: [{ path: patch-env.yaml }]

Explanation

The patches list in kustomization.yaml accepts objects specifying path (and optional target selectors) to apply patches to matching resources.

Common trap

The patches list in kustomization.yaml accepts objects specifying path (and optional target selectors) to apply patches to matching resources.

Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.

Report an error in this question

Open this question on its own page


CK.II · CKAD practice question

In Kustomize, which file defines resources, transformations, patches, and bases for a directory?

Choose one answer
Check answer and explanation

Correct answer: kustomization.yaml

Explanation

Kustomize uses kustomization.yaml as its declarative configuration file to assemble and transform Kubernetes manifests.

Common trap

Kustomize uses kustomization.yaml as its declarative configuration file to assemble and transform Kubernetes manifests.

Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.

Report an error in this question

Open this question on its own page


CK.II · CKAD practice question

On Kubernetes v1.37, you create a HorizontalPodAutoscaler targeting a Deployment with minReplicas: 0 and maxReplicas: 5 using an external metric. What is true about this configuration?

Choose one answer
Check answer and explanation

Correct answer: Supported via Beta HPA scale-to-zero for object and external metrics (enabled by default in v1.37), whereas CPU/memory metrics do not scale to zero

Explanation

Kubernetes v1.37 graduated HPA scale-to-zero (minReplicas: 0) for object and external metrics to Beta enabled by default, while CPU and memory metrics are not supported for scaling to zero.

Common trap

Kubernetes v1.37 graduated HPA scale-to-zero (minReplicas: 0) for object and external metrics to Beta enabled by default, while CPU and memory metrics are not supported for scaling to zero.

Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.

Report an error in this question

Open this question on its own page


CK.II · CKAD practice question

When Kustomize generates a ConfigMap via configMapGenerator, why does it append a content hash suffix to the ConfigMap name by default?

Choose one answer
Check answer and explanation

Correct answer: So changes to ConfigMap data trigger rolling updates on Pods that reference it

Explanation

Appending a hash suffix changes the ConfigMap name whenever its contents change, causing referencing Pod templates to update and roll out cleanly.

Common trap

Appending a hash suffix changes the ConfigMap name whenever its contents change, causing referencing Pod templates to update and roll out cleanly.

Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.

Report an error in this question

Open this question on its own page


CK.II · CKAD practice question

Which command pauses an ongoing rollout of Deployment web in namespace prod so you can inspect or batch multiple template changes before resuming?

Choose one answer
Check answer and explanation

Correct answer: kubectl rollout pause deployment/web -n prod

Explanation

kubectl rollout pause suspends rollout reconciliation on a Deployment until you run kubectl rollout resume.

Common trap

kubectl rollout pause suspends rollout reconciliation on a Deployment until you run kubectl rollout resume.

Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.

Report an error in this question

Open this question on its own page


CK.II · CKAD practice question

Which command previews the exact diff of Kubernetes manifests between a currently installed Helm release and a proposed upgrade without applying changes?

Choose one answer
Check answer and explanation

Correct answer: helm diff upgrade -f values.yaml

Explanation

The helm diff plugin (helm diff upgrade) compares live release manifests against upgraded manifests before running helm upgrade.

Common trap

The helm diff plugin (helm diff upgrade) compares live release manifests against upgraded manifests before running helm upgrade.

Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.

Report an error in this question

Open this question on its own page


CK.II · CKAD practice question

Which Deployment update strategy creates new Pods before terminating old Pods, subject to maxSurge and maxUnavailable?

Choose one answer
Check answer and explanation

Correct answer: RollingUpdate

Explanation

RollingUpdate is the default Deployment strategy that gradually replaces old ReplicaSet Pods with new ReplicaSet Pods according to maxSurge and maxUnavailable.

Common trap

RollingUpdate is the default Deployment strategy that gradually replaces old ReplicaSet Pods with new ReplicaSet Pods according to maxSurge and maxUnavailable.

Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.

Report an error in this question

Open this question on its own page


CK.II · CKAD practice question

Which Helm command installs chart oci://registry.example.com/charts/billing as release billing-svc in namespace payments, creating the namespace if it does not exist?

Choose one answer
Check answer and explanation

Correct answer: helm install billing-svc oci://registry.example.com/charts/billing -n payments --create-namespace

Explanation

helm install -n --create-namespace installs the chart (including OCI charts) and creates the target namespace if missing.

Common trap

helm install -n --create-namespace installs the chart (including OCI charts) and creates the target namespace if missing.

Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.

Report an error in this question

Open this question on its own page


CK.II · CKAD practice question

Which Helm command lists installed releases across all namespaces?

Choose one answer
Check answer and explanation

Correct answer: helm list -A

Explanation

helm list -A (or --all-namespaces) displays Helm releases across every namespace in the cluster.

Common trap

helm list -A (or --all-namespaces) displays Helm releases across every namespace in the cluster.

Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.

Report an error in this question

Open this question on its own page


CK.II · CKAD practice question

Which Helm subcommand rolls back release payments in namespace billing to revision 2?

Choose one answer
Check answer and explanation

Correct answer: helm rollback payments 2 -n billing

Explanation

helm rollback [-n ] reverts a Helm release to a specific prior revision number.

Common trap

helm rollback [-n ] reverts a Helm release to a specific prior revision number.

Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.

Report an error in this question

Open this question on its own page


CK.II · CKAD practice question

Which kubectl command updates the image of container web in deployment/frontend to nginx:1.27-alpine in namespace web?

Choose one answer
Check answer and explanation

Correct answer: kubectl set image deployment/frontend web=nginx:1.27-alpine -n web

Explanation

kubectl set image / = triggers a rolling update on the target workload.

Common trap

kubectl set image / = triggers a rolling update on the target workload.

Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.

Report an error in this question

Open this question on its own page


CK.II · CKAD practice question

You run helm upgrade api charts/api -n prod --set image.tag=2.4.0 --atomic, and the new Pods fail readiness checks past the timeout. What does --atomic do?

Choose one answer
Check answer and explanation

Correct answer: Automatically rolls back the release to the previous working revision and purges failed changes

Explanation

In Helm, --atomic triggers an automatic rollback to the prior release state if the upgrade or install fails before resources become ready.

Common trap

In Helm, --atomic triggers an automatic rollback to the prior release state if the upgrade or install fails before resources become ready.

Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.

Report an error in this question

Open this question on its own page


CK.II · CKAD practice question

You want to perform a canary rollout of service payments (selected by app: payments) by deploying a second Deployment payments-canary with 1 replica and labels app: payments, track: canary alongside payments-stable with 9 replicas and labels app: payments, track: stable. Approximately what share of traffic hits the canary initially?

Choose one answer
Check answer and explanation

Correct answer: About 10% (1 out of 10 ready Pods matching app: payments)

Explanation

A standard Service with selector app: payments load-balances across all ready backing endpoints matching app: payments, so 1 canary Pod out of 10 total Pods receives roughly 10% of traffic.

Common trap

A standard Service with selector app: payments load-balances across all ready backing endpoints matching app: payments, so 1 canary Pod out of 10 total Pods receives roughly 10% of traffic.

Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.

Report an error in this question

Open this question on its own page


Back to all topics