Courseiva
Knowledge + Practice
CertificationsVendorsCareer RoadmapsLabs & ToolsStudy GuidesGlossaryPractice Questions
C
Courseiva

Free IT certification practice questions with explained answers for CCNA, CompTIA, AWS, Azure, Google Cloud, and more.

Certification Practice Questions

CCNA practice questionsSecurity+ SY0-701 practice questionsAWS SAA-C03 practice questionsAZ-104 practice questionsAZ-900 practice questionsCLF-C02 practice questionsA+ Core 1 practice questionsGoogle Cloud ACE practice questionsCySA+ CS0-003 practice questionsNetwork+ N10-009 practice questions
View all certifications →

Product

CertificationsCertification PathsExam TopicsPractice TestsExam Dumps vs Practice TestsStudy HubComparisons

Company

AboutContactEditorial PolicyQuestion Writing PolicyTrust Center

Legal

Privacy PolicyTerms of Service

Courseiva is a free IT certification practice platform offering original exam-style practice questions, detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics for Cisco, CompTIA, Microsoft, AWS, and other technology certifications.

© 2026 Courseiva. Courseiva is operated by JTNetSolutions Ltd. All rights reserved.

Courseiva is an independent certification practice platform and is not affiliated with, endorsed by, or sponsored by Cisco, Microsoft, AWS, CompTIA, Google, ISC2, ISACA, or any other certification vendor. Vendor names and certification marks are used only to identify the exams learners are preparing for.

← Application Deployment practice sets

CKAD Application Deployment • Complete Question Bank

CKAD Application Deployment — All Questions With Answers

Complete CKAD Application Deployment question bank — all 0 questions with answers and detailed explanations.

205
Questions
Free
No signup
Certifications/CKAD/Practice Test/Application Deployment/All Questions
Question 1easymultiple choice
Read the full Application Deployment explanation →

A developer wants to deploy a stateless application as a set of identical pods. They need the pods to be distributed across nodes and have stable network identities. Which resource should they use?

Question 2mediummultiple choice
Read the full DNS explanation →

A team is deploying a microservice that must be reachable within the cluster via a stable DNS name. They also need to distribute traffic among pods. Which Kubernetes resource provides both service discovery and load balancing?

Question 3hardmultiple choice
Read the full Application Deployment explanation →

During a deployment update, the rollout is stuck and new pods are not becoming ready. The developer checks the events and sees 'Back-off restarting failed container'. What is the most likely cause?

Question 4easymultiple choice
Read the full Application Deployment explanation →

A developer needs to run a one-time batch job to process data. After completion, the pod should be retained for logs inspection. Which Job configuration parameter should be set?

Question 5mediummultiple choice
Read the full Application Deployment explanation →

A company wants to deploy a stateful database cluster where each pod has its own persistent storage. They need stable network identities and ordered pod creation. Which resource should they use?

Question 6hardmultiple choice
Read the full Application Deployment explanation →

A Deployment has replicas: 5. During a rolling update, the developer sets maxSurge: 2 and maxUnavailable: 1. What is the maximum number of pods that can be running during the update?

Question 7easymultiple choice
Read the full Application Deployment explanation →

A developer wants to ensure that a critical application always runs on every node in the cluster. Which resource should they use?

Question 8mediummultiple choice
Read the full Application Deployment explanation →

A pod is running but not responding to requests. The developer suspects the liveness probe is misconfigured. Which command can they use to check the probe configuration of a running pod?

Question 9hardmultiple choice
Read the full Application Deployment explanation →

A Deployment has replicas: 3 and uses a ConfigMap. The ConfigMap is updated. The developer wants to update the pods to use the new ConfigMap without recreating the Deployment. What is the correct approach?

Question 10easymulti select
Read the full Application Deployment explanation →

Which TWO of the following are valid strategies for updating a Deployment?

Question 11mediummulti select
Read the full Application Deployment explanation →

Which THREE of the following are valid ways to expose a set of pods as a network service?

Question 12hardmulti select
Read the full Application Deployment explanation →

Which TWO of the following conditions must be met for a RollingUpdate to proceed?

Question 13hardmultiple choice
Read the full DNS explanation →

You are deploying a multi-tier application consisting of a frontend web service and a backend API. The frontend is deployed as a Deployment with 3 replicas, exposed via a ClusterIP Service named 'frontend-svc'. The backend is a StatefulSet with 3 replicas, each with its own PersistentVolumeClaim, and exposed via a headless Service named 'backend-svc'. The backend pods need to discover each other via DNS for clustering. After deployment, the backend pods cannot resolve the hostnames of other backend pods. The frontend can reach the backend via the Service name. You verify that the StatefulSet and its Service are correctly named. What is the most likely cause of the issue?

Question 14mediummultiple choice
Read the full Application Deployment explanation →

You are responsible for deploying a critical application that must be highly available. The application consists of a single pod that should always be running on a node that has an SSD. You have two node pools: one with standard HDD and one with SSD. The application must be rescheduled immediately if the node fails. You create a Deployment with replicas: 1 and a nodeSelector for the SSD label. However, after a node failure, the pod is not rescheduled on another SSD node for several minutes. You check the Deployment and it shows the desired replica count is 1 but the current replica count is 0. What is the most likely reason for the delay?

Question 15mediummultiple choice
Read the full NAT/PAT explanation →

A company wants to deploy a stateless web application on Kubernetes. The application needs to be accessible externally via a stable IP address and should support SSL termination at the ingress level. Which resource should be used to route external traffic to the application?

Question 16easymultiple choice
Read the full Application Deployment explanation →

A developer needs to deploy a container that runs a batch job to process data once and then exit. The job should be restarted only if it fails. Which Kubernetes resource should be used?

Question 17hardmultiple choice
Read the full Application Deployment explanation →

