CKA · Sample questions
10 real questions from the CertifyDeck CKA bank, spread across the domains of the official Certified Kubernetes Administrator (CKA) skills outline, with the correct answer and a full explanation of why the other options are wrong. They are original questions written from the public syllabus, not exam dumps, and they are the same style you will find in the practice tests and mock exams.
Correct answer: C. emptyDir with medium: Memory
An emptyDir with medium: Memory is mounted as tmpfs, is shared by all containers of the Pod and is deleted when the Pod leaves the node; files written there count against the memory limit of the container that wrote them. sizeLimit alone keeps the default medium, which is the node disk, not RAM. A hostPath points at node storage that outlives the Pod, and a secret volume is read-only and carries Secret data rather than scratch files.
Answer each question before opening the explanation, and write down why you discarded the other options. On CKA, most mistakes come from choosing an option that is technically possible but does not meet every requirement in the scenario.
These 10 questions are a taste of the format, not a diagnostic. To know which domains you fail, practice by domain for free and take a timed mock exam that mirrors the official weights and duration.
Start for free, no sign-up or card. Every question includes an explanation like the ones above, and the mock exam reproduces the official CKA format.
Correct answer: C. ReadWriteOncePod
ReadWriteOncePod restricts the volume to a single Pod across the whole cluster and is supported only for CSI volumes, which matches this claim. ReadWriteOnce limits read-write mounting to a single node but still allows several Pods on that node to use the volume, which fails the requirement about a second replica on the same node. ReadOnlyMany and ReadWriteMany allow many nodes.
Correct answer: D. caFile, certFile and keyFile under etcd.external, pointing to the copied CA and client files.
For external etcd, the documented ClusterConfiguration lists the endpoints and also caFile, certFile and keyFile under etcd.external, pointing to /etc/kubernetes/pki/etcd/ca.crt and the apiserver-etcd-client certificate and key copied from an etcd node. etcd.local describes the stacked topology that kubeadm manages itself. controlPlaneEndpoint is the address of the API server load balancer, and --upload-certs shares control plane certificates; it does not create the etcd client credentials that this external cluster trusts.
Correct answer: B. backups.ops.example.com
A CustomResourceDefinition must be named <plural>.<group>, so with plural backups and group ops.example.com the name is backups.ops.example.com. Using the kind or the singular form, reversing the order, or using only the group does not match that form.
Correct answer: C. type: ContainerResource, with name: cpu and container: app
A ContainerResource metric tracks the resource usage of one named container across the Pods, so the HPA can scale on app and ignore the sidecar. A Resource metric sums the usage of all containers in the Pod, so log-shipper would affect the result. Pods and Object metrics come from the custom metrics API, and an Object metric describes a Kubernetes object such as an Ingress, not a container.
Correct answer: A. A toleration for that taint, effect NoSchedule, in the Pod template.
The DaemonSet controller adds tolerations for conditions such as not-ready, unreachable or unschedulable nodes, but not for the control-plane taint, so the Pod template needs a toleration for node-role.kubernetes.io/control-plane with effect NoSchedule, as in the documented example. A nodeSelector only narrows the eligible nodes and does not tolerate the taint, priority only helps a Pod preempt others when it does not fit, and tolerations are a Pod field, so they must be inside the template.
Correct answer: C. shop.example.com
A wildcard host matches when the Host header equals the suffix of the wildcard rule and the wildcard covers exactly one DNS label, so shop.example.com matches. example.com has no label in place of the wildcard, and api.shop.example.com has two labels, so neither matches. shop.example.org does not share the suffix example.com.
Correct answer: D. A RequestRedirect filter with scheme: https and statusCode: 301
A RequestRedirect filter makes the Gateway answer with a 3XX redirect, and scheme: https with statusCode: 301 turns each HTTP request into a permanent redirect to the same host and path over HTTPS. URLRewrite only changes the request sent upstream and never tells the client to switch to HTTPS. Forwarding to port 443 or adding a header still serves the request over plain HTTP.
Correct answer: A. kubectl get --raw='/readyz?verbose'
The verbose parameter on the health endpoints prints each individual check, such as etcd and the poststarthook entries, with its status, which is meant for human operators. /livez without verbose only returns the overall result. kubectl cluster-info prints the addresses of the control plane and cluster services, and events do not list API server health checks.
Correct answer: D. /var/log/pods
By default the kubelet directs the container runtime to write container logs into directories within /var/log/pods, configurable with podLogsDir. journalctl -u kubelet shows the kubelet's own logs, not container output; /var/lib/kubelet holds kubelet state and its config file, and /etc/kubernetes/manifests holds static Pod manifests.