Sample questions
Certified Kubernetes Application Developer CKAD practice questions
Which TWO of the following are valid uses of Kubernetes Annotations? (Select two.)
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 u…
You run 'kubectl rollout undo deployment/app'. What happens?
A pod is stuck in 'Pending' state. You run 'kubectl describe pod mypod' and see the event: '0/4 nodes are available: 4 Insufficient memory'. Which action will resolve the issue?
A Job has the following spec: apiVersion: batch/v1 kind: Job metadata: name: pi spec: template: spec: containers: - name: pi image: perl command…
Which THREE of the following are correct about the .dockerignore file? (Select 3)
A NetworkPolicy allows egress traffic to pods with label 'db: mysql' in the same namespace. Which egress rule is correct?
Which instruction in a Dockerfile sets the default command to run when the container starts, but allows overriding?
You need to create a NetworkPolicy that denies all ingress traffic to pods with label 'app: db' in namespace 'prod'. Which YAML snippet correctly implements this?
An Ingress resource has the following spec. What is the effect? spec: tls: - hosts: - myapp.example.com secretName: myapp-tls rules: - host: myapp.example.com…
A CronJob is configured with concurrencyPolicy: Replace and a job execution takes 10 minutes. The schedule is */5 * * * *. Which statement is true about job executions?
A developer wants to ensure a container runs as a non-root user with user ID 1000 and group ID 2000. Which SecurityContext fields should be set?
Application Environment, Configuration and SecuritymediumSee the answer and why each option is right or wrong →You need to create a Secret of type 'kubernetes.io/tls' for ingress. Which command is correct?
Application Environment, Configuration and SecurityhardSee the answer and why each option is right or wrong →Which command lists all Helm releases in the current namespace?
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 up…
Which TWO statements about Kubernetes DNS are correct?
A namespace 'test' has a LimitRange that sets default memory request to 256Mi and default memory limit to 512Mi. A pod in that namespace does not specify any resources. What memory…
Application Environment, Configuration and SecuritymediumSee the answer and why each option is right or wrong →Which command streams logs from a pod in real-time?
Which TWO of the following are valid ways to expose application metrics from a Pod in Kubernetes?
Application Observability and MaintenancemediumSee the answer and why each option is right or wrong →A developer wants to restrict a Pod's resource usage. Which two API resources can be used to enforce limits at the namespace level? (Choose two.)
Application Environment, Configuration and SecurityeasySee the answer and why each option is right or wrong →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?
Arrange the steps to create a multi-container Pod with a shared volume.
Which THREE configurations are part of Pod Security Admission's 'restricted' profile? (Select THREE.)
Application Environment, Configuration and SecurityhardSee the answer and why each option is right or wrong →An Ingress resource routes traffic to a Service 'web' on port 80. The Service has multiple endpoints but all return 503. What should be checked first?