A team is deploying a microservice that requires a ConfigMap mounted as a volume. The ConfigMap is expected to be updated frequently, and the application should read the latest values without restarting. Which volume type should be used?

Question 18mediummultiple choice
Read the full Application Deployment explanation →

A company wants to deploy a stateful database on Kubernetes. The database requires stable network identities and persistent storage per pod. Which resource should be used?

Question 19hardmultiple choice
Read the full Application Deployment explanation →

The exhibit shows a Deployment configuration. The application's /health endpoint returns HTTP 200 only after 30 seconds, while /ready returns 200 immediately. After applying this Deployment, what is the expected behavior?

Exhibit

Refer to the exhibit.

apiVersion: apps/v1
kind: Deployment
metadata:
  name: web
spec:
  replicas: 3
  selector:
    matchLabels:
      app: web
  template:
    metadata:
      labels:
        app: web
    spec:
      containers:
      - name: nginx
        image: nginx:1.19
        ports:
        - containerPort: 80
        livenessProbe:
          httpGet:
            path: /health
            port: 80
          initialDelaySeconds: 30
          periodSeconds: 10
        readinessProbe:
          httpGet:
            path: /ready
            port: 80
          initialDelaySeconds: 5
          periodSeconds: 5
Question 20easymulti select
Read the full Application Deployment explanation →

A developer is creating a Deployment with 4 replicas. The application requires a rolling update with zero downtime. Which TWO strategies ensure zero downtime during an update?

Question 21mediummulti select
Read the full Application Deployment explanation →

A team is deploying a multi-container pod with a main application container and a sidecar container for logging. Which THREE statements about pod design are correct?

Question 22easymultiple choice
Study the full QoS explanation →

A developer is deploying a web application that requires 2 GiB of memory and 0.5 CPU cores. The cluster nodes have 4 GiB of memory and 2 CPU cores each. The developer wants to ensure the pod gets guaranteed QoS class. Which resource specification should be used?

Question 23hardmultiple choice
Read the full DNS explanation →

You are deploying a microservice application on a Kubernetes cluster. The application consists of a frontend service (type: ClusterIP) and a backend service (type: ClusterIP). The frontend needs to communicate with the backend via DNS name 'backend-service'. The backend service runs three replicas, each listening on port 8080. You have created the backend service and deployment, and verified that pods are running. However, when you deploy the frontend pod and attempt to curl http://backend-service:8080 from within the frontend, you get 'connection refused'. The frontend pod is in the same namespace as the backend. You check the backend pods and they are all running and ready, and the endpoints object shows the correct pod IPs. You suspect a misconfiguration in the service definition. Which of the following is the most likely cause of the issue?

Question 24mediummultiple choice
Read the full Application Deployment explanation →

A company wants to ensure zero-downtime deployments for a stateless web application running in Kubernetes. They have a single Deployment with 3 replicas and a Service of type LoadBalancer. Which strategy should they use to achieve this?

Question 25hardmulti select
Read the full Application Deployment explanation →

You are deploying a microservice that reads from a ConfigMap and a Secret. The application logs show 'Failed to read configuration: missing key' on startup. Which TWO are likely causes?

Question 26easymultiple choice
Read the full Application Deployment explanation →

The exhibit shows a Deployment manifest. When applied, the pods are created but show 'CrashLoopBackOff'. What is the most likely cause?

Exhibit

Refer to the exhibit.

```
apiVersion: apps/v1
kind: Deployment
metadata:
  name: web
spec:
  replicas: 3
  selector:
    matchLabels:
      app: web
  template:
    metadata:
      labels:
        app: web
    spec:
      containers:
      - name: nginx
        image: nginx:1.21
        ports:
        - containerPort: 80
        livenessProbe:
          httpGet:
            path: /healthz
            port: 8080
          initialDelaySeconds: 3
          periodSeconds: 3
```
Question 27mediumdrag order
Read the full Application Deployment explanation →

Order the steps to expose a Kubernetes Deployment as a ClusterIP Service.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5
Question 28mediumdrag order
Read the full Application Deployment explanation →

Arrange the steps to create a PersistentVolumeClaim and use it in a Pod.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5
Question 29mediummatching
Read the full Application Deployment explanation →

Match each kubectl command to its function.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Create or update resources from a file

Rollback a deployment to a previous revision

Execute a command inside a container

Forward local port to a pod port

Show detailed state of a resource

Question 30mediummatching
Read the full Application Deployment explanation →

Match each volume type to its use case.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Temporary storage that shares a pod's lifecycle

Mounts a file or directory from the host node

Requests durable storage from a PersistentVolume

Inject configuration data as files or env vars

Inject sensitive data as files or env vars

Question 31mediummultiple choice
Read the full Application Deployment explanation →

You have a Deployment named 'frontend' with 4 replicas. You want to perform a rolling update with the following constraints: the number of pods above the desired count should never exceed 1, and the number of unavailable pods should never exceed 0. Which deployment strategy configuration achieves this?

Question 32hardmultiple choice
Review the full routing breakdown →

You are implementing a canary deployment for a microservice named 'api'. The stable version is deployed as 'api-stable' with label 'version: stable'. You create a canary Deployment 'api-canary' with label 'version: canary'. Both Deployments have the same label 'app: api'. You want a Service 'api-svc' to route 90% of traffic to stable and 10% to canary. Which Service configuration achieves this?

Question 33mediummultiple choice
Read the full Application Deployment explanation →

You have installed a Helm chart for 'wordpress' using 'helm install my-wordpress bitnami/wordpress'. Later, you want to check the status of the release. Which command lists the status of all releases?

Question 34easymultiple choice
Read the full Application Deployment explanation →

A Deployment has 3 replicas. You run 'kubectl scale deployment mydeploy --replicas=5'. What happens?

