Linux Foundation Certified Kubernetes Administrator Exam Practice Test

Page: 1 / 14
Total 67 questions
Question 1

Task Weight: 4%

Task

Schedule a Pod as follows:

* Name: kucc1

* App Containers: 2

* Container Name/Images:

o nginx

o consul



Answer : A


Question 2

Score: 5%

Task

From the pod label name=cpu-utilizer, find pods running high CPU workloads and write the name of the pod consuming most CPU to the file /opt/KUTR00401/KUTR00401.txt (which already exists).



Answer : A


Question 3

Score:7%

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.



Answer : A


Question 4

Score: 5%

Task

Monitor the logs of pod bar and:

* Extract log lines corresponding to error file-not-found

* Write them to /opt/KUTR00101/bar



Answer : A


Question 5

Score:7%

Task

Create a new PersistentVolumeClaim

* Name: pv-volume

* Class: csi-hostpath-sc

* Capacity: 10Mi

Create a new Pod which mounts the PersistentVolumeClaim as a volume:

* Name: web-server

* Image: nginx

* Mount path: /usr/share/nginx/html

Configure the new Pod to have ReadWriteOnce access on the volume.

Finally, using kubectl edit or kubectl patch expand the PersistentVolumeClaim to a capacity of 70Mi and record that change.



Answer : A


Question 6

Create a pod that echo ''hello world'' and then exists. Have the pod deleted automatically when it's completed



Answer : A


Question 7

List pod logs named ''frontend'' and search for the pattern ''started'' and write it to a file ''/opt/error-logs''



Answer : A


Page:    1 / 14   
Total 67 questions