LINUX certification preparation

CKA Practice Questions

Practice exam-style questions, check your answers, and review explanations and source references where they are available.

Exam
CKA
Provider
LINUX
Full set
83 questions
Last Update Check

Our CKA exam simulator covers all the critical knowledge points of the real exam. We provide the latest actual CKA exam questions and answers right here at Cert Mage. With our included answer explanations and comprehensive CKA question bank, you will find everything you need to prepare and achieve the best score on your exam easily and quickly.

SIMULATION You must connect to the correct host. Failure to do so may result in a zero score. [candidate@base] $ ssh Cka000037 Context A legacy app needs to be integrated into the Kubernetes built-in logging architecture (i.e. kubectl logs). Adding a streaming co-located container is a good and common way to accomplish this requirement. Task Update the existing Deployment synergy-leverager, adding a co-located container named sidecar using the busybox:stable image to the existing Pod . The new co-located container has to run the following command: /bin/sh -c "tail -n+1 -f /var/log/syne rgy-leverager.log" Use a Volume mounted at /var/log to make the log file synergy-leverager.log available to the co- located container . Do not modify the specification of the existing container other than adding the required volume mount . Failure to do so may result in a reduced score.
SIMULATION A Kubernetes worker node, named wk8s-node-0 is in state NotReady. Investigate why this is the case, and perform any appropriate steps to bring the node to a Ready state, ensuring that any changes are made permanent. You can ssh to the failed node using: [student@node-1] $ | ssh Wk8s-node-0 You can assume elevated privileges on the node with the following command: [student@w8ks-node-0] $ | sudo –i
SIMULATION Create a deployment as follows: Name: nginx-random Exposed via a service nginx-random Ensure that the service and pod are accessible via their respective DNS records The container(s) within any pod(s) running as a part of this deployment should use the nginx Image Next, use the utility nslookup to look up the DNS records of the service and pod and write the output to /opt/KUNW00601/service.dns and /opt/KUNW00601/pod.dns respectively.
SIMULATION List the nginx pod with custom columns POD_NAME and POD_STATUS
SIMULATION Create a persistent volume with name app-data, of capacity 2Gi and access mode ReadWriteMany. The type of volume is hostPath and its location is /srv/app-data.
SIMULATION Get list of all pods in all namespaces and write it to file “/opt/pods-list.yaml”
SIMULATION Create a nginx pod with label env=test in engineering namespace
SIMULATION Create a busybox pod that runs the command “env” and save the output to “envpod” file

SIMULATION Score:7% Linux CKA question Context An existing Pod needs to be integrated into the Kubernetes built-in logging architecture (e. g. kubectl logs). Adding a streaming sidecar container is a good and common way to accomplish this requirement. Task Add a sidecar container named sidecar, using the busybox Image, to the existing Pod big-corp-app. The new sidecar container has to run the following command: /bin/sh -c tail -n+1 -f /va r/log/big-corp-app.log Use a Volume, mounted at /var/log, to make the log file big-corp-app.log available to the sidecar container. Linux CKA question

SIMULATION Create a pod with image nginx called nginx and allow traffic on port 80
Question 1 of 10

Source context

How this practice set is maintained

Maintained by the CertMage content team, this page loads questions from the exam dataset connected to its preparation resource. When an answer includes a supporting reference, it is shown with that answer so you can review the underlying vendor documentation.

Certification objectives, interfaces, and vendor services can change. Verify important details against the provider's current exam guide and documentation before your exam.

Scroll to Top