Question 35hardmultiple choice
Read the full Application Deployment explanation →

You have an existing Deployment 'web' created with 'kubectl create deployment web --image=nginx --replicas=3'. You need to change the image to 'nginx:1.19' and record the change. Which command should you use?

Question 36mediummultiple choice
Read the full Application Deployment explanation →

You have a Deployment 'app' with the following strategy configuration: 'type: RollingUpdate', 'rollingUpdate: {maxSurge: 0, maxUnavailable: 1}'. You update the container image. What is the behavior during the update?

Question 37mediummultiple choice
Read the full NAT/PAT explanation →

You are using Kustomize to manage configurations. Your project structure is: 'base/kustomization.yaml', 'overlays/prod/kustomization.yaml'. The base defines a Deployment with image 'nginx:1.18'. The overlay wants to patch the image to 'nginx:1.19'. Which is the correct way to define the patch in the overlay?

Question 38easymultiple choice
Read the full Application Deployment explanation →

Which command is used to undo the most recent rollout of a Deployment named 'myapp'?

Question 39hardmultiple choice
Read the full Application Deployment explanation →

You have a HorizontalPodAutoscaler (HPA) targeting a Deployment. The HPA is configured with 'targetCPUUtilizationPercentage: 50'. The current CPU utilization is 60% across the pods. What action does the HPA take?

Question 40mediummultiple choice
Read the full Application Deployment explanation →

You are performing a blue-green deployment for an application. You have two Deployments: 'app-blue' (current production) and 'app-green' (new version). Both have label 'app: myapp' and are exposed by a Service 'myapp-svc'. How do you switch traffic from blue to green?

Question 41easymultiple choice
Read the full Application Deployment explanation →

You have a YAML file 'deploy.yaml' that defines a Deployment. Which command creates the Deployment if it does not exist, or updates it if it already exists?

Question 42mediummultiple choice
Read the full Application Deployment explanation →

A Helm chart has the following template snippet: '{{ .Values.replicaCount }}'. You want to set replicaCount to 5 during installation. Which command should you use?

Question 43mediummulti select
Read the full Application Deployment explanation →

Which TWO of the following are valid methods to achieve a blue-green deployment in Kubernetes? (Select two.)

Question 44hardmulti select
Read the full Application Deployment explanation →

Which THREE of the following are valid ways to view the rollout history of a Deployment named 'myapp'? (Select three.)

Question 45easymulti select
Read the full Application Deployment explanation →

Which TWO of the following are valid uses of Kubernetes Annotations? (Select two.)

Question 46easymultiple choice
Read the full Application Deployment explanation →

Which kubectl command is used to view the rollout status of a Deployment named 'web-app'?

Question 47mediummultiple choice
Read the full Application Deployment explanation →

A Deployment has been updated with a new image. After running 'kubectl rollout status deployment/myapp', you see that the rollout has stalled. You want to undo the rollout to the previous revision. What command do you run?

Question 48mediummultiple choice
Read the full Application Deployment explanation →

You are implementing a blue-green deployment using Kubernetes Deployments and Services. The 'blue' Deployment runs version 1.0, and the 'green' Deployment runs version 2.0. What is the key mechanism to switch traffic from blue to green?

Question 49hardmultiple choice
Read the full Application Deployment explanation →

You want to perform a canary deployment where 10% of traffic goes to the new version. You have a Deployment 'app-v1' with 10 replicas. You create a second Deployment 'app-v2' with 1 replica and a new Service. What Kubernetes resource is typically used to split traffic between the two Services?

Question 50mediummultiple choice
Read the full Application Deployment explanation →

When using 'kubectl apply' vs 'kubectl create', which statement is correct?

Question 51easymultiple choice
Read the full Application Deployment explanation →

You want to scale a Deployment named 'frontend' to 5 replicas. Which command should you use?

Question 52mediummultiple choice
Read the full Application Deployment explanation →

Which field in a Deployment's rolling update strategy controls the maximum number of pods that can be created above the desired replicas during a rolling update?

Question 53mediummultiple choice
Read the full Application Deployment explanation →

You have a Deployment that uses the 'Recreate' strategy. What happens when you update the pod template (e.g., change the image)?

Question 54hardmultiple choice
Read the full NAT/PAT explanation →

You want to use Kustomize to apply a patch that adds a sidecar container to all pods in a Deployment. Which Kustomize feature should you use?

Question 55easymultiple choice
Read the full Application Deployment explanation →

Which command lists all Helm releases in the current namespace?

Question 56mediummultiple choice
Read the full Application Deployment explanation →

You have created a HorizontalPodAutoscaler (HPA) for a Deployment. The HPA is configured with targetCPUUtilizationPercentage: 50. The current CPU utilization is 80%. What will the HPA do?

Question 57hardmultiple choice
Read the full Application Deployment explanation →

You want to perform a rolling update of a Deployment. The Deployment has a maxSurge=1 and maxUnavailable=0. How many extra pods can be created above the desired count during the update?

Question 58mediummulti select
Read the full Application Deployment explanation →

Which TWO of the following are correct ways to pause a rollout of a Deployment named 'myapp'? (Select TWO)

Question 59mediummulti select
Read the full Application Deployment explanation →

Which THREE of the following are valid Kustomize features? (Select THREE)

Question 60hardmulti select
Review the full routing breakdown →

You need to perform a canary deployment using a Service and two Deployments (stable and canary). Which TWO resources or configurations are typically used to route a percentage of traffic to the canary? (Select TWO)

Question 61easymultiple choice
Read the full Application Deployment explanation →

During a rolling update, you want to ensure that at most 2 pods are unavailable at any time. Which field should you set in the Deployment spec?

Question 62mediummultiple choice
Read the full Application Deployment explanation →

