Check the image version in pod without the describe command
Show answerHide answer
Correct answer: .
Explanation
Answer: See the solution below.
Explanation:
kubectl get po nginx -o
jsonpath='{.spec.containers[].image}{"\n"}'
Certified Kubernetes Administrator (CKA) Program
Free CKA mock exam questions 11–19, each with the answer and an explanation.
19 questions · 31 minutes · free, no sign-up
Check the image version in pod without the describe command
Correct answer: .
Answer: See the solution below.
Explanation:
kubectl get po nginx -o
jsonpath='{.spec.containers[].image}{"\n"}'
Get list of all pods in all namespaces and write it to file “/opt/pods-list.yaml”
Correct answer: .
Answer: See the solution below.
Explanation:
kubectl get po –all-namespaces > /opt/pods-list.yaml
Create a deployment as follows:
Name:nginx-random
Exposed via a servicenginx-random
Ensure that the service & podare accessible via theirrespective DNS records
The container(s) within anypod(s) running as a part of thisdeployment should use
thenginxImage
Next, use the utilitynslookupto lookup the DNS records of the service &pod and write the
output to/opt/KUNW00601/service.dnsand/opt/KUNW00601/pod.dnsrespectively.
Correct answer: .
Answer: See the solution below.
Explanation:
Solution:
List “nginx-dev” and “nginx-prod” pod and delete those pods
Correct answer: .
Answer: See the solution below.
Explanation:
kubect1 get pods -o wide
kubectl delete po “nginx-dev”kubectl delete po “nginx-prod
List the nginx pod with custom columns POD_NAME and POD_STATUS
Correct answer: .
Answer: See the solution below.
Explanation:
kubectl get po -o=custom-columns="POD_NAME:.metadata.name,
POD_STATUS:.status.containerStatuses[].state"
Check to see how many worker nodes are ready (not including nodes taintedNoSchedule)
and write the number to/opt/KUCC00104/kucc00104.txt
Correct answer: .
Answer: See the solution below.
Explanation:
solution
Check to see how many worker nodes are ready (not including nodes taintedNoSchedule)
and write the number to/opt/KUCC00104/kucc00104.txt.
Correct answer: .

Create a deployment as follows:
Name:nginx-app
Using containernginxwithversion 1.11.10-alpine
The deployment should contain3replicas
Next, deploy the application with newversion1.11.13-alpine, byperforming a rolling update.
Finally, rollback that update to theprevious version1.11.10-alpine.
Correct answer: .

Configure the kubelet systemd-managed service, on the nodelabelled withname=wk8snode-
1, tolaunch a pod containing a singlecontainer of Imagehttpdnamedwebtool
automatically. Any spec filesrequired should be placed in the/etc/kubernetes/manifests
directoryon the node.
You canssh to theappropriate node using:
[student@node-1] $ sshwk8s-node-1
You can assume elevatedprivileges on the node with thefollowing command:
[student@wk8s-node-1] $ |sudo –i
Correct answer: .
Answer: See the solution below.
Explanation:
solution
You've seen the free 30% (19 of 65 questions). Full access unlocks every question and full-length CKA mock exams (65 questions, 105 minutes), a different mock on every attempt.
Full-length mocks with the same number of questions and the same time limit as the real CKA exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.
Get full CKA mock exam