This page was exported from Free Exam Dumps Collection [ http://free.examcollectionpass.com ]
Export date: Sat Nov 30 19:14:17 2024 / +0000 GMT

[Q29-Q53] Free CKA Questions for Linux Foundation CKA Exam [Jul-2023]




Free CKA Questions for Linux Foundation CKA Exam [Jul-2023]

Validate your CKA Exam Preparation with CKA Practice Test (Online & Offline)


Linux Foundation CKA (Certified Kubernetes Administrator) program is a certification that recognizes an individual's expertise in managing and deploying applications on the Kubernetes platform. Certified Kubernetes Administrator (CKA) Program Exam certification is designed for professionals who have a solid understanding of Kubernetes and its underlying components, including networking, storage, security, and cluster architecture. The CKA program is ideal for individuals who are looking to enhance their Kubernetes skillset and are interested in pursuing a career in DevOps, cloud computing, or containerization.

 

Q29. Score: 4%

Task
Create a persistent volume with name app-data , of capacity 1Gi and access mode ReadOnlyMany. The type of volume is hostPath and its location is /srv/app-data .

Q30. List “nginx-dev” and “nginx-prod” pod and delete those pods

Q31. Create a deployment as follows:
* Name:nginx-random
* Exposed via a servicenginx-random
* Ensure that the service & podare accessible via theirrespective DNS records
* The container(s) within anypod(s) running as a part of thisdeployment should use thenginxImage Next, use the utilitynslookupto lookup the DNS records of the service &pod and write the output to
/opt/KUNW00601/service.dnsand/opt/KUNW00601/pod.dnsrespectively.

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

Q33. Score: 4%

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

Q34. Create a busybox pod and add “sleep 3600” command

Q35. Create a persistent volume with name app-data, of capacity 2Gi and access mode ReadWriteMany. The type of volume is hostPath and its location is /srv/app-data.

Q36. List all the pods sorted by created timestamp

Q37. Create a pod with environment variables as var1=value1.Check the environment variable in pod

 
 

Q38. Get all the pods with label “env”

Q39. For this item, you will have to ssh to the nodes ik8s-master-0 and ik8s-node-0 and complete all tasks on these nodes. Ensure that you return to the base node (hostname: node-1) when you have completed this item.
Context
As an administrator of a small development team, you have been asked to set up a Kubernetes cluster to test the viability of a new application.
Task You must use kubeadm to perform this task. Any kubeadm invocations will require the use of the –ignore-preflight-errors=all option.
Configure the node ik8s-master-O as a master node. .
Join the node ik8s-node-o to the cluster.

Q40. Create a persistent volume with nameapp-data, of capacity2Giandaccess modeReadWriteMany. Thetype of volume ishostPathand itslocation is/srv/app-data.

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

Q42. Create and configure the service front-end-service so it’s accessible through NodePort and routes to the existing pod named front-end.

Q43. Score: 7%

Task
First, create a snapshot of the existing etcd instance running at https://127.0.0.1:2379, saving the snapshot to
/srv/data/etcd-snapshot.db.

Next, restore an existing, previous snapshot located at /var/lib/backup/etcd-snapshot-previo us.db

Q44. Given a partially-functioning Kubernetes cluster, identify symptoms of failure on the cluster.
Determine the node, the failing service, and take actions to bring up the failed service and restore the health of the cluster. Ensure that any changes are made permanently.
You can ssh to the relevant I nodes (bk8s-master-0 or bk8s-node-0) using:
[student@node-1] $ ssh <nodename>
You can assume elevated privileges on any node in the cluster with the following command:
[student@nodename] $ | sudo -i

Q45. Create a Kubernetes secret asfollows:
* Name: super-secret
* password: bob
Create a pod namedpod-secrets-via-file Image, which mounts a secret namedsuper-secretat
/secrets.
Create a second pod namedpod-secrets-via-env Image, which exportspasswordas CONFIDENTIAL

Q46. Create a Pod with three busy box containers with commands “ls; sleep 3600;”, “echo Hello World; sleep 3600;” and “echo this is the third container; sleep 3600” respectively and check the status

 
 

Q47. Schedule a pod as follows:
* Name: nginx-kusc00101
* Image: nginx
* Node selector: disk=ssd

Q48. Get list of all the pods showing name and namespace with a jsonpath expression.

Q49. Score: 4%

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

Q50. Create a Cronjob with busybox image that prints date and hello from kubernetes cluster message for every minute

 
 

Q51. Monitor the logs of pod foo and:
Extract log lines corresponding
unable-to-access-website
Write them to/opt/KULM00201/foo

Q52. Change the Image version back to 1.17.1 for the pod you just updated and observe the changes

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


Check Real Linux Foundation CKA Exam Question for Free (2023): https://www.examcollectionpass.com/Linux-Foundation/CKA-practice-exam-dumps.html

Post date: 2023-07-19 11:30:04
Post date GMT: 2023-07-19 11:30:04
Post modified date: 2023-07-19 11:30:04
Post modified date GMT: 2023-07-19 11:30:04