You have a Deployment named 'web-app' with 5 replicas. You run 'kubectl set image deployment/web-app app=nginx:1.21'. What is the effect of this command?

Question 63hardmultiple choice
Read the full NAT/PAT explanation →

You are using a canary deployment pattern with two Deployments: 'web-stable' (version 1) and 'web-canary' (version 2). Both have the label 'app: web'. The Service 'web-svc' selects pods with 'app: web' and 'version: stable'. How do you route traffic to the canary?

Question 64easymultiple choice
Read the full Application Deployment explanation →

Which kubectl command shows the rollout history of a Deployment named 'app'?

Question 65mediummultiple choice
Read the full Application Deployment explanation →

You have a Helm chart for an application. You want to upgrade the release but only if the upgrade does not introduce breaking changes. Which command should you use?

Question 66hardmultiple choice
Read the full Application Deployment explanation →

A Deployment has a rolling update strategy with maxSurge: 1 and maxUnavailable: 0. The Deployment has 4 replicas. During a rollout, what is the maximum number of pods that can exist at any point?

Question 67mediummultiple choice
Read the full Application Deployment explanation →

You need to scale a Deployment named 'frontend' to 10 replicas. Which command correctly accomplishes this?

Question 68easymultiple choice
Read the full Application Deployment explanation →

Which of the following is a valid method to perform a blue-green deployment in Kubernetes?

Question 69hardmultiple choice
Read the full Application Deployment explanation →

You have a Deployment with the following strategy: rollingUpdate: maxSurge: 25%, maxUnavailable: 25%. The Deployment has 4 replicas. During an update, what is the minimum number of pods guaranteed to be available?

Question 70mediummultiple choice
Read the full Application Deployment explanation →

What is the purpose of the 'values.yaml' file in a Helm chart?

Question 71easymultiple choice
Read the full Application Deployment explanation →

Which command lists all Helm releases in the current namespace?

Question 72mediummultiple choice
Read the full Application Deployment explanation →

You want to undo a rollout to the previous revision. Which command should you use?

Question 73mediummulti select
Read the full Application Deployment explanation →

Which TWO of the following are true about Kustomize overlays? (Select 2)

Question 74hardmulti select
Read the full Application Deployment explanation →

Which THREE of the following are valid kubectl commands for managing rollouts? (Select 3)

Question 75easymulti select
Read the full Application Deployment explanation →

Which TWO are valid fields in a Deployment's rollingUpdate configuration? (Select 2)

Question 76easymultiple choice
Read the full Application Deployment explanation →

When performing a rolling update of a Deployment with 'maxSurge: 1' and 'maxUnavailable: 0', how many additional pods can be created above the desired replicas during the update?

Question 77mediummultiple choice
Read the full Application Deployment explanation →

You want to update a Deployment's image from nginx:1.20 to nginx:1.21. Which command will perform a rolling update?

Question 78hardmultiple choice
Read the full Application Deployment explanation →

A Deployment named 'web' has replicas: 3 and update strategy type: Recreate. You run 'kubectl set image deployment/web web=nginx:1.22'. What immediate effect will this have on the existing pods?

Question 79easymultiple choice
Read the full Application Deployment explanation →

Which Helm command installs a chart from a repository?

Question 80mediummultiple choice
Read the full Application Deployment explanation →

You have a Helm release named 'my-app' that you want to revert to revision 3. Which command accomplishes this?

Question 81hardmultiple choice
Review the full routing breakdown →

You are performing a canary deployment using two Deployments: 'app-stable' (replicas: 9) and 'app-canary' (replicas: 1), both with label 'app: myapp'. A Service selects pods with 'app: myapp' and 'version: stable'. How can you route traffic to the canary?

Question 82mediummultiple choice
Read the full Application Deployment explanation →

Which kubectl command can you use to pause a rolling update of a Deployment?

Question 83easymultiple choice
Read the full Application Deployment explanation →

What is the purpose of the 'kubectl rollout status' command?

Question 84mediummultiple choice
Read the full Application Deployment explanation →

You have a Deployment with replicas: 5 and update strategy type: RollingUpdate with maxSurge: 25% and maxUnavailable: 25%. During a rolling update, what is the maximum number of pods that can be unavailable at any given time?

Question 85hardmultiple choice
Read the full Application Deployment explanation →

Which of the following is a correct Kustomize kustomization.yaml configuration for setting an image tag to 'v2'?

Question 86easymultiple choice
Read the full Application Deployment explanation →

Which command scales a Deployment named 'web' to 5 replicas?

Question 87mediummultiple choice
Read the full Application Deployment explanation →

You have an HPA that scales a Deployment based on CPU utilization. You want to prevent the Deployment from scaling down for at least 5 minutes. Which HPA behavior field should you configure?

Question 88mediummulti select
Read the full Application Deployment explanation →

Which TWO of the following are valid methods to perform a blue-green deployment in Kubernetes?

Question 89hardmulti select
Read the full Application Deployment explanation →

Which THREE of the following are valid fields in a Helm chart's values.yaml file that can be used in templates?

Question 90mediummulti select
Read the full Application Deployment explanation →

Which TWO of the following commands are used to inspect the rollout history of a Deployment?

Question 91easymultiple choice
Read the full Application Deployment explanation →

You want to update a Deployment's image to a new version, ensuring that at most 2 pods are unavailable during the rollout. Which field in the Deployment spec should you set?

Question 92mediummultiple choice
Read the full Application Deployment explanation →

A Helm chart is installed with the command 'helm install myapp ./mychart'. You need to upgrade the release with new values from a file 'prod-values.yaml'. Which command is correct?

Question 93hardmultiple choice
Review the full routing breakdown →

