Summer Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: pass65

Pass the Linux Foundation Kubernetes Administrator CKA Questions and answers with ValidTests

Exam CKA All Questions
Exam CKA Premium Access

View all detail and faqs for the CKA exam

Viewing page 1 out of 3 pages
Viewing questions 1-10 out of questions
Questions # 1:

Create a deployment spec file that will:

    Launch 7 replicas of the nginx Image with the labelapp_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.

Options:

Expert Solution
Questions # 2:

Score:7%

Question # 2

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.

Options:

Expert Solution
Questions # 3:

Score: 5%

Question # 3

Task

Monitor the logs of pod bar and:

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

• Write them to /opt/KUTR00101/bar

Options:

Expert Solution
Questions # 4:

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

Options:

Expert Solution
Questions # 5:

Monitor the logs of pod foo and:

    Extract log lines corresponding to error

unable-to-access-website

    Write them to/opt/KULM00201/foo

Question # 5

Options:

Expert Solution
Questions # 6:

Task Weight: 4%

Question # 6

Task

Scale the deployment webserver to 3 pods.

Options:

Expert Solution
Questions # 7:

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 super-secret at /secrets.

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

Options:

Expert Solution
Questions # 8:

Score: 7%

Question # 8

Task

Create a new NetworkPolicy named allow-port-from-namespace in the existing namespace echo. Ensure that the new NetworkPolicy allows Pods in namespace my-app to connect to port 9000 of Pods in namespace echo.

Further ensure that the new NetworkPolicy:

• does not allow access to Pods, which don't listen on port 9000

• does not allow access from Pods, which are not in namespace my-app

Options:

Expert Solution
Questions # 9:

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.

Options:

Expert Solution
Questions # 10:

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

Options:

Expert Solution
Viewing page 1 out of 3 pages
Viewing questions 1-10 out of questions