ExamGecko
Home / Linux Foundation / CKA / List of questions
Ask Question

Linux Foundation CKA Practice Test - Questions Answers, Page 2

List of questions

Question 11

Report
Export
Collapse

Create a file:

/opt/KUCC00302/kucc00302.txt that lists all pods that implement service baz in namespace development.

The format of the file should be one pod name per line.

See the solution below.
See the solution below.
Suggested answer: A

Explanation:

solution

Linux Foundation CKA image Question 11 explanation 51390 09182024211423000000

Linux Foundation CKA image Question 11 explanation 51390 09182024211423000000

asked 18/09/2024
Sergey Ushakov
33 questions

Question 12

Report
Export
Collapse

Create a Kubernetes secret as follows:

Name: super-secret password: bob

Create a pod named pod-secrets-via-file, using the redis Image, which mounts a secret named supersecret at /secrets.

Create a second pod named pod-secrets-via-env, using the redis Image, which exports password as

CONFIDENTIAL

See the solution below.
See the solution below.
Suggested answer: A

Explanation:

solution

Linux Foundation CKA image Question 12 explanation 51391 09182024211423000000

Linux Foundation CKA image Question 12 explanation 51391 09182024211423000000

asked 18/09/2024
Jasper John Cecilio
30 questions

Question 13

Report
Export
Collapse

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.

See the solution below.
See the solution below.
Suggested answer: A

Explanation:

solution

Linux Foundation CKA image Question 13 explanation 51392 09182024211423000000

Linux Foundation CKA image Question 13 explanation 51392 09182024211423000000

asked 18/09/2024
Abdulilah Alhousainy
39 questions

Question 14

Report
Export
Collapse

Scale the deployment webserver to 6 pods.

See the solution below.
See the solution below.
Suggested answer: A

Explanation:

solution

Linux Foundation CKA image Question 14 explanation 51393 09182024211423000000

asked 18/09/2024
Eduardo Bravo
38 questions

Question 15

Report
Export
Collapse

Check to see how many worker nodes are ready (not including nodes tainted NoSchedule) and write the number to /opt/KUCC00104/kucc00104.txt.

See the solution below.
See the solution below.
Suggested answer: A

Explanation:

solution

Linux Foundation CKA image Question 15 explanation 51394 09182024211423000000

asked 18/09/2024
Borisov Aleksandr
35 questions

Question 16

Report
Export
Collapse

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/KUTR00102/KUTR00102.txt (which already exists).

See the solution below.
See the solution below.
Suggested answer: A

Explanation:

solution

Linux Foundation CKA image Question 16 explanation 51395 09182024211423000000

Linux Foundation CKA image Question 16 explanation 51395 09182024211423000000

asked 18/09/2024
Mustafa Hussien
41 questions

Question 17

Report
Export
Collapse

Create a deployment as follows:

Name: nginx-random

Exposed via a service nginx-random

Ensure that the service & 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 & pod and write the output to /opt/KUNW00601/service.dns and /opt/KUNW00601/pod.dns respectively.

See the solution below.
See the solution below.
Suggested answer: A

Explanation:

Solution:

Linux Foundation CKA image Question 17 explanation 51396 09182024211423000000

Linux Foundation CKA image Question 17 explanation 51396 09182024211423000000

asked 18/09/2024
Renats Fasulins
37 questions

Question 18

Report
Export
Collapse

Create a snapshot of the etcd instance running at https://127.0.0.1:2379, saving the snapshot to the file path /srv/data/etcd-snapshot.db.

The following TLS certificates/key are supplied for connecting to the server with etcdctl:

CA certificate: /opt/KUCM00302/ca.crt

Client certificate: /opt/KUCM00302/etcd-client.crt

Client key: Topt/KUCM00302/etcd-client.key

See the solution below.
See the solution below.
Suggested answer: A

Explanation:

solution

Linux Foundation CKA image Question 18 explanation 51397 09182024211423000000

asked 18/09/2024
M Kumar
40 questions

Question 19

Report
Export
Collapse

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

See the solution below.
See the solution below.
Suggested answer: A

Explanation:

solution

Linux Foundation CKA image Question 19 explanation 51398 09182024211423000000

asked 18/09/2024
Jorge Andres Gutierrez
30 questions

Question 20

Report
Export
Collapse

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

See the solution below.
See the solution below.
Suggested answer: A

Explanation:

solution

Linux Foundation CKA image Question 20 explanation 51399 09182024211423000000

Linux Foundation CKA image Question 20 explanation 51399 09182024211423000000

asked 18/09/2024
Ken Mak
43 questions
Total 67 questions
Go to page: of 7
Search