You want to perform a canary deployment of a new version of your application. You create a Deployment named 'app-canary' with 1 replica and label 'version: canary'. The existing stable Deployment 'app-stable' has 3 replicas and label 'version: stable'. Both Deployments have the selector 'app: myapp'. You have a Service 'app-service' with selector 'app: myapp, track: stable'. How can you route traffic to the canary?

Question 94easymultiple choice
Read the full Application Deployment explanation →

Which kubectl command can be used to see the rollout status of a Deployment named 'web-app'?

Question 95mediummultiple choice
Read the full Application Deployment explanation →

You have a Deployment with 'replicas: 3' and the HPA is configured with 'targetCPUUtilizationPercentage: 80'. The current CPU usage is at 60% across all pods, but the HPA has scaled up to 5 replicas. What is the most likely reason?

Question 96hardmultiple choice
Read the full Application Deployment explanation →

You are asked to implement a blue-green deployment using Kubernetes Deployments and Services. You have a blue Deployment with label 'version: blue' and a green Deployment with label 'version: green'. Both have selector 'app: myapp'. You need a Service that initially points to blue. How should you configure the Service to switch to green without downtime?

Question 97easymultiple choice
Read the full Application Deployment explanation →

Which of the following is the correct way to scale a Deployment named 'api' to 5 replicas using kubectl?

Question 98mediummultiple choice
Read the full NAT/PAT explanation →

You have a Kustomize overlay that sets 'replicas: 5' in a patch, but the base Deployment has 'replicas: 3'. What is the final number of replicas after applying 'kubectl apply -k overlay/'?

Question 99hardmultiple choice
Read the full Application Deployment explanation →

During a rolling update of a Deployment, you notice that new pods are failing readiness probes. The rollout is stalled. Which command would you use to abort the rollout and revert to the previous revision?

Question 100easymultiple choice
Read the full Application Deployment explanation →

You have a Deployment with the following strategy: type: Recreate. What happens when you update the pod template?

Question 101mediummultiple choice
Read the full Application Deployment explanation →

You run 'kubectl apply -f deployment.yaml' and later 'kubectl replace -f deployment.yaml' on the same file. What is the difference?

Question 102mediummultiple choice
Read the full Application Deployment explanation →

You have a Deployment 'web' with 'maxSurge: 25%' and 'maxUnavailable: 25%'. Current replicas is 4. You update the image. How many pods will be created at most during the rollout?

Question 103mediummulti select
Read the full Application Deployment explanation →

Which TWO of the following are valid ways to expose a canary deployment to a subset of users? (Select two)

Question 104hardmulti select
Read the full Application Deployment explanation →

Which THREE of the following are true about using 'kubectl rollout undo'? (Select three)

Question 105easymulti select
Read the full Application Deployment explanation →

Which TWO of the following are valid fields in a Kustomize kustomization.yaml file? (Select two)

Question 106mediummultiple choice
Read the full Application Deployment explanation →

You have a Deployment named 'web-app' with 5 replicas. You want to perform a rolling update with a maximum of 2 extra pods during the update and allow at most 1 pod to be unavailable. Which YAML snippet correctly configures the rolling update strategy?

Question 107easymultiple choice
Read the full NAT/PAT explanation →

You want to deploy an application with zero downtime by using a blue-green deployment pattern. Which Kubernetes resources are essential for implementing this strategy?

Question 108hardmultiple choice
Read the full Application Deployment explanation →

You have installed a Helm chart for an application named 'myapp' in the namespace 'prod'. You need to upgrade the release to a new chart version, but you want to be able to revert to the current version quickly if the upgrade fails. Which command should you run?

Question 109mediummultiple choice
Read the full Application Deployment explanation →

You have deployed an application using Helm. You want to see the history of revisions for the release 'frontend' in the 'web' namespace. Which command should you use?

Question 110mediummultiple choice
Read the full Application Deployment explanation →

You are using Kustomize to manage Kubernetes configurations. You have a base configuration for 'nginx' and an overlay for 'production' that sets the replica count to 5. Which file structure is correct for Kustomize?

Question 111hardmultiple choice
Read the full Application Deployment explanation →

You have a Deployment that is currently paused. You want to resume the rollout and then check the status of the rollout. Which set of commands should you run?

Question 112easymultiple choice
Read the full Application Deployment explanation →

You need to scale a Deployment named 'api' to 10 replicas instantly. Which command should you use?

Question 113mediummultiple choice
Read the full Application Deployment explanation →

A HorizontalPodAutoscaler (HPA) is configured to scale a Deployment based on CPU utilization. The target CPU utilization percentage is set to 80%. The current CPU utilization is 90%. What will the HPA do?

Question 114hardmultiple choice
Review the full routing breakdown →

You are using a canary deployment strategy with Deployments and Services. You have a stable version (v1) and a canary version (v2). Both Deployments have the label 'app: myapp'. The Service selector is 'app: myapp'. How can you route a small percentage of traffic to the canary?

Question 115mediummultiple choice
Read the full Application Deployment explanation →

You have just applied a new Deployment configuration using 'kubectl apply -f deployment.yaml'. You want to see the latest revision number of the rollout. Which command should you run?

Question 116easymultiple choice
Read the full Application Deployment explanation →

You need to rollback a Deployment to the previous revision. Which command achieves this?

Question 117hardmultiple choice
Read the full Application Deployment explanation →

You have a Deployment that uses the Recreate strategy. You update the container image. What happens to the existing pods?

Question 118mediummulti select
Read the full Application Deployment explanation →

Which TWO commands can be used to create resources in Kubernetes? (Select TWO.)

Question 119hardmulti select
Read the full Application Deployment explanation →

Which THREE statements correctly describe Kustomize? (Select THREE.)

Question 120mediummulti select
Read the full Application Deployment explanation →

Which TWO statements about labels and selectors are correct? (Select TWO.)

Question 121easymultiple choice
Read the full Application Deployment explanation →

