CKA Practice Exam 3
48 questions with the correct answer and an explanation for each.
Topic: Kubernetes Administration. Free, no account needed.
Take this test interactively
1. A Pod remains `Pending`, and its Events report `0/3 nodes available: 3 node(s) didn't match nodeSelector`. Which change resolves the scheduling failure?
- Add the matching label to a node or remove the `nodeSelector` from the Pod
- Bind the Pod's PersistentVolumeClaim to a larger PersistentVolume
- Restart the kubelet on the worker nodes
- Increase the Pod's memory request
Answer: A — Add the matching label to a node or remove the `nodeSelector` from the Pod
The scheduler cannot place the Pod because no node carries the label the `nodeSelector` requires, so either side of the match must change.
2. A policy must allow traffic from pods that match `role=frontend` AND `env=prod`. How should the `from` section be written?
- Put both selectors in the same `from` block.
- Use `namespaceSelector` only.
- Put each selector in a separate `from` block.
- Put both selectors in `podSelector` at the top level.
Answer: A — Put both selectors in the same `from` block.
Selectors in the same `from` block are ANDed; separate blocks are ORed.
3. Which command creates a one-off Job from CronJob `hourly-backup`?
- `k run manual-1 --from=cronjob/hourly-backup`
- `k create job manual-1 --from=cronjob/hourly-backup`
- `k create cronjob manual-1 --from=job/hourly-backup`
- `k create job manual-1 --from=job/hourly-backup`
Answer: B — `k create job manual-1 --from=cronjob/hourly-backup`
`kubectl create job --from=cronjob/<name>` creates a Job from the CronJob's job template.
4. Which Service `spec` creates `catalog-svc` as a NodePort Service on port 80, forwards to the named container port `web`, and uses node port 30080?
- `spec:
type: NodePort
selector:
app: catalog
ports:
- port: 80
targetPort: web
nodePort: 30080`
- `spec:
type: ClusterIP
selector:
app: catalog
ports:
- port: 80
targetPort: web`
- `spec:
type: LoadBalancer
selector:
app: catalog
ports:
- port: 80
targetPort: 30080`
- `spec:
type: NodePort
selector:
app: catalog
ports:
- port: 30080
targetPort: 80
nodePort: 80`
Answer: A — `spec:
type: NodePort
selector:
app: catalog
ports:
- port: 80
targetPort: web
nodePort: 30080`
The spec sets `type: NodePort`, `targetPort: web`, and `nodePort: 30080`, with the Service port at 80.
5. `kubectl get pods` returns `connection refused` for `localhost:6443`, and the administrator suspects the kubeconfig is not set. Which command shows which kubeconfig file is in use?
- `k auth can-i --list`
- `k config current-context`
- `k cluster-info`
- `echo $KUBECONFIG`
Answer: D — `echo $KUBECONFIG`
The `KUBECONFIG` environment variable identifies the configuration file kubectl is using, and an empty value points to a setup problem.
6. A namespace has `pod-security.kubernetes.io/audit=restricted` but no enforce label. A privileged pod is created there. What happens?
- The pod stays Pending until it is made compliant
- The pod runs only after the audit label is removed
- The pod is rejected by the API server
- The pod is admitted, and the violation is recorded as an audit annotation in the API server's audit log
Answer: D — The pod is admitted, and the violation is recorded as an audit annotation in the API server's audit log
In `audit` mode Pod Security Admission does not block anything: the pod is admitted and the policy violation is added as an audit annotation to the event in the audit log. Only `enforce` rejects pods, and only `warn` shows the user a warning.
7. A crashing container's last state shows exit code `137`. What does that indicate, and what is the appropriate fix?
- The command failed; correct the command in the YAML
- The process completed gracefully; add an infinite loop
- The container was killed by the system after running out of memory; increase memory limits or reduce usage
- Permission was denied; fix file permissions in the image
Answer: C — The container was killed by the system after running out of memory; increase memory limits or reduce usage
Exit code 137 means the system killed the process, and the listed remedy is to raise the memory limit or lower memory use.
8. An administrator stops the kubelet on a worker node. What should `k get nodes` on the control plane show, and when?
- The node shows `SchedulingDisabled` immediately
- The node is deleted immediately
- The node shows `Ready` but all Pods are evicted
- The node shows `NotReady` after roughly 40 seconds
Answer: D — The node shows `NotReady` after roughly 40 seconds
Once the kubelet stops reporting, the node status changes to `NotReady` after the expected delay.
9. A pod needs a logging container that starts before the main application container and keeps running alongside it. How should that container be defined?
- In `containers` with `restartPolicy: Always`
- In `containers` with a `lifecycle.postStart` hook
- In `initContainers` with `restartPolicy: Always`
- In `initContainers` with `restartPolicy: Never`
Answer: C — In `initContainers` with `restartPolicy: Always`
A native sidecar is an init container with `restartPolicy: Always`, so it starts first and keeps running.
10. A Role `pod-manager` in `exercise-04` must be bound to ServiceAccount `dev-sa` in the same namespace. Which command creates the binding?
- `kubectl create rolebinding dev-pod-access -n exercise-04 --role=pod-manager --serviceaccount=exercise-04:dev-sa`
- `kubectl create clusterrolebinding dev-pod-access -n exercise-04 --role=pod-manager --serviceaccount=exercise-04:dev-sa`
- `kubectl create rolebinding dev-pod-access -n exercise-04 --clusterrole=pod-manager --serviceaccount=dev-sa`
- `kubectl create rolebinding dev-pod-access -n exercise-04 --role=pod-manager --user=dev-sa`
Answer: A — `kubectl create rolebinding dev-pod-access -n exercise-04 --role=pod-manager --serviceaccount=exercise-04:dev-sa`
A RoleBinding in the namespace binds the Role to the ServiceAccount.
11. The API server pod is in `CrashLoopBackOff`, and its logs show `dial tcp 10.0.0.5:2379: connection refused`. What is the most likely cause?
- The etcd certificate scheme does not match the API server's, causing `x509` errors
- The `--etcd-servers` value uses etcd's peer port instead of its client port
- The kubelet service on the control-plane node is stopped
- The API server's `--etcd-servers` value points to an incorrect etcd endpoint
Answer: D — The API server's `--etcd-servers` value points to an incorrect etcd endpoint
The API server cannot start without etcd, and the refused connection points at a wrong etcd endpoint in the manifest.
12. A PersistentVolumeClaim requesting 2Gi remains Pending. Running `kubectl describe pvc` reports `Insufficient capacity`, and the only matching PersistentVolume offers 1Gi. What is the correct fix?
- Create a PV of at least 2Gi, or reduce the claim's request.
- Clear the PV's `claimRef` so it returns to `Available` and rebinds.
- Delete the PVC and recreate it with the same request.
- Add an explicit `volumeName` to the claim to force the bind.
Answer: A — Create a PV of at least 2Gi, or reduce the claim's request.
The binding requires the PV capacity to be at least the claim's request; the fix is a larger PV or a smaller request.
13. A ClusterIP Service named `payments` has no usable backends. Which two things should be compared first?
- the CoreDNS labels and the namespace labels
- the Service `port` and the Ingress `pathType`
- the Pod image and the Deployment replicas
- the Service selector and the Pod labels
Answer: D — the Service selector and the Pod labels
Endpoint creation depends on the Service selector matching the Pod labels exactly.
14. A backend Pod can be reached by IP, but requests that use Service DNS names fail. Its policy allows ingress from the frontend on TCP 80 but defines no egress rules. Which addition fixes the DNS failure?
- an egress rule to the frontend on TCP 80
- an egress rule to kube-dns on UDP 53 and TCP 53
- an egress rule to CoreDNS on TCP 80
- an ingress rule from kube-dns on UDP 53
Answer: B — an egress rule to kube-dns on UDP 53 and TCP 53
Egress must explicitly allow DNS to the kube-dns Pods; the policy example permits UDP and TCP port 53 to CoreDNS.
15. An application is unreachable and an administrator starts at the node level, working down toward the pod. What should be checked first?
- `kubectl describe pod <pod>`
- `kubectl get nodes`
- `kubectl logs <pod> --previous`
- `kubectl get endpoints <svc>`
Answer: B — `kubectl get nodes`
The sequence starts at the node level with `kubectl get nodes`.
16. An administrator has a reusable JSON patch stored in a file and wants to apply it to a Deployment. Which command uses that file?
- `kubectl apply deployment patch-demo -f patch-file.json`
- `kubectl patch deployment patch-demo --patch patch-file.json`
- `kubectl patch deployment patch-demo --patch-file patch-file.json`
- `kubectl replace deployment patch-demo --patch-file patch-file.json`
Answer: C — `kubectl patch deployment patch-demo --patch-file patch-file.json`
`--patch-file` applies a JSON patch stored in a file.
17. A Retain PV shows `Released` after its old claim was deleted, but the data is still on disk. Which action returns the PV to `Available` so it can be claimed again?
- `kubectl edit pvc my-pvc` and remove `volumeName`
- `kubectl delete pv my-pv`
- `kubectl patch pv my-pv --type=merge -p '{"spec":{"claimRef":null}}'`
- `kubectl apply -f pv.yaml` with a new `storageClassName`
Answer: C — `kubectl patch pv my-pv --type=merge -p '{"spec":{"claimRef":null}}'`
Clearing `spec.claimRef` with a merge patch removes the old claim reference and returns the PV to Available.
18. A node was tainted with `key=value:NoSchedule` and must accept pods again. Which command removes the taint?
- `kubectl taint nodes <node> key=value:NoSchedule-`
- `kubectl label nodes <node> key=value-`
- `kubectl uncordon <node>`
- `kubectl taint nodes <node> key=value:NoSchedule`
Answer: A — `kubectl taint nodes <node> key=value:NoSchedule-`
A trailing `-` on the taint removes it.
19. A cluster started with Minikube's default CNI accepts a valid deny-all NetworkPolicy, but traffic is still allowed. What is the most likely explanation?
- CoreDNS is not running.
- The default CNI does not enforce NetworkPolicy.
- The policy needs `policyTypes: [Ingress, Egress]`.
- The Pod labels are case-sensitive.
Answer: B — The default CNI does not enforce NetworkPolicy.
Minikube's default CNI accepts the object but does not enforce it; a policy-enforcing CNI such as Calico is required.
20. Two Pods on the same node both mount the same `ReadWriteOnce` PVC. What does the access mode permit?
- Neither Pod can mount it until one is deleted.
- Only one Pod may mount it at a time.
- Both Pods may read and write it, but it cannot be mounted read-write on two different nodes.
- Both Pods may mount it only read-only.
Answer: C — Both Pods may read and write it, but it cannot be mounted read-write on two different nodes.
RWO is node-scoped: pods on the same node may share it read-write, but it cannot be mounted read-write on two nodes.
21. Inside a node debug session, `systemctl status kubelet` fails because systemd is not available. What should the administrator run next?
- `k exec node/<node-name> -- systemctl status kubelet`
- `k rollout restart daemonset kube-proxy -n kube-system`
- `--target=node`
- `chroot /host`
Answer: D — `chroot /host`
The real node root is mounted at `/host`, and changing root into it provides access to systemd and node commands.
22. A Service named `payments` has no endpoints. Its Pods carry `app=payments`, but the Service selector is `app=payment`. What is the cause?
- CoreDNS has no endpoints
- The Service selector does not match the Pod labels
- The Pods are not Running
- The Service has the wrong `targetPort`
Answer: B — The Service selector does not match the Pod labels
A Service only selects Pods whose labels match its selector exactly, and `app=payment` does not match `app=payments`.
23. Several Pods on different nodes must read and write the same volume simultaneously. Which access mode is required, and what does it depend on?
- `ReadWriteOncePod`, because it allows one pod.
- `ReadWriteMany`, backed by network storage such as NFS.
- `ReadWriteOnce`, because it allows one node.
- `ReadOnlyMany`, because reads can be shared.
Answer: B — `ReadWriteMany`, backed by network storage such as NFS.
RWX allows multiple Pods to read and write and requires network storage such as NFS.
24. A Role with `apiGroups: [""]` and `resources: ["deployments"]` does not grant access to Deployments. Which `apiGroups` value should the rule use?
- `apiGroups: ["rbac.authorization.k8s.io"]`
- `apiGroups: ["v1"]`
- `apiGroups: ["batch"]`
- `apiGroups: ["apps"]`
Answer: D — `apiGroups: ["apps"]`
Deployments belong to the `apps` API group.
25. A Pod template declares a container port named `web` with `containerPort: 80`, but the process inside listens on 8080. What happens when a Service uses `targetPort: web`?
- Traffic is sent to port 80 and fails because nothing listens there.
- The Pod cannot start because the declared and listening ports differ.
- Traffic is sent to 8080 because Kubernetes detects the listening port.
- The Service falls back to the `nodePort`.
Answer: A — Traffic is sent to port 80 and fails because nothing listens there.
The container port declaration is metadata for named references; it does not change where the process actually listens.
26. A static Pod must be removed. Which action actually deletes it?
- Remove its manifest file from the static Pod path.
- Delete the pod's namespace.
- Run `kubectl delete pod <name>`.
- Run `kubectl drain` on the node.
Answer: A — Remove its manifest file from the static Pod path.
Static Pods are deleted by removing their manifest file; `kubectl delete` does not work.
27. Every Pod in a namespace must resolve Service names, regardless of destination, while all other egress remains restricted. Which egress rule allows only DNS?
- no egress rules but `policyTypes: [Egress]`
- `to: []` with protocol `TCP`, port `80`
- `to: []` with protocol `UDP`, port `53`
- `to: - podSelector: {}` with protocol `UDP`, port `53`
Answer: C — `to: []` with protocol `UDP`, port `53`
An empty `to` allows all destinations, and the ports list restricts the rule to DNS on UDP 53.
28. An HTTPRoute exists and shows no error, but it never attaches to its Gateway and traffic goes nowhere. Which field is the first to compare against the Gateway's name?
- `spec.rules[].matches[].path.value`
- `spec.parentRefs[].name`
- `metadata.namespace`
- `spec.rules[].backendRefs[].name`
Answer: B — `spec.parentRefs[].name`
The HTTPRoute's `parentRefs.name` must exactly match the Gateway name; a typo leaves the route unattached without an obvious error.
29. An HPA reports `<unknown>/50%` for CPU and never scales, even though `kubectl top` works. What is the most likely cause?
- The Service has no selector
- `maxReplicas` is lower than the current replica count
- The Deployment uses the RollingUpdate strategy
- The Deployment's containers have no CPU resource requests
Answer: D — The Deployment's containers have no CPU resource requests
HPA calculates CPU utilization as a percentage of requested CPU; without a request there is no baseline.
30. A Pod has stayed in `Pending` for several minutes. Every node reports `Ready`, and the Pod's Events show `0/3 nodes available: 3 Insufficient memory`. What is the appropriate fix?
- Add a toleration that matches the node taint
- Remove the `nodeSelector` from the Pod
- Delete other pods or increase node RAM
- Create a PersistentVolume with a matching storage class
Answer: C — Delete other pods or increase node RAM
The event reports insufficient memory on every node, so freeing memory or adding node RAM addresses the scheduling failure.
31. A NetworkPolicy selects Pods labeled `role=backend` and lists both `Ingress` and `Egress` in `policyTypes`. What is the effect on those Pods?
- Only ingress is restricted; egress remains open.
- The policy applies to every Pod in the namespace.
- Only egress is restricted; ingress remains open.
- Both ingress and egress are restricted for the selected Pods.
Answer: D — Both ingress and egress are restricted for the selected Pods.
Listing both policy types isolates the selected Pods in both directions; their traffic is then limited by the policy's ingress and egress rules.
32. A Service shows `<none>` under `k get endpoints`, but its Pods are Running. Which comparison identifies whether the selector matches the Pods?
- Run `k get pods -l <selector-key>=<selector-value>` and see whether any Pods are returned
- Compare the Deployment's replica count with the number of Running Pods
- Compare the Service's `port` and `targetPort` with each other
- Compare the Service's ClusterIP with the Pod IPs
Answer: A — Run `k get pods -l <selector-key>=<selector-value>` and see whether any Pods are returned
Querying Pods with the Service's selector shows directly whether the labels match and any Pods are returned.
33. Which result confirms that a broken control plane has been repaired?
- `k get nodes` succeeds after restarting the kubelet on the control-plane node
- The corrected manifest is applied with `kubectl apply -f` and the Pod restarts
- The API server pod moves from `CrashLoopBackOff` to `Running`, and the etcd connection string matches `etcd.yaml` exactly
- The etcd Pod is recreated and the API server reconnects automatically
Answer: C — The API server pod moves from `CrashLoopBackOff` to `Running`, and the etcd connection string matches `etcd.yaml` exactly
The API server becoming healthy and using the exact etcd connection string from the etcd manifest demonstrates that the root cause was corrected.
34. An administrator must back up etcd to `/tmp/backup.db` using the local endpoint and the etcd certificates. Which command performs the snapshot?
- `ETCDCTL_API=3 etcdctl snapshot save /tmp/backup.db --endpoints=https://127.0.0.1:2379 --cacert=/etc/kubernetes/pki/etcd/ca.crt --cert=/etc/kubernetes/pki/etcd/server.crt --key=/etc/kubernetes/pki/etcd/server.key`
- `ETCDCTL_API=3 etcdctl snapshot restore /tmp/backup.db --data-dir=/var/lib/etcd-restored`
- `ETCDCTL_API=3 etcdctl backup /tmp/backup.db --endpoints=https://127.0.0.1:2379 --cacert=/etc/kubernetes/pki/etcd/ca.crt --cert=/etc/kubernetes/pki/etcd/server.crt --key=/etc/kubernetes/pki/etcd/server.key`
- `ETCDCTL_API=3 etcdctl snapshot status /tmp/backup.db --endpoints=https://127.0.0.1:2379 --cacert=/etc/kubernetes/pki/etcd/ca.crt --cert=/etc/kubernetes/pki/etcd/server.crt --key=/etc/kubernetes/pki/etcd/server.key`
Answer: A — `ETCDCTL_API=3 etcdctl snapshot save /tmp/backup.db --endpoints=https://127.0.0.1:2379 --cacert=/etc/kubernetes/pki/etcd/ca.crt --cert=/etc/kubernetes/pki/etcd/server.crt --key=/etc/kubernetes/pki/etcd/server.key`
`etcdctl snapshot save` writes the backup using the endpoint and certificate flags.
35. A container exits with code `126`. Which fix matches that exit code?
- Add an infinite loop to the entrypoint
- Fix file permissions in the image
- Fix the container command in the YAML
- Increase the container's memory limit
Answer: B — Fix file permissions in the image
Exit code 126 indicates permission denied, so the file permissions inside the image must be corrected.
36. DNS resolution fails and the administrator wants to inspect the CoreDNS configuration for mistakes. Which command shows it?
- `k get deployment coredns -n kube-system -o yaml`
- `k get configmap kube-proxy -n kube-system -o yaml`
- `k get endpoints kube-dns -n kube-system`
- `k get configmap coredns -n kube-system -o yaml`
Answer: D — `k get configmap coredns -n kube-system -o yaml`
CoreDNS reads its configuration from the `coredns` ConfigMap, so that object holds any misconfiguration to inspect.
37. A StatefulSet's pods must be reachable at names such as `mysql-0.mysql`. What must the associated Service specify?
- `sessionAffinity: ClientIP`
- `type: NodePort`
- `externalName: mysql`
- `clusterIP: None`
Answer: D — `clusterIP: None`
A headless Service sets `clusterIP: None`, which provides per-pod DNS records instead of a virtual IP.
38. A pod named `web` in namespace `exercise-01` carries labels `app=web` and `tier=frontend`. An administrator must remove only the `tier` label from the running pod. Which command does that?
- `k label pod web -n exercise-01 --delete tier`
- `k label pod web -n exercise-01 tier=frontend`
- `k annotate pod web -n exercise-01 tier-`
- `k label pod web -n exercise-01 tier-`
Answer: D — `k label pod web -n exercise-01 tier-`
The trailing hyphen removes the label; assigning a value or annotating the pod does not.
39. An Ingress reports `no endpoints available for backend`. Which command should be run first to confirm the Service in namespace `ingress-lab` has backing Pod IPs?
- `kubectl get pods -n kube-system`
- `kubectl get ingressclass`
- `kubectl get ingress -n ingress-lab`
- `kubectl get endpoints -n ingress-lab`
Answer: D — `kubectl get endpoints -n ingress-lab`
The error points to a backend Service with no endpoints; checking endpoints confirms whether any Pod IPs back it.
40. A PV's data must be preserved after its PVC is released. Which reclaim policy is required?
- `Retain`
- `Delete`
- `Preserve`
- `Recycle`
Answer: A — `Retain`
`Retain` keeps the data when the PVC is released.
41. An administrator suspects a PersistentVolume and PersistentVolumeClaim use different storage class names. Which pair of commands compares the two class names directly?
- `k get pv <name> -o jsonpath='{.spec.accessModes}'` and `k get pvc <name> -o jsonpath='{.spec.accessModes}'`
- `k get pv <name> -o jsonpath='{.spec.storageClassName}'` and `k get pvc <name> -o jsonpath='{.spec.storageClassName}'`
- `k get pv <name>` and `k get pvc <name>`
- `k get pv <name> -o jsonpath='{.spec.capacity.storage}'` and `k get pvc <name> -o jsonpath='{.spec.resources.requests.storage}'`
Answer: B — `k get pv <name> -o jsonpath='{.spec.storageClassName}'` and `k get pvc <name> -o jsonpath='{.spec.storageClassName}'`
The class names must match exactly, and the `storageClassName` field on each object is the direct comparison.
42. A PVC named `my-pvc` is Bound in namespace `default`. A Pod is created in namespace `app` with `claimName: my-pvc`. What happens to the Pod?
- It mounts the PVC normally, because PersistentVolumes are cluster-scoped.
- It runs but cannot write to the volume.
- It stays Pending until the PVC is also created in namespace `app`.
- It stays Pending because the PVC is not in its namespace.
Answer: D — It stays Pending because the PVC is not in its namespace.
A PVC is resolved only within its own namespace, so a Pod in another namespace cannot find it by name and remains Pending.
43. After restoring a snapshot to `/var/lib/etcd-restored`, what must also change for the etcd static Pod to use the restored data?
- The snapshot must be copied to `/var/lib/etcd` before etcd starts.
- The API server must be restarted with a new `--etcd-servers` address.
- The etcd manifest must point both `--data-dir` and the `hostPath.path` at `/var/lib/etcd-restored`.
- Only kubelet's config must be regenerated.
Answer: C — The etcd manifest must point both `--data-dir` and the `hostPath.path` at `/var/lib/etcd-restored`.
After restore, the etcd static Pod manifest must point `--data-dir` and `hostPath.path` at the restored directory.
44. A Service listens on port 80, but the container listens on 8080. Which Service field must be 8080?
- `targetPort`
- `nodePort`
- `port`
- `clusterIP`
Answer: A — `targetPort`
`targetPort` is the container port; `port` is the Service port.
45. A PersistentVolume offers 500Mi and the PersistentVolumeClaim requests 1Gi; both use the same storage class and access mode, but the claim stays `Pending`. What fix does this situation call for?
- Add a `nodeSelector` to the Pod using the claim
- Change the claim's access mode to match the volume
- Create a larger PersistentVolume or request less storage in the claim
- Delete the StorageClass and recreate it
Answer: C — Create a larger PersistentVolume or request less storage in the claim
The volume is smaller than the requested capacity, so the pair will not bind until the volume grows or the request shrinks.
46. Before relying on an etcd snapshot, an administrator wants a table showing its status. Which command does that?
- `etcdutl --write-out=table snapshot restore /tmp/backup.db`
- `etcdutl --write-out=table snapshot status /tmp/backup.db`
- `etcdutl --write-out=table snapshot save /tmp/backup.db`
- `etcdctl --write-out=table endpoint status /tmp/backup.db`
Answer: B — `etcdutl --write-out=table snapshot status /tmp/backup.db`
`etcdutl snapshot status` reads a snapshot file and, with `--write-out=table`, prints its hash, revision, key count and size. kubernetes.io recommends `etcdutl` for this: `etcdctl snapshot status` has been deprecated since etcd v3.5. `endpoint status` queries a running member, not a file, and `snapshot save` is an `etcdctl` command that writes a snapshot rather than inspecting one.
47. After changing the `payments` Service `targetPort` to `8080`, EndpointSlices still contain ready endpoints and the Service name still resolves, but HTTP requests fail. Why?
- The Service selector no longer matches the Pods.
- CoreDNS has stopped resolving the Service.
- The Service type must be NodePort.
- The nginx container has no listener on port 8080.
Answer: D — The nginx container has no listener on port 8080.
Endpoints remain because the selector still matches, but the traffic is forwarded to a container port where nginx is not listening.
48. A Job manifest sets `completions: 3` and `parallelism: 1`. How does the Job execute?
- One pod restarts three times
- Three pods run one after another, each completing once
- Three pods run at the same time
- Three pods are created, and the Job completes when any one of them succeeds
Answer: B — Three pods run one after another, each completing once
`completions` is the total number of successful runs, and `parallelism: 1` makes those runs serial.
Take this test interactively
More Certified Kubernetes Administrator (CKA) practice tests