Certified Kubernetes Administrator CKA Exam Questions
Question #1 (Topic: Demo Questions)
SIMULATION
Check the image version in pod without the describe command
Correct Answer: A
Explanation:
kubectl get po nginx -o
jsonpath='{.spec.containers[].image}{'\n'}'
Question #2 (Topic: Demo Questions)
SIMULATION
Get list of all pods in all namespaces and write it to file ''/opt/pods-list.yaml''
Correct Answer: A
Explanation:
kubectl get po --all-namespaces > /opt/pods-list.yaml
Question #3 (Topic: Demo Questions)
SIMULATION
Print pod name and start time to ''/opt/pod-status'' file
Correct Answer: A
Explanation:
kubect1 get pods -o=jsonpath='{range
items[*]}{.metadata.name}{'\t'}{.status.podIP}{'\n'}{end}'
Question #4 (Topic: Demo Questions)
Which command displays the current working directory?
Correct Answer: A
Question #5 (Topic: Demo Questions)
You need to display the last 20 lines of a log file.
Which command should you use?