You need to perform a rolling update of a Deployment named 'web-app' with a new image version. Which command should you use?

Question 122mediummultiple choice
Read the full Application Deployment explanation →

During a rolling update, you want to ensure that a maximum of 2 extra pods are created above the desired replicas. Which field should you set in the Deployment spec?

Question 123hardmultiple choice
Read the full Application Deployment explanation →

You have a Deployment named 'frontend' with 3 replicas. You run 'kubectl rollout history deployment/frontend' and see revision 1 and revision 2. You want to rollback to revision 1. What command should you use?

Question 124easymultiple choice
Read the full Application Deployment explanation →

Which Helm command is used to install a chart from a repository?

Question 125mediummultiple choice
Read the full Application Deployment explanation →

You are performing a blue-green deployment. You have two Deployments: 'app-blue' and 'app-green', each with 5 replicas. Both are labeled with 'app: myapp'. The Service 'myapp-svc' selects pods with 'app: myapp' and 'version: blue'. After deploying the new version to 'app-green' and verifying it, what change is required to switch traffic to the green deployment?

Question 126hardmultiple choice
Read the full Application Deployment explanation →

You have a Deployment 'db' that uses a ConfigMap for configuration. You want to update the ConfigMap and roll out the changes to pods without restarting them manually. Which approach should you use?

Question 127mediummultiple choice
Read the full Application Deployment explanation →

You need to scale a Deployment named 'api' to 10 replicas. Which command works?

Question 128easymultiple choice
Read the full Application Deployment explanation →

In a Deployment YAML, which field defines the number of pods to run?

Question 129mediummultiple choice
Read the full NAT/PAT explanation →

You want to use Kustomize to apply a patch to a Deployment in the 'overlays/production' directory. Which command should you run from the kustomization directory?

Question 130hardmultiple choice
Read the full Application Deployment explanation →

During a canary deployment, you want to send 10% of traffic to the new version. You have two Deployments: 'app-stable' (version: stable) and 'app-canary' (version: canary). You use a Service with label selector 'app: myapp' and a second selector for version. How can you achieve the 10% traffic split?

Question 131easymultiple choice
Read the full Application Deployment explanation →

You have a Helm release named 'myapp' that was installed. You need to see all the releases in the current namespace. Which command do you run?

Question 132mediummultiple choice
Read the full Application Deployment explanation →

You are using the Recreate strategy for a Deployment. What happens during an update?

Question 133mediummulti select
Read the full Application Deployment explanation →

Which TWO commands can be used to update the image of a Deployment? (Select two)

Question 134hardmulti select
Read the full Application Deployment explanation →

Which THREE components are essential for setting up Horizontal Pod Autoscaling (HPA) based on CPU utilization? (Select three)

Question 135mediummulti select
Read the full Application Deployment explanation →

Which TWO statements about kubectl apply vs kubectl create are correct? (Select two)

Question 136mediummultiple choice
Read the full Application Deployment explanation →

A Deployment named 'web-app' has 4 replicas. You need to perform a rolling update with a maxSurge of 50% and maxUnavailable of 25%. Which YAML snippet configures this correctly?

Question 137easymultiple choice
Read the full Application Deployment explanation →

Which kubectl command is used to view the rollout history of a Deployment?

Question 138mediummultiple choice
Read the full Application Deployment explanation →

You are performing a blue-green deployment. You have two Deployments: 'app-blue' (current) and 'app-green' (new). Both have labels 'app: myapp' and 'version: blue' or 'version: green' respectively. The Service 'myapp-svc' selects pods with 'app: myapp, version: blue'. How do you switch traffic to the green deployment?

Question 139hardmultiple choice
Read the full Application Deployment explanation →

You have a Helm chart that deploys a web application. You want to conditionally include a ConfigMap in the release based on a value 'config.enabled'. Which template syntax correctly implements this?

Question 140easymultiple choice
Read the full Application Deployment explanation →

Which command scales a Deployment named 'frontend' to 5 replicas?

Question 141mediummultiple choice
Read the full Application Deployment explanation →

You have created a HorizontalPodAutoscaler (HPA) named 'web-hpa' targeting a Deployment 'web'. The HPA uses targetCPUUtilizationPercentage: 80. The current CPU usage is 60%. How many replicas will the HPA set?

Question 142mediummultiple choice
Read the full Application Deployment explanation →

You need to perform a canary deployment where 10% of traffic goes to the new version. You have a Deployment 'app-v1' with 9 replicas and 'app-v2' with 1 replica. What must be true for the Service to distribute traffic roughly 90/10?

Question 143hardmultiple choice
Read the full NAT/PAT explanation →

You are using Kustomize with a base and an overlay. The base sets a Deployment's replicas to 3. The overlay sets replicas to 5 using a patch. What is the final replica count after running 'kubectl apply -k overlay/'?

Question 144easymultiple choice
Read the full Application Deployment explanation →

Which command is used to rollback a Deployment to the previous revision?

Question 145mediummultiple choice
Read the full Application Deployment explanation →

During a rolling update of a Deployment with 10 replicas, you set maxSurge to 3 and maxUnavailable to 2. What is the maximum number of pods that can be unavailable during the update?

Question 146hardmultiple choice
Read the full Application Deployment explanation →

Your Deployment is stuck during rollout, and you want to investigate. Which command pauses the rollout and allows you to check the current state?

Question 147mediummultiple choice
Read the full Application Deployment explanation →

You want to add an annotation to a pod without modifying the pod template. Which approach should you use?

Question 148mediummulti select
Read the full Application Deployment explanation →

Which of the following are valid methods to perform a blue-green deployment? (Choose TWO)

Question 149hardmulti select
Read the full Application Deployment explanation →

A Deployment named 'api' has 6 replicas. You want to perform a rolling update with the following constraints: at most 2 pods can be unavailable during the update, and at most 1 extra pod can be created above the desired 6. Which strategy configurations achieve this? (Choose TWO)

