Certified Kubernetes Administrator (CKA) Exam (CKA) - Linux Foundation

Exam Questions

94%

Students found the real exam almost the same

1,057

Students passed this exam after ExamsQA Prep

95.1%

Average score during Real Exams at the Testing Centre

💡

Browse at least 50% questions to maximize your chances of passing

Free Preview Questions

Sample CKA Exam Questions & Explanations

Practice with real question formats, multiple choice options, and detailed answer explanations for Linux Foundation CKA.

Question #1 Verified Q&A
Monitor the logs of pod foo and: Extract log lines corresponding to error unable-to-access-website Write them to /opt/KULM00201/foo<br />
<br />
<img src="https://examsqa.com/storage/question-images/certified-kubernetes-administrator-cka-exam-cka-2_page_1_Im2.jpg" alt="Exhibit" style="max-width: 100%; height: auto;" />
Explanation:
solution<br />
<br />
• Readme ›_ Web Terminal •THELINUX FOUNDATION<br />
<br />
<img src="https://examsqa.com/storage/question-images/certified-kubernetes-administrator-cka-exam-cka-2_page_2_Im3.jpg" alt="Exhibit" style="max-width: 100%; height: auto;" /><br />
<br />
student@node-1:$ student nodels sudo -1<br />
rootenode-1:~f alias k=kubectl rootênode-1: -*l<br />
<br />
<img src="https://examsqa.com/storage/question-images/certified-kubernetes-administrator-cka-exam-cka-2_page_2_Im4.jpg" alt="Exhibit" style="max-width: 100%; height: auto;" /><br />
<br />
•D Readme >_ Web Terminal • THELINUX FOUNDATION<br />
root@node-1:~t k logs foo | grep unable-to-access-website Thu Aug 27 05:25:28 UIC 2020 - ERROR - unable-to-access-website root@node-1:~/ k logs foo | grep unable-to-access-website > /opt/KULM00201/foo
Question #2 Verified Q&A
List all persistent volumes sorted by capacity, saving the full kubectl output to /opt/KUCC00102/volume_list. Use kubectl 's own functionality for sorting the output, and do not manipulate it any further.
Explanation:
solution<br />
<br />
<img src="https://examsqa.com/storage/question-images/certified-kubernetes-administrator-cka-exam-cka-2_page_3_Im5.jpg" alt="Exhibit" style="max-width: 100%; height: auto;" />
Question #3 Verified Q&A
Ensure a single instance of pod nginx is running on each node of the Kubernetes cluster where nginx also represents the Image name which has to be used. Do not override any taints currently in place. Use DaemonSet to complete this task and use ds-kusc00201 as DaemonSet name.
Explanation:
solution<br />
<br />
<img src="https://examsqa.com/storage/question-images/certified-kubernetes-administrator-cka-exam-cka-2_page_4_Im6.jpg" alt="Exhibit" style="max-width: 100%; height: auto;" /><br />
<br />
<img src="https://examsqa.com/storage/question-images/certified-kubernetes-administrator-cka-exam-cka-2_page_4_Im7.jpg" alt="Exhibit" style="max-width: 100%; height: auto;" /><br />
<br />
DO Readme ›_ Web Terminal<br />
apiVersion: apps/vl<br />
<br />
<img src="https://examsqa.com/storage/question-images/certified-kubernetes-administrator-cka-exam-cka-2_page_5_Im8.jpg" alt="Exhibit" style="max-width: 100%; height: auto;" /><br />
<br />
metadata: kind: DaemonSet name: ds-kusc00201 зрес: selector: matchlabels: labels: name: fluentd-elasticsearch name: fluentd-elasticsearch template: metadata: image: nginx spec: containers:<br />
<br />
- name: nginx<br />
DO Readme >_ Web Terminal<br />
<br />
<img src="https://examsqa.com/storage/question-images/certified-kubernetes-administrator-cka-exam-cka-2_page_5_Im9.jpg" alt="Exhibit" style="max-width: 100%; height: auto;" /><br />
<br />
• THELINUX FOUNDATION<br />
root@node-1: ~ vim ds. yaml iroot@node-1:~# k create -f ds. yanl root@node-1: ~‡ k get ds NAME DESIRED CURRENT READY UP-TO-DATE daemonset.apps/ds-kusc00201 created ds-kusc00201 2 rootênode-1:~/l<br />
<br />
•THELINUX FOUNDATION<br />
AVAILABLE NODE SELECTOR AGE ‹none> 4s
Question #4 Verified Q&A
Perform the following tasks: Add an init container to hungry-bear (which has been defined in spec file /opt/KUCC00108/pod-spec- KUC C00108.yaml ) The init container should create an empty file named /workdir/calm.txt<br />
If /workdir/calm.txt is not detected, the pod should exit<br />
Once the spec file has been updated with the init container definition, the pod should be created
Explanation:
solution<br />
<br />
<img src="https://examsqa.com/storage/question-images/certified-kubernetes-administrator-cka-exam-cka-2_page_6_Im10.jpg" alt="Exhibit" style="max-width: 100%; height: auto;" /><br />
<br />
apiVersion: v1 kind: Pod metadata:<br />
<br />
<img src="https://examsqa.com/storage/question-images/certified-kubernetes-administrator-cka-exam-cka-2_page_7_Im11.jpg" alt="Exhibit" style="max-width: 100%; height: auto;" /><br />
<br />
• THE LINUX FOUNDATION<br />
<br />
• Readme › Web Terminal<br />
volumes: name: hungry-bear emptyDir:<br />
<br />
- name: checker<br />
command: [*/bin/sh", "-c", "i [-1 /workdir/calm.txt 1a volumeMounts: then sleep 100000; else exit 1; fi*]<br />
<br />
- name: workdir<br />
<br />
- name: workdir<br />
initContainers:<br />
<br />
- name: create<br />
image: alpine image: alpine command: [*/bin/sh", *-c", "touch /workdir/caln.txt"] name: workdir mountPath: /workdir mountPath: /workdir volumeMounts:<br />
<br />
<img src="https://examsqa.com/storage/question-images/certified-kubernetes-administrator-cka-exam-cka-2_page_7_Im12.jpg" alt="Exhibit" style="max-width: 100%; height: auto;" /><br />
<br />
20 Readme >_ Web Terminal root@node-1:~i vim ds.yaml iroot@node-l:~| k create -f ds. yaml daemonset.apps/ds-kusc00201 created root@node-1:~i k get ds DESIRED CURRENT UP-TO-DATE AVAILABLE NODE SELECTOR AGE root@node-1:~f vim /opt/KUCC00108/pod-spec-KUCC00108.yaml root@node-1:- k create -f/opt/KUCC00108/pod-spec-KUCC00108-yaml pod/hungry-bear created rotendeli<br />
<br />
•THELINUX FOUNDATION<br />
<none> 4s
Question #5 Verified Q&A
Create a pod named kucc8 with a single app container for each of the following images running inside (there may be between 1 and 4 images specified): nginx + redis + memcached.
Explanation:
solution<br />
<br />
<img src="https://examsqa.com/storage/question-images/certified-kubernetes-administrator-cka-exam-cka-2_page_8_Im13.jpg" alt="Exhibit" style="max-width: 100%; height: auto;" /><br />
<br />
apiVersion: v1 Kind: Pod metadata:<br />
<br />
<img src="https://examsqa.com/storage/question-images/certified-kubernetes-administrator-cka-exam-cka-2_page_9_Im14.jpg" alt="Exhibit" style="max-width: 100%; height: auto;" /><br />
<br />
spec: containers: aD Readme › Web Terminal name: kucc8 cpu-utilizer-98b9se 1/1 Running<br />
<br />
- image: nginx<br />
name: nginx cpu-utilizer-ab2d3s 1/1 Running<br />
<br />
- image: redis<br />
name: redis cpu-utilizer-kipb9a 1/1 Running image: memcached name: memcached ds-kusc00201-2r2k9 1/1 Running ds-kusc00201-hzm9q 1/1 Running front-end 1/1 Running hungry-bear 1/1 Running webserver-84c5596714-t4791 1/1 Running<br />
<br />
<img src="https://examsqa.com/storage/question-images/certified-kubernetes-administrator-cka-exam-cka-2_page_9_Im15.jpg" alt="Exhibit" style="max-width: 100%; height: auto;" /><br />
<br />
+ Readme > Web Terminal NAME READY STATUS cpu-utilizer-98b9se 1/1 Running 5h51m 5h51m 5h51m cpu-utilizer-ab2d3s 1/1 Running 6m12s 6m12s 10o 1/1 Running cpu-utilizer-kipb9a 1/1 Running 5h53m 2m4s ds-kusc00201-2r2k9 1/1 Running kucce 0/3 ContainerCreating 45 webserver-84c55967f4-qzJcv 1/1 Running ds-kusc00201-hzm9q 1/1 Running root@node-l:~| k get po foo 1/1 Running front-end 1/1 Running • o 5h52m 5h52m 5h52m hungry-bear 1/1 Running 6m31s 6m31s 5h54m 5h54m 5h54m 2m23s| 23s kucc8 3/3 Running • c webserver-84c5596714-t4791 1/1 Running webserver-84c55967t4-q2Jcv 1/1 Running 6h9m 6h9m 6h9m 6h9m at node-ll OTHELINUX FOUNDATION<br />
<br />
•THELINUX FOUNDATION<br />
RESTARTS AGE

Want to practice all 67 questions?

Practice under real exam conditions with instant grading, timed simulations, and community insights.

Start Full CKA Practice Test

Frequently Asked Questions

Common questions about the Linux Foundation CKA certification practice test

How many questions are in the Linux Foundation CKA practice exam on ExamsQA?
Our CKA (Certified Kubernetes Administrator (CKA) Exam) practice question bank currently includes 67 verified questions with comprehensive explanations.
Are the CKA exam practice questions up to date for 2026?
Yes, all Linux Foundation CKA practice questions are regularly updated and verified against current exam objectives.
Will the CKA practice questions help me pass on my first attempt?
The CKA (Certified Kubernetes Administrator (CKA) Exam) question bank is built to mirror the real exam's format and topics, with detailed explanations for every answer so you understand the reasoning — not just memorize responses.
Is there a free demo available for CKA Certified Kubernetes Administrator (CKA) Exam?
Yes, ExamsQA offers free demo questions for the CKA exam so you can test the interface and question quality before purchasing full access.