CKA Exam - Free Sample Questions & Answers
Preparing for the CKA exam is simple with Certs Blitz. We offer easy-to-understand study materials that help you learn the most important exam topics. You can study using our PDF questions, practice online with a real exam-style test, or use the desktop practice software. Choose the study method that works best for you and prepare at your own pace.
At Certs Blitz, we keep our CKA practice questions up to date. Whenever the exam syllabus or objectives change, we update our study materials so you always learn the latest topics. This helps you save time, avoid outdated content, and feel more confident when you take your exam.
SIMULATION
Check the image version in pod without the describe command
Correct Answer: A
kubectl get po nginx -o
jsonpath='{.spec.containers[].image}{'\n'}'
SIMULATION
Get list of all pods in all namespaces and write it to file ''/opt/pods-list.yaml''
Correct Answer: A
kubectl get po --all-namespaces > /opt/pods-list.yaml
SIMULATION
Print pod name and start time to ''/opt/pod-status'' file
Correct Answer: A
kubect1 get pods -o=jsonpath='{range
items[*]}{.metadata.name}{'\t'}{.status.podIP}{'\n'}{end}'
Which command displays the current working directory?
Correct Answer: A
You need to display the last 20 lines of a log file.
Which command should you use?