Question 150mediummulti select
Read the full Application Deployment explanation →

You are using Helm to manage a chart. Which commands are valid to list installed releases? (Choose TWO)

Question 151easymultiple choice
Read the full Application Deployment explanation →

Which kubectl command is used to view the rollout status of a Deployment?

Question 152mediummultiple choice
Read the full Application Deployment explanation →

A Deployment named 'app' has the following strategy: type: RollingUpdate with maxSurge=1 and maxUnavailable=0. You have 5 replicas. During a rolling update, how many pods will be running at any given time?

Question 153mediummultiple choice
Read the full Application Deployment explanation →

You need to perform a blue-green deployment using Deployments and Services. What is the most common approach to switch traffic from the old version (blue) to the new version (green)?

Question 154easymultiple choice
Read the full Application Deployment explanation →

What is the purpose of a HorizontalPodAutoscaler (HPA)?

Question 155mediummultiple choice
Read the full Application Deployment explanation →

You run 'kubectl rollout undo deployment/app'. What happens?

Question 156hardmultiple choice
Review the full routing breakdown →

A canary deployment is being implemented using two Deployments (stable and canary) and a Service. The Service's label selector has two entries: 'app: myapp' and 'version: stable'. Initially, the canary Deployment's pods have label 'version: canary'. To route a small percentage of traffic to the canary, what should you do?

Question 157easymultiple choice
Read the full Application Deployment explanation →

Which command is used to scale a Deployment named 'web' to 5 replicas?

Question 158mediummultiple choice
Read the full Application Deployment explanation →

A Deployment is configured with strategy type 'Recreate'. What happens during an update to the pod template?

Question 159mediummultiple choice
Read the full Application Deployment explanation →

You have a Deployment with 3 replicas. You run 'kubectl rollout pause deployment/app'. Which command would you use to resume the rollout?

Question 160hardmultiple choice
Read the full Application Deployment explanation →

You are using Helm to manage an application. After running 'helm install myapp ./mychart', you notice that the application is running but you need to change a configuration value. Which command should you use to update the release?

Question 161easymultiple choice
Read the full Application Deployment explanation →

What is the difference between 'kubectl apply' and 'kubectl create'?

Question 162hardmultiple choice
Read the full NAT/PAT explanation →

You are using Kustomize with the following structure: a base with a Deployment YAML, and an overlay that patches the image tag. The overlay's kustomization.yaml contains: 'patches: - target: kind: Deployment, name: myapp, patch: |- ...'. After running 'kubectl apply -k ./overlay', the Deployment is created but the image tag is not updated. What is the most likely cause?

Question 163mediummulti select
Read the full Application Deployment explanation →

Which TWO commands can be used to view the rollout history of a Deployment?

Question 164hardmulti select
Read the full Application Deployment explanation →

Which THREE of the following are valid fields in a HorizontalPodAutoscaler (HPA) v2 specification?

Question 165easymulti select
Read the full Application Deployment explanation →

Which TWO of the following are valid methods to update a Deployment's image?

Question 166easymultiple choice
Read the full Application Deployment explanation →

Which kubectl command sets the number of replicas for a deployment named 'nginx' to 5?

Question 167mediummultiple choice
Read the full Application Deployment explanation →

When performing a rolling update of a Deployment, which field in the Deployment spec controls the maximum number of Pods that can be created above the desired replicas during the update?

Question 168hardmultiple choice
Review the full routing breakdown →

A developer wants to perform a canary deployment where 10% of traffic goes to a new version (v2) of an application. They create two Deployments (app-v1 and app-v2) and a Service. The Service selector is configured to match labels: 'app: myapp, version: v1'. How can they route 10% of traffic to v2 with minimal changes?

Question 169mediummultiple choice
Read the full Application Deployment explanation →

What is the purpose of the 'maxUnavailable' field in a Deployment's rolling update configuration?

Question 170easymultiple choice
Read the full Application Deployment explanation →

Which command shows the rollout history of a Deployment named 'web'?

Question 171mediummultiple choice
Read the full Application Deployment explanation →

A Deployment is configured with strategy type 'Recreate'. Which statement about this strategy is true?

Question 172hardmultiple choice
Read the full Application Deployment explanation →

When using Helm, which command installs a chart from a repository into a namespace, overriding a value?

Question 173mediummultiple choice
Read the full Application Deployment explanation →

After upgrading a Helm release, you want to revert to the previous revision. Which command achieves this?

Question 174easymultiple choice
Read the full Application Deployment explanation →

Which command lists all Helm releases in the current namespace?

Question 175mediummultiple choice
Read the full Application Deployment explanation →

What is the effect of running 'kubectl rollout pause deployment web'?

Question 176hardmultiple choice
Read the full Application Deployment explanation →

An administrator runs 'kubectl apply -f deployment.yaml' and later wants to revert to the previous configuration. Which approach is correct?

Question 177mediummultiple choice
Read the full Application Deployment explanation →

Which field in a HorizontalPodAutoscaler spec defines the target CPU utilization percentage?

Question 178mediummulti select
Read the full Application Deployment explanation →

Which TWO statements about Kustomize are true?

Question 179hardmulti select
Read the full Application Deployment explanation →

Which THREE of the following are valid ways to update a Deployment's container image in Kubernetes?

Question 180mediummulti select
Read the full Application Deployment explanation →

Which TWO options are valid annotations for a Pod?

Question 181easymultiple choice
Read the full Application Deployment explanation →

You have a Deployment named 'web-app' with 5 replicas. You run the command: kubectl set image deployment/web-app web-app=nginx:1.25. Which command can you use to monitor the progress of the rollout?

Question 182mediummultiple choice
Read the full Application Deployment explanation →

