ExamGecko

Linux Foundation CKA Practice Test - Questions Answers, Page 7

Question list
Search
Search

Question 61

Report
Export
Collapse

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.

Become a Premium Member for full access
Unlock Premium Member  Unlock Premium Member

Question 62

Report
Export
Collapse

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

Become a Premium Member for full access
Unlock Premium Member  Unlock Premium Member

Question 63

Report
Export
Collapse

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.

Become a Premium Member for full access
Unlock Premium Member  Unlock Premium Member

Question 64

Report
Export
Collapse

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).

Become a Premium Member for full access
Unlock Premium Member  Unlock Premium Member

Question 65

Report
Export
Collapse

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.

Become a Premium Member for full access
Unlock Premium Member  Unlock Premium Member

Question 66

Report
Export
Collapse

Task Weight: 4%

Task

Scale the deployment webserver to 3 pods.

Become a Premium Member for full access
Unlock Premium Member  Unlock Premium Member

Question 67

Report
Export
Collapse

Task Weight: 4%

Task

Schedule a Pod as follows:

• Name: kucc1

• App Containers: 2

• Container Name/Images:

o nginx

o consul

Become a Premium Member for full access
Unlock Premium Member  Unlock Premium Member
Total 67 questions
Go to page: of 7