Free Linux Foundation CKA Exam Actual Questions

The questions for CKA were last updated On May 5, 2024

Question No. 1

Monitor the logs of pod foo and:

Extract log lines corresponding to error

unable-to-access-website

Write them to /opt/KULM00201/foo

Show Answer Hide Answer
Correct Answer: A

Question No. 2

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.

Show Answer Hide Answer
Correct Answer: A

Question No. 3

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.

Show Answer Hide Answer
Correct Answer: A

Question No. 4

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

If /workdir/calm.txt is not detected, the pod should exit

Once the spec file has been updated with the init container definition, the pod should be created

Show Answer Hide Answer
Correct Answer: A

Question No. 5

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.

Show Answer Hide Answer
Correct Answer: A