You are performing a rolling update of a Deployment. You set maxSurge=2 and maxUnavailable=1. The Deployment has 5 replicas. During the update, how many pods can be running simultaneously?

Question 183hardmultiple choice
Read the full Application Deployment explanation →

You have a Helm chart for an application. After running 'helm install my-release ./mychart', you realize you forgot to set a required value. Which command can you use to update the release with the correct value while keeping the same chart version?

Question 184mediummultiple choice
Read the full Application Deployment explanation →

You want to perform a blue-green deployment using Deployments and Services. You have two Deployments: 'app-blue' (current) and 'app-green' (new). The Service 'app-service' currently selects pods with label 'version: blue'. What kubectl command should you run to switch traffic to the green deployment?

Question 185mediummultiple choice
Read the full Application Deployment explanation →

You have a Deployment with strategy type: Recreate. You update the container image. What behavior will occur during the update?

Question 186easymultiple choice
Read the full Application Deployment explanation →

Which command is used to scale a Deployment named 'frontend' to 10 replicas?

Question 187hardmultiple choice
Read the full Application Deployment explanation →

You have a HorizontalPodAutoscaler (HPA) that targets CPU utilization at 50%. The current average CPU utilization is 80%. The HPA has a stabilization window of 300 seconds and a scale-down policy with a periodSeconds of 60. CPU utilization drops to 40%. How long will it take for the HPA to begin scaling down?

Question 188mediummultiple choice
Read the full Application Deployment explanation →

You are using Kustomize. Your kustomization.yaml file specifies a base and an overlay. You run: kubectl apply -k overlays/production. What happens?

Question 189mediummultiple choice
Read the full Application Deployment explanation →

You want to perform a canary deployment. You have a Deployment 'app-v1' with 10 replicas. You create a new Deployment 'app-v2' with 1 replica. Both have the label 'app: myapp'. The Service 'myapp-svc' uses selector 'app: myapp'. How do you gradually increase traffic to v2?

Question 190hardmultiple choice
Read the full Application Deployment explanation →

You have a Deployment that is failing after a rollout. You want to revert to the previous revision. Which command accomplishes this?

Question 191easymultiple choice
Read the full Application Deployment explanation →

In a Deployment, what is the purpose of the 'maxUnavailable' field in the rolling update strategy?

Question 192mediummulti select
Read the full Application Deployment explanation →

Which TWO statements are true about Helm releases? (Select two)

Question 193mediummulti select
Read the full Application Deployment explanation →

Which THREE are valid ways to expose a canary deployment for testing? (Select three)

Question 194hardmulti select
Read the full Application Deployment explanation →

Which TWO statements about kubectl apply vs kubectl create are correct? (Select two)

Question 195easymulti select
Read the full Application Deployment explanation →

Which TWO are valid reasons to use a HorizontalPodAutoscaler (HPA) with a custom metric? (Select two)

Question 196mediummulti select
Read the full Application Deployment explanation →

Which TWO of the following are valid methods to perform a blue-green deployment in Kubernetes?

Question 197hardmulti select
Read the full Application Deployment explanation →

You have a Deployment 'web-app' with 4 replicas. You want to perform a rolling update such that during the update, at most 2 pods can be unavailable and at most 5 pods can be above the desired replica count. Which TWO of the following strategy configurations achieve this?

Question 198easymulti select
Read the full Application Deployment explanation →

Which TWO of the following are valid ways to scale a Deployment named 'my-app' to 5 replicas?

Question 199mediummulti select
Read the full Application Deployment explanation →

Which THREE of the following are valid reasons to use an annotation in Kubernetes?

Question 200mediummulti select
Read the full Application Deployment explanation →

Which THREE of the following are correct statements about Helm?

Question 201hardmulti select
Read the full Application Deployment explanation →

Which THREE of the following are correct about Kustomize?

Question 202easymulti select
Read the full Application Deployment explanation →

Which TWO kubectl commands can be used to view the rollout history of a Deployment named 'web-app'?

Question 203mediummulti select
Read the full Application Deployment explanation →

Which THREE of the following are valid reasons to use a HorizontalPodAutoscaler (HPA) with a Deployment?

Question 204hardmulti select
Read the full Application Deployment explanation →

Which TWO of the following are correct methods to implement a canary deployment using Kubernetes resources?

Question 205easymulti select
Read the full Application Deployment explanation →

Which TWO of the following are correct about the difference between 'kubectl apply' and 'kubectl create'?

Practice tests

Scored 10-question sessions with instant feedback and explanations.

CKAD Practice Test 1 — 10 Questions→CKAD Practice Test 2 — 10 Questions→CKAD Practice Test 3 — 10 Questions→CKAD Practice Test 4 — 10 Questions→CKAD Practice Test 5 — 10 Questions→CKAD Practice Exam 1 — 20 Questions→CKAD Practice Exam 2 — 20 Questions→CKAD Practice Exam 3 — 20 Questions→CKAD Practice Exam 4 — 20 Questions→Free CKAD Practice Test 1 — 30 Questions→Free CKAD Practice Test 2 — 30 Questions→Free CKAD Practice Test 3 — 30 Questions→CKAD Practice Questions 1 — 50 Questions→CKAD Practice Questions 2 — 50 Questions→CKAD Exam Simulation 1 — 100 Questions→

Practice by domain

Each domain maps to a weighted exam section. Focus on the domain where you are weakest.

Application Design and BuildApplication DeploymentApplication Environment, Configuration and SecurityApplication Observability and MaintenanceServices and Networking

Practice by scenario

Filter questions by type — troubleshooting, exhibit, drag-and-drop, PBQ, ACLs, OSPF, and more.

Browse scenarios→

Continue studying

All Application Deployment setsAll Application Deployment questionsCKAD Practice Hub