Linux Foundation CKA Certified Kubernetes Administrator Exam Practice Test

Page: 1 / 14
Total 67 questions
Question 1

Create a pod as follows:

Name: non-persistent-redis

container Image: redis

Volume with name: cache-control

Mount path: /data/redis

The pod should launch in the staging namespace and the volume must not be persistent.



Answer : A


Question 2

Score: 13%

Task

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.



Answer : A


Question 3

Create a deployment spec file that will:

Launch 7 replicas of the nginx Image with the label app_runtime_stage=dev

deployment name: kual00201

Save a copy of this spec file to /opt/KUAL00201/spec_deployment.yaml

(or /opt/KUAL00201/spec_deployment.json).

When you are done, clean up (delete) any new Kubernetes API object that you produced during this task.



Answer : A


Question 4

Scale the deployment webserver to 6 pods.



Answer : A


Question 5

Print pod name and start time to ''/opt/pod-status'' file



Answer : A


Question 6

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



Answer : A


Question 7

Score: 4%

Task

Set the node named ek8s-node-1 as unavailable and reschedule all the pods running on it.



Answer : A


Page:    1 / 14   
Total 67 questions