CKAD Exam Questions
27 real CKAD exam questions with expert-verified answers and explanations. Page 1 of 1.
- Question #1Application Deployment
Create a pod with the following characteristics, and leave it running when complete: - The pod must run in the web namespace. - The namespace has already been created - The name of...
Pod creationNamespacesContainer imagesPort configuration - Question #2Application Environment, Configuration and Security
You are tasked to create a secret and consume the secret in a pod using environment variables as follow: - Create a secret named another-secret with a key/value pair; key1/value4 -...
Kubernetes SecretsPod ConfigurationEnvironment Variables - Question #3Application Environment
You are required to create a pod that requests a certain amount of CPU and memory, so it gets scheduled to a node that has those resources available. - Create a pod named nginx-res...
PodsResource RequestsCPUMemory - Question #4Application Environment, Configuration and Security
You are tasked to create a ConfigMap and consume the ConfigMap in a pod using a volume mount. Please complete the following: Create a ConfigMap named another-config containing the...
ConfigMapVolume MountsPod ConfigurationData Management - Question #5Application Environment, Configuration and Security
Update the app-a deployment in the production namespace to run as the restrictedservice service account. The service account has already been created.
DeploymentsService AccountsPod SecurityKubernetes Configuration - Question #6Application Observability and Maintenance
A pod is running on the cluster but it is not responding. The desired behavior is to have Kubernetes restart the pod when an endpoint returns an HTTP 500 on the /healthz endpoint....
Liveness ProbesReadiness ProbesPod ConfigurationHTTP Probes - Question #7Application Observability and Maintenance
You sometimes need to observe a pod's logs, and write those logs to a file for further analysis. Please complete the following; * Deploy the counter_pod to the cluster using the pr...
Pod DeploymentKubectl LogsApplication Logging - Question #8Application Observability and Maintenance
It is always useful to look at the resources your applications are consuming in a cluster. From the pods running in namespace cpu-stress, write the name only of the pod that is con...
Resource Monitoringkubectl topPod ManagementCPU Usage - Question #9Application Deployment
Anytime a team needs to run a container on Kubernetes they will need to define a pod within which to run the container. Please complete the following: * Create a YAML formatted pod...
Pod DefinitionKubernetes Deploymentkubectl CommandsResource Manifests - Question #10Application Deployment
Please complete the following: - Update the app deployment in the kdpd00202 namespace with a maxSurge of 5% and a maxUnavailable of 25%. - Perform a rolling update of the web1 depl...
DeploymentsRolling UpdatesRollbacksDeployment Strategy - Question #11Application Deployment
Context: Developers occasionally need to submit pods that run periodically. Task: Follow the steps below to create a pod that will start at a predetermined time and which runs to c...
CronJobsSchedulingJobsYAML Manifests - Question #12Application Deployment
Context: Set configuration context: [student@node-1] $ kubectl config use-context nk8s Task: A deployment is falling on the cluster due to an incorrect image being specified. Locat...
Deployment troubleshootingImage configurationkubectl editApplication debugging - Question #13Services and Networking
Context: Set configuration context: [student@node-1] $ kubectl config use-context nk8s All work on this item should be conducted in the kdsn00201 namespace. All required NetworkPol...
NetworkPolicyPod Labelskubectl editNetworking - Question #14Application Observability and Maintenance
A user has reported an application is unreachable due to a failing livenessProbe. Perform the following tasks: * Find the broken pod and store its name and namespace to /opt/KDOB00...
Liveness ProbesPod TroubleshootingkubectlApplication Health - Question #15Application Deployment
A project that you are working on has a requirement for persistent data to be available. To facilitate this, perform the following tasks: * Create a file on node sk8s-node-0 at /op...
Persistent VolumesPersistent Volume ClaimsPod StorageData Persistence - Question #16Application Environment, Configuration and Security
Given a container that writes a log file in format A and a container that converts log files from format A to format B, create a deployment that runs both containers such that the...
Sidecar patternEmptyDir volumeConfigMapMulti-container pod - Question #17Application Deployment
A Deployment named backend-deployment in namespace staging runs a web application on port 8081. The Deployment's manifest files can be found at `~/.spicy-pikachu/backend-deployment...
Kubernetes DeploymentsReadiness ProbesPod ProbesManifests - Question #18Application Environment, Configuration and Security
Update the Deployment app-1 in the frontend namespace to use the existing Serviceaccount app.
DeploymentServiceAccountKubernetes Securitykubectl - Question #19Application Environment, Configuration and Security
A pod within the Deployment named buffalo-deployment and in namespace gorilla is logging errors. 1) Look at the logs identify errors messages. Find errors, including User "system:s...
RBACServiceAccountsTroubleshootingDeployments - Question #20Services and Networking
First update the Deployment cka00017-deployment in the ckad00017 namespace: To run 2 replicas of the pod Add the following label on the pod: Role userUI Next, Create a NodePort Ser...
Deployment scalingPod labelsNodePort ServiceService exposure - Question #21Application Environment, Configuration and Security
1) Create a secret named app-secret in the default namespace containing the following single key-value pair: key3: value1 2) Create a Pod named nginx-secret in the default namespac...
SecretsPodsEnvironment VariablesConfiguration - Question #22Application Deployment
1- Update the Propertunel scaling configuration of the Deployment web1 in the ckad00015 namespace setting maxSurge to 2 and maxUnavailable to 59 2- Update the web1 Deployment to us...
DeploymentRolling UpdatesImage UpdatesRollback - Question #23Application Environment, Configuration and Security
Modify the existing Deployment named broker-deployment running in namespace quetzal so that its containers: 1) Run with user ID 30000 and 2) Privilege escalation is forbidden The b...
Kubernetes SecurityContextrunAsUserallowPrivilegeEscalationDeployment modification - Question #24Services and Networking
Update the Pod ckad00018-newpod in the ckad00018 namespace to use a NetworkPolicy allowing the Pod to send and receive traffic only to and from the pods web and db
NetworkPolicyNetworkingSecurityPod selectors - Question #25Application Deployment
You are asked to prepare a Canary deployment for testing a new application release. A Service named krill-Service in the goshark namespace points to 5 pod created by the Deployment...
Canary DeploymentKubernetes DeploymentKubernetes ServiceTraffic Splitting - Question #26Application Deployment
The pod for the Deployment named nosql in the craytisn namespace fails to start because its container runs out of resources. Update the nosql Deployment so that the Pod: 1) Request...
Resource Requests and LimitsDeploymentsContainer MemoryPod Troubleshooting - Question #27Application Design and Build
Context: No configuration context change is required for this task. Task: A Dockerfile has been prepared at ~/human-stork/Dockerfile 1) Using the prepared Dockerfile, build a conta...
DockerfileImage BuildImage ExportContainer Image