This page was exported from IT Certification Exam Braindumps [ http://blog.braindumpsit.com ] Export date:Sat Apr 12 19:10:50 2025 / +0000 GMT ___________________________________________________ Title: 2022 Latest Linux Foundation CKA Real Exam Dumps PDF [Q12-Q31] --------------------------------------------------- 2022 Latest Linux Foundation CKA Real Exam Dumps PDF CKA Exam Dumps, CKA Practice Test Questions The benefit of obtaining the CNCF CKA Certification Exam Certification The CNCF CKA Certification Exam is in demand in various countries. The demand for the CNCF Certified Kubernetes Administrator exam is high in many countries. Prospective clients will be able to find the benefits after obtaining the certification compared to other alternatives. The organizations preparing for the certification exam will be able to provide an employment opportunity for the certified engineering professionals. Component Providers will be able to find the benefits after obtaining the certification compared to other alternatives. Ingress and Rest components will be able to find the benefits after obtaining the certification compared with other alternatives. CNCF CKA exam dumps are the best option to pass the exam. The CNCF CKA certification exam will be beneficial for candidates with an interest in Kubernetes development. A variety of IT jobs will be available after obtaining the certification compared to other alternatives. Software developers, IT specialists, and software engineers will be able to find numerous positions after obtaining the verification. Configuring Kubernetes will prove to be of value for IT professionals who want to get into the IT industry. A lot of software engineers are being employed by various organizations due to the demand for the CNCF Certified Kubernetes Administrator certification exam. Logging and Monitoring will be of value to IT professionals. IT professionals who want to work in the IT industry should take interest in getting the certification Exam. The job market will be an excellent place for software engineers and software developers after obtaining the certification. Scratch your name, handle, and email on the CNCF CKA Certification Exam website. Evaluation of the certification is done after acquiring the CNCF CKA Certification Exam. Marry: After obtaining the certification, you can get married. The salary of IT professionals who work in the IT industry is increasing. The certificate will be issued online after gaining the CNCF CKA Certification Exam. For more info read reference: CNCF Website   QUESTION 12Scale the deployment webserver to See the solution below.ExplanationsolutionF:WorkData Entry WorkData Entry20200827CKA14 B.JPGQUESTION 13Create an nginx pod and list the pod with different levels of verbosity  // create a podkubectl run nginx –image=nginx –restart=Never –port=80// List the pod with different verbositykubectl get po nginx –v=7kubectl get po nginx –v=8kubectl get po nginx –v=9  // create a podkubectl run nginx –image=nginx –restart=Never –port=80// List the pod with different verbositykubectl get po nginx –v=7kubectl get po nginx –v=6kubectl get po nginx –v=9 QUESTION 14Create a Pod nginx and specify both CPU, memory requests and limits together and verify.  kubectl run nginx-request –image=nginx –restart=Always –dryrun -o yaml > nginx-request.yml// add the resources section and createapiVersion: v1kind: Podmetadata:labels:run: nginxname: nginxresources:requests:memory: “100Mi”cpu: “0.4”limits:memory: “200Mi”cpu: “7”restartPolicy: Alwaysk kubectl apply -f nginx-request.yaml// VerifyKubectl top po  kubectl run nginx-request –image=nginx –restart=Always –dryrun -o yaml > nginx-request.yml// add the resources section and createapiVersion: v1kind: Podmetadata:labels:run: nginxname: nginx-requestspec:containers:– image: nginxname: nginxresources:requests:memory: “100Mi”cpu: “0.5”limits:memory: “200Mi”cpu: “1”restartPolicy: Alwaysk kubectl apply -f nginx-request.yaml// VerifyKubectl top po QUESTION 15List all the pods that are serviced by the service “webservice” and copy the output in /opt/$USER/webservice.targets Note: You need to list the endpoints kubectl descrive svc webservice | grep -i “Endpoints” > /opt/$USER/webservice.targets kubectl get endpoints webservice > /opt/$USER/webservice.targetsQUESTION 16Score: 5%TaskMonitor the logs of pod bar and:* Extract log lines corresponding to error* Write them to /opt/KUTR00101/bar See the solution below.ExplanationSolution:kubectl logs bar | grep ‘unable-to-access-website’ > /opt/KUTR00101/bar cat /opt/KUTR00101/barQUESTION 17Get the deployment rollout status kubectl rollout status deploy webappQUESTION 18Schedule a pod as follows:Name: nginx-kusc00101Image: nginxNode selector: disk=ssd See the solution below.ExplanationsolutionF:WorkData Entry WorkData Entry20200827CKA6 B.JPGF:WorkData Entry WorkData Entry20200827CKA6 C.JPGF:WorkData Entry WorkData Entry20200827CKA6 D.JPGQUESTION 19List all the pods sorted by name See the solution below.Explanationkubect1 get pods –sort-by=.metadata.nameQUESTION 20Deploymenta. Create a deployment of webapp with image nginx:1.17.1 withcontainer port 80 and verify the image version  // Create initial YAML file with -dry-run optionkubectl create deploy webapp –image=nginx:1.17.1 –dryrun=client -o yaml > webapp.yaml vim webapp.yaml apiVersion: apps/v1 kind: Deployment metadata:labels:app: webappname: webappspec: replicas: 1 selector: matchLabels: app: webapp template: metadata: labels: app: webapp spec: containers: – image: nginx:1.17.1 name: nginx kubectl create -f webapp.yaml -record=true //Verify Image Version kubectl describe deploy webapp | grep -i “Image” Using JsonPath kubectl get deploy -o=jsonpath='{range.items [*]}{.[*]} {.metadata.name}{“t”}{.spec.template.spec.containers[*].i mage}{“n”}’  // Create initial YAML file with -dry-run optionkubectl create deploy webapp –image=nginx:1.17.1 –dryrun=client -o yaml > webapp.yaml vim webapp.yaml apiVersion: apps/v1 kind: Deployment metadata:labels:app: webappname: webappspec: replicas: 1 containers: – image: nginx:1.17.1 name: nginx kubectl create -f webapp.yaml -record=true //Verify Image Version kubectl describe deploy webapp | grep -i “Image” Using JsonPath kubectl get deploy -o=jsonpath='{range.items [*]}{.[*]} {.metadata.name}{“t”}{.spec.template.spec.containers[*].i mage}{“n”}’ QUESTION 21Create a configmap called cfgvolume with values var1=val1,var2=val2 and create an nginx pod with volume nginx-volume whichreads data from this configmap cfgvolume and put it on the path/etc/cfg  // first create a configmap cfgvolumekubectl create cm cfgvolume –from-literal=var1=val1 –fromliteral=var2=val2// verify the configmapkubectl describe cm cfgvolume// create the config mapkubectl create -f nginx-volume.ymlvim nginx-configmap-pod.yamlapiVersion: v1kind: Pod– name: nginx-volumeconfigMap:name: cfgvolumecontainers:– image: nginxname: nginxvolumeMounts:– name: nginx-volumemountPath: /etc/cfgrestartPolicy: Alwaysk kubectl apply -f nginx-configmap-pod.yaml/ // Verify// exec into the podkubectl exec -it nginx — /bin/sh// check the pathcd /etc/cfg  // first create a configmap cfgvolumekubectl create cm cfgvolume –from-literal=var1=val1 –fromliteral=var2=val2// verify the configmapkubectl describe cm cfgvolume// create the config mapkubectl create -f nginx-volume.ymlvim nginx-configmap-pod.yamlapiVersion: v1kind: Podmetadata:labels:run: nginxname: nginxspec:volumes:– name: nginx-volumeconfigMap:name: cfgvolumecontainers:– image: nginxname: nginxvolumeMounts:– name: nginx-volumemountPath: /etc/cfgrestartPolicy: Alwaysk kubectl apply -f nginx-configmap-pod.yaml/ // Verify// exec into the podkubectl exec -it nginx — /bin/sh// check the pathcd /etc/cfg QUESTION 22Score: 4%TaskSet the node named ek8s-node-1 as unavailable and reschedule all the pods running on it. See the solution below.ExplanationSOLUTION:[student@node-1] > ssh ek8skubectl cordon ek8s-node-1kubectl drain ek8s-node-1 –delete-local-data –ignore-daemonsets –forceQUESTION 23List all persistent volumes sorted bycapacity, saving the fullkubectloutput to/opt/KUCC00102/volume_list. Usekubectl ‘s own functionality forsorting the output, and do not manipulate it any further. See the solution below.ExplanationsolutionQUESTION 24Scale the deployment to 5 replicas kubectl scale deployment webapp -replicas=5 //Verify kubectl get deploy kubectl get po,rsQUESTION 25Score: 7%TaskReconfigure the existing deployment front-end and add a port specification named http exposing port 80/tcp of the existing container nginx.Create a new service named front-end-svc exposing the container port http.Configure the new service to also expose the individual Pods via a NodePort on the nodes on which they are scheduled. See the solution below.ExplanationSolution:kubectl get deploy front-endkubectl edit deploy front-end -o yaml#port specification named http#service.yamlapiVersion: v1kind: Servicemetadata:name: front-end-svclabels:app: nginxspec:ports:– port: 80protocol: tcpname: httpselector:app: nginxtype: NodePort# kubectl create -f service.yaml# kubectl get svc# port specification named httpkubectl expose deployment front-end –name=front-end-svc –port=80 –tarport=80 –type=NodePortQUESTION 26Create a Cronjob with busybox image that prints date and hello from kubernetes cluster message for every minute  CronJob Syntax:* –> Minute* –> Hours* –> Day of The Month* –> Month* –> Day of the Week*/1 * * * * –> Execute a command every one minutes.vim date-job.yamlapiVersion: batch/v1beta1kind: CronJobmetadata:name: date-jobspec:schedule: “*/1 * * * *”jobTemplate:spec:template:spec:containers:– name: helloimage: busyboxargs:– /bin/sh– -c– date; echo Hello from the Kubernetes clusterrestartPolicy: OnFailurekubectl apply -f date-job.yaml//Verifykubectl get cj date-job -o yaml  CronJob Syntax:* –> Minute* –> Hours* –> Day of The Month* –> Month* –> Day of the Week*/1 * * * * –> Execute a command every one minutes.vim date-job.yamlapiVersion: batch/v1beta1kind: CronJobmetadata:name: date-jobspec:schedule: “*/1 * * * *”jobTemplate:spec:template:– /bin/sh– -c– date; echo Hello from the Kubernetes clusterrestartPolicy: OnFailurekubectl apply -f date-job.yaml//Verifykubectl get cj date-job -o yaml QUESTION 27An Administrator is configuring Authentication Enforcement and they would like to create an exemption rule to exempt a specific group from authentication. Which authentication enforcement object should they select?  default-web-form  default-no-captive-port  default-browser-challenge  default-authentication-bypass QUESTION 28For this item, you will havetosshto the nodesik8s-master-0andik8s-node-0and complete all tasks on thesenodes. Ensure that you return tothe base node (hostname:node-1) when you havecompleted this item.ContextAs an administrator of a smalldevelopment team, you have beenasked to set up a Kubernetes clusterto test the viability of a newapplication.TaskYou must usekubeadmto performthis task. Anykubeadminvocationswill require the use of the–ignore-preflight-errors=alloption.* Configure thenodeik8s-master-Oas a masternode. .* Join the nodeik8s-node-otothe cluster. See the solution below.ExplanationsolutionYou must use thekubeadmconfiguration file located at when initializingyour cluster.You may use any CNI pluginto complete this task, but ifyou don’t have your favouriteCNI plugin’s manifest URL athand, Calico is one popularoption:https://docs.projectcalico.org/v3.14/manifests/calico.yaml Docker is already installedon both nodes and hasbeen configured so that you caninstall the required tools.QUESTION 29Create a busybox pod and add “sleep 3600” command kubectl run busybox –image=busybox –restart=Never — /bin/sh -c “sleep 3600”QUESTION 30List all configmap and secrets in the cluster in all namespace and write it to a file /opt/configmap-secret kubectl get configmap,secrets –all-namespaces > /opt/configmap-secret // Verify Cat /opt/configmap-secretQUESTION 31Allow traffic from all the pods in “web” namespace and from podswith label “type=monitoring” to the pods matching label “app: db”  kubectl create namespace webkubectl label namespace/web app=webvim web-allow-all-ns-monitoring.yamlapiVersion: networking.k8s.io/v1kind: NetworkPolicymetadata:name: web-allow-all-ns-monitoringnamespace: defaultspec:podSelector:matchLabels:app: dbingress:– from:– namespaceSelector:matchLabels:app: webpodSelector:matchLabels:type: monitoringk kubectl apply -f web-allow-all-ns-monitoring.yaml  kubectl create namespace webkubectl label namespace/web app=webvim web-allow-all-ns-monitoring.yamlapiVersion: networking.k8s.io/v1kind: NetworkPolicymetadata:name: web-allow-all-ns-monitoringnamespace: defaultspec:podSelector:podSelector:matchLabels:type: monitoringk kubectl apply -f web-allow-all-ns-monitoring.yaml  Loading … PDF (New 2022) Actual Linux Foundation CKA Exam Questions: https://www.braindumpsit.com/CKA_real-exam.html --------------------------------------------------- Images: https://blog.braindumpsit.com/wp-content/plugins/watu/loading.gif https://blog.braindumpsit.com/wp-content/plugins/watu/loading.gif --------------------------------------------------- --------------------------------------------------- Post date: 2022-06-20 16:11:58 Post date GMT: 2022-06-20 16:11:58 Post modified date: 2022-06-20 16:11:58 Post modified date GMT: 2022-06-20 16:11:58