{"id":1930,"date":"2025-03-31T09:19:05","date_gmt":"2025-03-31T09:19:05","guid":{"rendered":"https:\/\/blog.topexamcollection.com\/?p=1930"},"modified":"2025-03-31T09:19:05","modified_gmt":"2025-03-31T09:19:05","slug":"pass-linux-foundation-cka-exam-quickly-with-topexamcollection-q58-q82","status":"publish","type":"post","link":"https:\/\/blog.topexamcollection.com\/ko\/2025\/03\/pass-linux-foundation-cka-exam-quickly-with-topexamcollection-q58-q82\/","title":{"rendered":"Pass Linux Foundation CKA Exam Quickly With TopExamCollection [Q58-Q82]"},"content":{"rendered":"\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-left kksr-valign-top\"\n    data-payload='{&quot;align&quot;:&quot;left&quot;,&quot;id&quot;:&quot;1930&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;top&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;4&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;4.2&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;4.2\\\/5 - (4 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;Pass Linux Foundation CKA Exam Quickly With TopExamCollection [Q58-Q82]&quot;,&quot;width&quot;:&quot;119.3&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 119.3px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            4.2\/5 - (4 votes)    <\/div>\n    <\/div>\n<p><strong><span style=\"font-size: 18px;color: red\">Pass Linux Foundation CKA Exam Quickly With TopExamCollection<\/span><\/strong><\/p>\n<p><strong><span style=\"color: red\">Prepare CKA Question Answers &#8211; CKA Exam Dumps<\/span><\/strong><\/p>\n<p><\/p>\n<p>The CKA certification is highly regarded in the industry, and it is recognized as a standard for measuring the skills of Kubernetes administrators. Certified Kubernetes Administrator (CKA) Program Exam certification provides a way for professionals to demonstrate their expertise to employers and clients, and it can help them advance their careers in the field of Kubernetes administration. The CKA certification is also a prerequisite for other Kubernetes certifications offered by the Linux Foundation, such as the Certified Kubernetes Application Developer (CKAD) certification.<\/p>\n<p><\/p>\n<p>The CKA exam is a performance-based exam that tests the practical skills of individuals in managing and deploying Kubernetes clusters. CKA exam consists of a series of hands-on tasks that are designed to simulate real-world scenarios. The tasks are designed to test the ability of individuals to deploy, manage, and troubleshoot Kubernetes clusters, as well as to configure networking, security, and storage. CKA exam is conducted online and can be taken from anywhere in the world.<\/p>\n<p>&nbsp;<\/p>\n<div id=\"watu_quiz\" class=\"quiz-area single-page-quiz\">\n<form action=\"\" method=\"post\" class=\"quiz-form \" id=\"quiz-826\" >\n<div class='watu-question' id='question-1'><div class='question-content'><p><strong>QUESTION 58<\/strong><br \/>Create a deployment as follows:<br \/>Name: nginx-app<br \/>Using container nginx with version 1.11.10-alpine<br \/>The deployment should contain 3 replicas<br \/>Next, deploy the application with new version 1.11.13-alpine, by performing a rolling update.<br \/>Finally, rollback that update to the previous version 1.11.10-alpine.<\/p>\n<\/div><input type='hidden' name='question_id[]' value='16236' \/><textarea name='answer-16236[]' rows='5' cols='40' id='textarea_q_16236' class='watu-textarea watu-textarea-1'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>solution<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-c6431984ad0681ebf2ce70f9d3d246a9.jpg\"\/><br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-f955c9f1962eb0d4401ace8bb4068192.jpg\"\/><br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-7bee4599cdac80da8fd2c284355b4d76.jpg\"\/><\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(1,this)' id='btn-1' value='See Answer'  \/><input type='hidden' id='questionType1' value='textarea' class=''><\/div><div class='watu-question' id='question-2'><div class='question-content'><p><strong>QUESTION 59<\/strong><br \/>Create a pod as follows:<br \/>* Name: mongo<br \/>* Using Image: mongo<br \/>* In a new Kubernetes namespace named<\/p>\n<\/div><input type='hidden' name='question_id[]' value='16237' \/><textarea name='answer-16237[]' rows='5' cols='40' id='textarea_q_16237' class='watu-textarea watu-textarea-2'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>See the solution below.<br\/>Explanation<br\/>solution<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-6344710b6cab5e37325f56b257834789.jpg\"\/><\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(2,this)' id='btn-2' value='See Answer'  \/><input type='hidden' id='questionType2' value='textarea' class=''><\/div><div class='watu-question' id='question-3'><div class='question-content'><p><strong>QUESTION 60<\/strong><br \/>Create a deployment spec file that will:<br \/>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).<br \/>When you are done, clean up (delete) any new Kubernetes API object that you produced during this task.<\/p>\n<\/div><input type='hidden' name='question_id[]' value='16238' \/><textarea name='answer-16238[]' rows='5' cols='40' id='textarea_q_16238' class='watu-textarea watu-textarea-3'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>See the solution below.<br\/>Explanation<br\/>solution<br\/>F:\\Work\\Data Entry Work\\Data Entry\\20200827\\CKA\\10 B.JPG<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-8e437d0bc258a4b73b360b10da8242b7.jpg\"\/><br\/>F:\\Work\\Data Entry Work\\Data Entry\\20200827\\CKA\\10 C.JPG<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-fe9a1f04071bbd572b7dd157ad57cb86.jpg\"\/><\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(3,this)' id='btn-3' value='See Answer'  \/><input type='hidden' id='questionType3' value='textarea' class=''><\/div><div class='watu-question' id='question-4'><div class='question-content'><p><strong>QUESTION 61<\/strong><br \/>Scale the deployment from 5 replicas to 20 replicas and verify<\/p>\n<\/div><input type='hidden' name='question_id[]' value='16239' \/><textarea name='answer-16239[]' rows='5' cols='40' id='textarea_q_16239' class='watu-textarea watu-textarea-4'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>kubectl scale deploy webapp &#8211;replicas=20 kubectl get deploy webapp kubectl get po -l app=webapp<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(4,this)' id='btn-4' value='See Answer'  \/><input type='hidden' id='questionType4' value='textarea' class=''><\/div><div class='watu-question' id='question-5'><div class='question-content'><p><strong>QUESTION 62<\/strong><br \/>Clean the cluster by deleting deployment and hpa you just created<\/p>\n<\/div><input type='hidden' name='question_id[]' value='16240' \/><textarea name='answer-16240[]' rows='5' cols='40' id='textarea_q_16240' class='watu-textarea watu-textarea-5'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>kubectl delete deploy webapp kubectl delete hpa webapp<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(5,this)' id='btn-5' value='See Answer'  \/><input type='hidden' id='questionType5' value='textarea' class=''><\/div><div class='watu-question' id='question-6'><div class='question-content'><p><strong>QUESTION 63<\/strong><br \/>Score:7%<br \/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-9033b59adcbfd6b37b123efeb6fe1777.jpg\"\/><br \/>Task<br \/>Create a new PersistentVolumeClaim<br \/>* Name: pv-volume<br \/>* Class: csi-hostpath-sc<br \/>* Capacity: 10Mi<br \/>Create a new Pod which mounts the PersistentVolumeClaim as a volume:<br \/>* Name: web-server<br \/>* Image: nginx<br \/>* Mount path: \/usr\/share\/nginx\/html<br \/>Configure the new Pod to have ReadWriteOnce access on the volume.<br \/>Finally, using kubectl edit or kubectl patch expand the PersistentVolumeClaim to a capacity of 70Mi and record that change.<\/p>\n<\/div><input type='hidden' name='question_id[]' value='16241' \/><textarea name='answer-16241[]' rows='5' cols='40' id='textarea_q_16241' class='watu-textarea watu-textarea-6'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>Solution:<br\/>vi pvc.yaml<br\/>storageclass pvc<br\/>apiVersion: v1<br\/>kind: PersistentVolumeClaim<br\/>metadata:<br\/>name: pv-volume<br\/>spec:<br\/>accessModes:<br\/>&#8211; ReadWriteOnce<br\/>volumeMode: Filesystem<br\/>resources:<br\/>requests:<br\/>storage: 10Mi<br\/>storageClassName: csi-hostpath-sc<br\/># vi pod-pvc.yaml<br\/>apiVersion: v1<br\/>kind: Pod<br\/>metadata:<br\/>name: web-server<br\/>spec:<br\/>containers:<br\/>&#8211; name: web-server<br\/>image: nginx<br\/>volumeMounts:<br\/>&#8211; mountPath: &#8220;\/usr\/share\/nginx\/html&#8221;<br\/>name: my-volume<br\/>volumes:<br\/>&#8211; name: my-volume<br\/>persistentVolumeClaim:<br\/>claimName: pv-volume<br\/># craete<br\/>kubectl create -f pod-pvc.yaml<br\/>#edit<br\/>kubectl edit pvc pv-volume &#8211;record<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(6,this)' id='btn-6' value='See Answer'  \/><input type='hidden' id='questionType6' value='textarea' class=''><\/div><div class='watu-question' id='question-7'><div class='question-content'><p><strong>QUESTION 64<\/strong><br \/>Create a snapshot of the etcd instance running at https:\/\/127.0.0.1:2379, saving the snapshot to the file path<br \/>\/srv\/data\/etcd-snapshot.db.<br \/>The following TLS certificates\/key are supplied for connecting to the server with etcdctl:<br \/>* CA certificate: \/opt\/KUCM00302\/ca.crt<br \/>* Client certificate: \/opt\/KUCM00302\/etcd-client.crt<br \/>* Client key: Topt\/KUCM00302\/etcd-client.key<\/p>\n<\/div><input type='hidden' name='question_id[]' value='16242' \/><textarea name='answer-16242[]' rows='5' cols='40' id='textarea_q_16242' class='watu-textarea watu-textarea-7'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>See the solution below.<br\/>Explanation<br\/>solution<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-b9af6a64a134a079dde7b3d1dad0fcaa.jpg\"\/><\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(7,this)' id='btn-7' value='See Answer'  \/><input type='hidden' id='questionType7' value='textarea' class=''><\/div><div class='watu-question' id='question-8'><div class='question-content'><p><strong>QUESTION 65<\/strong><br \/>Configure the kubelet systemd- managed service, on the node labelled with name=wk8s-node-1, to launch a pod containing a single container of Image httpd named webtool automatically. Any spec files required should be placed in the \/etc\/kubernetes\/manifests directory on the node.<br \/>You can ssh to the appropriate node using:<br \/>[student@node-1] $ ssh wk8s-node-1<br \/>You can assume elevated privileges on the node with the following command:<br \/>[student@wk8s-node-1] $ | sudo -i<\/p>\n<\/div><input type='hidden' name='question_id[]' value='16243' \/><textarea name='answer-16243[]' rows='5' cols='40' id='textarea_q_16243' class='watu-textarea watu-textarea-8'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>See the solution below.<br\/>Explanation<br\/>solution<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-e514aad7dfbdf62de9e3cc682a33ebcd.jpg\"\/><br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-996a0921e946641f4abd499dadc1ffc1.jpg\"\/><br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-54e832f32ea20facdab90cfe456fc06a.jpg\"\/><br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-25c10dfe5cccbbba9e973b656f3d7545.jpg\"\/><br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-c3a62065d99c6f38fa9c536148247ed8.jpg\"\/><\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(8,this)' id='btn-8' value='See Answer'  \/><input type='hidden' id='questionType8' value='textarea' class=''><\/div><div class='watu-question' id='question-9'><div class='question-content'><p><strong>QUESTION 66<\/strong><br \/>Get list of all the pods showing name and namespace with a jsonpath expression.<\/p>\n<\/div><input type='hidden' name='question_id[]' value='16244' \/><textarea name='answer-16244[]' rows='5' cols='40' id='textarea_q_16244' class='watu-textarea watu-textarea-9'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>See the solution below.<br\/>Explanation<br\/>kubectl get pods -o=jsonpath=&#8221;{.items[*][&#8216;metadata.name&#8217;<br\/>, &#8216;metadata.namespace&#8217;]}&#8221;<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(9,this)' id='btn-9' value='See Answer'  \/><input type='hidden' id='questionType9' value='textarea' class=''><\/div><div class='watu-question' id='question-10'><div class='question-content'><p><strong>QUESTION 67<\/strong><br \/>How can an administrator configure the NGFW to automatically quarantine a device using Global Protect?<\/p>\n<\/div><input type='hidden' name='question_id[]' value='16245' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='62761' \/><div class='watu-question-choice'><input type='radio' name='answer-16245[]' id='answer-id-62761' class='answer answer-10 php-answer-label answerof-16245' value='62761' \/>&nbsp;<label for='answer-id-62761' id='answer-label-62761' class='php-answer-label answer label-10'><span class='answer'>by adding the device&#8217;s Host ID to a quarantine list and configure GlobalProtect to prevent users from connecting to the GlobalProtect gateway from a quarantined device.<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='62762' \/><div class='watu-question-choice'><input type='radio' name='answer-16245[]' id='answer-id-62762' class='answer answer-10 js-answer-label answerof-16245' value='62762' \/>&nbsp;<label for='answer-id-62762' id='answer-label-62762' class='js-answer-label answer label-10'><span class='answer'>There is no native auto-quarantine feature so a custom script would need to be leveraged.<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='62763' \/><div class='watu-question-choice'><input type='radio' name='answer-16245[]' id='answer-id-62763' class='answer answer-10 js-answer-label answerof-16245' value='62763' \/>&nbsp;<label for='answer-id-62763' id='answer-label-62763' class='js-answer-label answer label-10'><span class='answer'>by using security policies, log forwarding profiles, and log settings.<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='62764' \/><div class='watu-question-choice'><input type='radio' name='answer-16245[]' id='answer-id-62764' class='answer answer-10 js-answer-label answerof-16245' value='62764' \/>&nbsp;<label for='answer-id-62764' id='answer-label-62764' class='js-answer-label answer label-10'><span class='answer'>by exporting the list of quarantined devices to a pdf or csv file by selecting PDF\/CSV at the bottom of the Device Quarantine page and leveraging the appropriate XSOAR playbook.<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'><\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(10,this)' id='btn-10' value='See Answer'  \/><input type='hidden' id='questionType10' value='radio' class=''><\/div><div class='watu-question' id='question-11'><div class='question-content'><p><strong>QUESTION 68<\/strong><br \/>You are tasked with setting up fine-grained access control for a Kubernetes cluster running a microservices application. You need to ensure that developers can only access the resources related to their specific microservices while preventing them from accessing or modifying other services&#8217; resources. Define RBAC roles and permissions to achieve this, including details of the resources, verbs, and namespaces involved. Consider the following:<\/p>\n<\/div><input type='hidden' name='question_id[]' value='16246' \/><textarea name='answer-16246[]' rows='5' cols='40' id='textarea_q_16246' class='watu-textarea watu-textarea-11'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>See the solution below with Step by Step Explanation.<br\/>Explanation:<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-a16ccfb7dee63cb1ff8c126f7bae6b78.jpg\"\/><br\/>Specify the YAML configurations for roles, role bindings, and service accounts to enable the required access control, ensuring developers only have access to their respective microservice&#8217;s resources within their assigned namespaces. Solution (Step by Step) : 1. Define Roles:<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-f7827f459f58386bdd88018b647fd390.jpg\"\/><br\/>2. Create Service Accounts: apiVersion: vl kind: ServiceAccount metadata: name: order-service-sa namespace: order-service-ns &#8212; apiVersion: vl kind: ServiceAccount metadata: name: payment-service-sa namespace: payment-service-ns &#8212; apiVersion: vl kind: ServiceAccount metadata: name: inventory-service-sa namespace: inventory-service-ns 3. Bind Roles to Service Accounts: &#8212; apiVersion: rbac.authorization.k8s.io\/v1 kind: RoleBinding metadata: name: order-service-dev-binding namespace: order-service-ns roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: order-service-dev subjects: &#8211; kind: ServiceAccount name: order-service-sa namespace: order-service-ns &#8212; apiVersion: rbac.authorization.k8s.io\/v1 kind: RoleBinding metadata: name: payment-service-dev-binding namespace: payment-service-ns roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: payment-service-dev subjects: &#8211; kind: ServiceAccount name: payment-service-sa namespace: payment-service-ns &#8212; apiVersion: rbac.authorization.k8s.io\/v1 kind: RoleBinding metadata: name: inventory-service-dev-binding namespace: inventory-service-ns roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: inventory-service-dev subjects: &#8211; kind: ServiceAccount name: inventory-service-sa namespace: inventory-service-ns 4. Assign Service Accounts to Users: This step requires external authentication mechanisms like OIDC or LDAP. Assuming you have these mechanisms set up, you can associate the service accounts with specific users (&#8216;john.doe@example.com&#8217; , &#8216;jane.doe@example.com&#8217;, and &#8216;peter.pan@example.com&#8217;) using the configured authentication provider. Roles: Define the specific permissions for each microservice developer within their respective namespaces. The roles allow developers to access resources like Pods, Deployments, Services, ConfigMaps, and Secrets related to their assigned microservice. Service Accounts: Service accounts are created in each namespace for each microservice, representing the identity of the developer group. Role Bindings: Role bindings connect the defined roles with the service accounts, granting the associated permissions. User Association: This step connects the service accounts with individual developers through external authentication mechanisms, enabling them to utilize the assigned permissions. By following these steps, you ensure that developers can only access and manage resources associated with their respective microservices within their assigned namespaces. This fine-grained access control policy effectively restricts access and prevents developers from interfering with other microservices or resources. ,<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(11,this)' id='btn-11' value='See Answer'  \/><input type='hidden' id='questionType11' value='textarea' class=''><\/div><div class='watu-question' id='question-12'><div class='question-content'><p><strong>QUESTION 69<\/strong><br \/>Create the nginx pod with version 1.17.4 and expose it on port 80<\/p>\n<\/div><input type='hidden' name='question_id[]' value='16247' \/><textarea name='answer-16247[]' rows='5' cols='40' id='textarea_q_16247' class='watu-textarea watu-textarea-12'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>kubectl run nginx &#8211;image=nginx:1.17.4 &#8211;restart=Never &#8212; port=80<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(12,this)' id='btn-12' value='See Answer'  \/><input type='hidden' id='questionType12' value='textarea' class=''><\/div><div class='watu-question' id='question-13'><div class='question-content'><p><strong>QUESTION 70<\/strong><br \/>You are running a critical application on Kubernetes that requires high availability. To ensure the application stays operational even if one or more nodes experience failures, you decide to implement a pod anti-affinity rule. Explain how you can configure an anti-affinity rule to prevent pods from being scheduled on the same node.<\/p>\n<\/div><input type='hidden' name='question_id[]' value='16248' \/><textarea name='answer-16248[]' rows='5' cols='40' id='textarea_q_16248' class='watu-textarea watu-textarea-13'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>See the solution below with Step by Step Explanation.<br\/>Explanation:<br\/>Solution (Step by Step) :<br\/>1 . Define the Anti-Affinity Rule: Add an &#8216;affinity&#8217; section to the &#8216;spec.template.spec&#8217; of your Deployment or StatefulSet. Within , define a podAntiAffinity&#8217; section, specifying that pods with the same label should not be placed on the same node.<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-c9d28a34b9c982b94655aab46b905cd9.jpg\"\/><br\/>2. Use &#8216;requiredDuringSchedulinglgnoredDuringExecution&#8217;: The &#8216;requiredDuringSchedulinglgnoredDuringExecutioru section ensures that the rule is enforced during pod scheduling. Once a pod is scheduled, the rule is ignored. This ensures that even if a node fails, the remaining pods are not affected. 3. Set &#8216;topologyKey&#8217;: The &#8216;topologyKey&#8217; is set to &#8216;kubernetes.io\/hostname&#8217;. This tells Kubernetes to consider the node&#8217;s hostname for pod placement. It will prevent pods with the label &#8216;app: my-critical-app&#8217; from being scheduled on the same node. 4. Verify the Deployment: Apply the YAML file to your cluster using &#8216;kubectl apply -f my-critical-app.yaml&#8217;. You can then check the status of your Deployment using &#8216;kubectl get pods -l app=my-critical-app&#8217; to verify that the pods are distributed across different nodes.<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(13,this)' id='btn-13' value='See Answer'  \/><input type='hidden' id='questionType13' value='textarea' class=''><\/div><div class='watu-question' id='question-14'><div class='question-content'><p><strong>QUESTION 71<\/strong><br \/>Set the node named ek8s-node-1 as unavailable and reschedule all the pods running on it.<\/p>\n<\/div><input type='hidden' name='question_id[]' value='16249' \/><textarea name='answer-16249[]' rows='5' cols='40' id='textarea_q_16249' class='watu-textarea watu-textarea-14'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>See the solution below.<br\/>Explanation<br\/>solution<br\/>F:\\Work\\Data Entry Work\\Data Entry\\20200827\\CKA\\19 B.JPG<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-0f78410e98af1806aadcf8f1414428f8.jpg\"\/><\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(14,this)' id='btn-14' value='See Answer'  \/><input type='hidden' id='questionType14' value='textarea' class=''><\/div><div class='watu-question' id='question-15'><div class='question-content'><p><strong>QUESTION 72<\/strong><br \/>Create a deployment as follows:<br \/>Name: nginx-app<br \/>Using container nginx with version 1.11.10-alpine<br \/>The deployment should contain<br \/>Next, deploy the application with new version   , by performing a rolling update.<br \/>Finally, rollback that update to the previous version<\/p>\n<\/div><input type='hidden' name='question_id[]' value='16250' \/><textarea name='answer-16250[]' rows='5' cols='40' id='textarea_q_16250' class='watu-textarea watu-textarea-15'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>See the solution below.<br\/>Explanation<br\/>solution<br\/>F:\\Work\\Data Entry Work\\Data Entry\\20200827\\CKA\\7 B.JPG<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-3bc5c449212739491bab1401705be864.jpg\"\/><br\/>F:\\Work\\Data Entry Work\\Data Entry\\20200827\\CKA\\7 C.JPG<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-3591c845846a7a747831fb995aaec7be.jpg\"\/><br\/>F:\\Work\\Data Entry Work\\Data Entry\\20200827\\CKA\\7 D.JPG<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-6cf26e7924d9c3d60a0ed0e62d3ce250.jpg\"\/><\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(15,this)' id='btn-15' value='See Answer'  \/><input type='hidden' id='questionType15' value='textarea' class=''><\/div><div class='watu-question' id='question-16'><div class='question-content'><p><strong>QUESTION 73<\/strong><br \/>List &#8220;nginx-dev&#8221; and &#8220;nginx-prod&#8221; pod and delete those pods<\/p>\n<\/div><input type='hidden' name='question_id[]' value='16251' \/><textarea name='answer-16251[]' rows='5' cols='40' id='textarea_q_16251' class='watu-textarea watu-textarea-16'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>kubect1 get pods -o wide<br\/>kubectl delete po &#8220;nginx-dev&#8221; kubectl delete po &#8220;nginx-prod&#8221;<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(16,this)' id='btn-16' value='See Answer'  \/><input type='hidden' id='questionType16' value='textarea' class=''><\/div><div class='watu-question' id='question-17'><div class='question-content'><p><strong>QUESTION 74<\/strong><br \/>You have a Deployment named &#8216;worker-deployment&#8217; that runs a set of worker Pods. You need to configure a PodDisruptionBudget (PDB) for this deployment, ensuring that at least 60% of the worker Pods are always available, even during planned or unplanned disruptions. How can you achieve this?<\/p>\n<\/div><input type='hidden' name='question_id[]' value='16252' \/><textarea name='answer-16252[]' rows='5' cols='40' id='textarea_q_16252' class='watu-textarea watu-textarea-17'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>See the solution below with Step by Step Explanation.<br\/>Explanation:<br\/>Solution (Step by Step) :<br\/>1. PDB YAML Definition:<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-4504ea6c20d5baf536a870e27557ac2e.jpg\"\/><br\/>2. Explanation: &#8211; &#8216;apiVersion: policy\/vl &#8216; : Specifies the API version for PodDisruptionBudget resources. &#8211; &#8216;kind: PodDisruptionBudget&#8217;: Specifies that this is a PodDisruptionBudget resource. &#8211; &#8216;metadata.name: worker-pdb&#8221;: Sets the name of the PDB. &#8211; &#8216;spec.selector.matchLabels: app: worker&#8217;: This selector targets the Pods labeled with &#8216;app: worker&#8217; , ensuring the PDB applies to the &#8216;worker-deployment&#8217; Pods. &#8211; &#8216;spec.minAvailable: 60%&#8217;: Specifies that at least 60% of the total worker Pods must remain available during disruptions. This means that if your deployment has 5 replicas, at least 3 Pods must remain running. 3. How it works: &#8211; The &#8216;minAvailable&#8217; field in the PDB can be specified as a percentage of the total number of Pods in the deployment or as an absolute number of Pods. In this case, we are using a percentage (&#8216;600\/0&#8217;) to ensure a flexible approach to maintaining availability, even if the number of replicas changes. 4. Implementation: &#8211; Apply the YAML using &#8216;kubectl apply -f worker-pdb.yaml&#8217; 5. Verification: You can verify the PDB&#8217;s effectiveness by trying to delete Pods or simulating a node failure. The scheduler will prevent actions that would violate the &#8216;minAvailable&#8217; constraint, ensuring that at least 60% of the worker Pods remain available.<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(17,this)' id='btn-17' value='See Answer'  \/><input type='hidden' id='questionType17' value='textarea' class=''><\/div><div class='watu-question' id='question-18'><div class='question-content'><p><strong>QUESTION 75<\/strong><br \/>Score: 13%<br \/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-90836ef5dc016f2b57b269354a4e5b4d.jpg\"\/><br \/>Task<br \/>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.<br \/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-fe5238f1e4f6929d11176bd339bc4627.jpg\"\/><\/p>\n<\/div><input type='hidden' name='question_id[]' value='16253' \/><textarea name='answer-16253[]' rows='5' cols='40' id='textarea_q_16253' class='watu-textarea watu-textarea-18'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>See the solution below.<br\/>Explanation<br\/>Solution:<br\/>sudo -i<br\/>systemctl status kubelet<br\/>systemctl start kubelet<br\/>systemctl enable kubelet<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(18,this)' id='btn-18' value='See Answer'  \/><input type='hidden' id='questionType18' value='textarea' class=''><\/div><div class='watu-question' id='question-19'><div class='question-content'><p><strong>QUESTION 76<\/strong><br \/>You have a Kubernetes cluster with two worker nodes and a single Nginx service deployed. You want to expose this service externally using a LoadBalancer service type but only want traffic to be directed to pods on a specific worker node. How would you achieve this?<\/p>\n<\/div><input type='hidden' name='question_id[]' value='16254' \/><textarea name='answer-16254[]' rows='5' cols='40' id='textarea_q_16254' class='watu-textarea watu-textarea-19'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>See the solution below with Step by Step Explanation.<br\/>Explanation:<br\/>Solution (Step by Step) :<br\/>1. Create a Node Selector:<br\/>&#8211; Create a Node Selector label on the worker node where you want to host the Nginx pods.<br\/>&#8211; Example:<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-926be442c71f1a4636b159ec6f2112de.jpg\"\/><br\/>&#8211; Apply this configuration using &#8216;kubectl apply -f node-config.yaml&#8217;. 2. Configure the Deployment: &#8211; Update the Nginx deployment to include the Node Selector label in its pod template. &#8211; Example:<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-599baba3cb8e544c607e1d0a71a3dfb4.jpg\"\/><br\/>&#8211; Apply the updated deployment configuration using &#8216;kubectl apply -f nginx-deployment.yamr. 3. Create a LoadBalancer Service: &#8211; Create a LoadBalancer type service that selects the Nginx pods with the &#8216;app=nginx&#8217; label. &#8211; Example:<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-dda66a885399857619457742a5e3a3b9.jpg\"\/><br\/>&#8211; Apply the service configuration using &#8216;kubectl apply -f nginx-service.yamP. 4. Verify the Deployment: &#8211; Confirm the deployment of the Nginx pods on the specified worker node using &#8216;kubectl get pods -l app=nginx -o wide&#8217;. &#8211; Check the LoadBalancer service&#8217;s external IP address using &#8216;kubectl get services nginx-service&#8217;. &#8211; Access the Nginx service using the external IP address. All traffic should be routed to the pods on the worker node with the &#8216;worker-type: nginx&#8217; label. &#8212;<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(19,this)' id='btn-19' value='See Answer'  \/><input type='hidden' id='questionType19' value='textarea' class=''><\/div><div class='watu-question' id='question-20'><div class='question-content'><p><strong>QUESTION 77<\/strong><br \/>You have a deployment that runs multiple replicas of a web server application. You need to ensure that the Deployment always maintains at least 2 replicas available, even if one or more pods are deleted or become unavailable. How can you configure the Deployment to achieve this using the &#8216;maxUnavailable&#8217; field in the &#8216;strategy.rollingUpdate&#8217; section?<\/p>\n<\/div><input type='hidden' name='question_id[]' value='16255' \/><textarea name='answer-16255[]' rows='5' cols='40' id='textarea_q_16255' class='watu-textarea watu-textarea-20'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>See the solution below with Step by Step Explanation.<br\/>Explanation:<br\/>Solution (Step by Step) :<br\/>1. Define the Deployment with maxUnavailable&#8217;: Define a Deployment YAML file with &#8216;replicas: 3&#8217;, indicating that you want three replicas of the web server application. Then, in the &#8216;strategy.rollinglJpdate&#8217; section, set the &#8216;maxUnavailable&#8217; field to &#8216;1&#8217;.<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-16856b251dde232ab01e44648d415f24.jpg\"\/><br\/>2. Apply the Deployment: Apply the YAML file to your cluster using &#8216;kubectl apply -f my-web-server.yamr. The deployment will create three replicas of your web server application. 3. Test the &#8216;maxUnavailable&#8217; Configuration: Delete or terminate one of the pods in the Deployment. The Deployment will automatically create a new pod to replace the deleted or unavailable one, ensuring that at least two replicas are always available. You can monitor the status of the deployment using &#8216;kubectl get pods -l app=my-web-server&#8217;. You should see that two pods are consistently running, while the third is being replaced.<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(20,this)' id='btn-20' value='See Answer'  \/><input type='hidden' id='questionType20' value='textarea' class=''><\/div><div class='watu-question' id='question-21'><div class='question-content'><p><strong>QUESTION 78<\/strong><br \/>Ensure a single instance of pod nginx is running on each node of the Kubernetes cluster where nginx also represents the Image name which has to be used. Do not override any taints currently in place.<br \/>Use DaemonSet to complete this task and use ds-kusc00201 as DaemonSet name.<\/p>\n<\/div><input type='hidden' name='question_id[]' value='16256' \/><textarea name='answer-16256[]' rows='5' cols='40' id='textarea_q_16256' class='watu-textarea watu-textarea-21'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>solution<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-8f90a0592789efa7f0bac072822fd4f5.jpg\"\/><br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-387c85d0aaf5a663b4cf40debad92cd5.jpg\"\/><br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-437c228a3b1bd718d8b6ac32760b5a35.jpg\"\/><br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-90024eb2f14ec4f725ce2b9fb8825f17.jpg\"\/><\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(21,this)' id='btn-21' value='See Answer'  \/><input type='hidden' id='questionType21' value='textarea' class=''><\/div><div class='watu-question' id='question-22'><div class='question-content'><p><strong>QUESTION 79<\/strong><br \/>Configure the kubelet systemd- managed service, on the node labelled with name=wk8s-node-1, to launch a pod containing a single container of Image httpd named webtool automatically. Any spec files required should be placed in the \/etc\/kubernetes\/manifests directory on the node.<br \/>You can ssh to the appropriate node using:<br \/>[student@node-1] $ ssh wk8s-node-1<br \/>You can assume elevated privileges on the node with the following command:<br \/>[student@wk8s-node-1] $ | sudo -i<\/p>\n<\/div><input type='hidden' name='question_id[]' value='16257' \/><textarea name='answer-16257[]' rows='5' cols='40' id='textarea_q_16257' class='watu-textarea watu-textarea-22'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>solution<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-b4af0a864a347c8348f6d70503eb2bd3.jpg\"\/><br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-21aa383effeb6ce7510a9c8d8219ca08.jpg\"\/><br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-dfa008372ca5bf2d723c61d26e1acd27.jpg\"\/><br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-65cb9a01901e5a0eff8b4ecb035eda2d.jpg\"\/><br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-595606521c245436440352011e950f35.jpg\"\/><\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(22,this)' id='btn-22' value='See Answer'  \/><input type='hidden' id='questionType22' value='textarea' class=''><\/div><div class='watu-question' id='question-23'><div class='question-content'><p><strong>QUESTION 80<\/strong><br \/>Score: 7%<br \/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-da503cb76374615ec65afc6d3439f091.jpg\"\/><br \/>Task<br \/>Given an existing Kubernetes cluster running version 1.20.0, upgrade all of the Kubernetes control plane and node components on the master node only to version 1.20.1.<br \/>Be sure to drain the master node before upgrading it and uncordon it after the upgrade.<br \/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-a7545c2bcf6fe2679162326d01f8b72a.jpg\"\/><br \/>You are also expected to upgrade kubelet and kubectl on the master node.<br \/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-3d2b8fc4c8df36baffa064247c49ab31.jpg\"\/><\/p>\n<\/div><input type='hidden' name='question_id[]' value='16258' \/><textarea name='answer-16258[]' rows='5' cols='40' id='textarea_q_16258' class='watu-textarea watu-textarea-23'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>See the solution below.<br\/>Explanation<br\/>SOLUTION:<br\/>[student@node-1] &gt; ssh ek8s<br\/>kubectl cordon k8s-master<br\/>kubectl drain k8s-master &#8211;delete-local-data &#8211;ignore-daemonsets &#8211;force apt-get install kubeadm=1.20.1-00 kubelet=1.20.1-00 kubectl=1.20.1-00 &#8211;disableexcludes=kubernetes kubeadm upgrade apply 1.20.1 &#8211;etcd-upgrade=false systemctl daemon-reload systemctl restart kubelet kubectl uncordon k8s-master<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(23,this)' id='btn-23' value='See Answer'  \/><input type='hidden' id='questionType23' value='textarea' class=''><\/div><div class='watu-question' id='question-24'><div class='question-content'><p><strong>QUESTION 81<\/strong><br \/>List all service account and create a service account called &#8220;admin&#8221;<\/p>\n<\/div><input type='hidden' name='question_id[]' value='16259' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='62765' \/><div class='watu-question-choice'><input type='radio' name='answer-16259[]' id='answer-id-62765' class='answer answer-24 php-answer-label answerof-16259' value='62765' \/>&nbsp;<label for='answer-id-62765' id='answer-label-62765' class='php-answer-label answer label-24'><span class='answer'>kubectl get sa<br \/>kubectl get sa &#8211;all-namespaces<br \/>kubectl create sa admin<br \/>\/\/Verify<br \/>kubectl get sa admin -o yaml<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='62766' \/><div class='watu-question-choice'><input type='radio' name='answer-16259[]' id='answer-id-62766' class='answer answer-24 js-answer-label answerof-16259' value='62766' \/>&nbsp;<label for='answer-id-62766' id='answer-label-62766' class='js-answer-label answer label-24'><span class='answer'>kubectl get sa<br \/>kubectl get sa &#8211;all-namespaces<br \/>\/\/Verify<br \/>kubectl get sa admin -o yaml<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'><\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(24,this)' id='btn-24' value='See Answer'  \/><input type='hidden' id='questionType24' value='radio' class=''><\/div><div class='watu-question' id='question-25'><div class='question-content'><p><strong>QUESTION 82<\/strong><br \/>You have a Deployment with 5 replicas. You want to increase the number of replicas to 10, but only after ensuring that the new pods are healthy and ready to serve traffic.<\/p>\n<\/div><input type='hidden' name='question_id[]' value='16260' \/><textarea name='answer-16260[]' rows='5' cols='40' id='textarea_q_16260' class='watu-textarea watu-textarea-25'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>See the solution below with Step by Step Explanation.<br\/>Explanation:<br\/>Solution (Step by Step) :<br\/>1. Update the Deployment YAML:<br\/>&#8211; Update the &#8216;replicas&#8217; field in the Deployment YAML to 10.<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2025\/03\/CKA-72001e00e9f7776ed8eb978156a8f913.jpg\"\/><br\/>2. Apply the Changes: &#8211; Apply the updated YAML file using &#8216;kubectl apply -f my-deployment.yaml&#8217; 3. Monitor Pod Status: &#8211; Use &#8216;kubectl get pods -l app=my-app&#8217; to monitor the status of the pods. &#8211; Ensure that the new pods are in the &#8220;Running&#8217; state and have a &#8216;Ready&#8217; status. 4. Check Liveness and Readiness Probes: &#8211; If applicable, ensure that liveness and readiness probes are configured to check the health of the pods. &#8211; This helps in identifying and restarting unhealthy pods. 5. Verify Service Availability: &#8211; Use &#8216;kubectl get services my-service&#8221; to check the service status. &#8211; Ensure that the service is still available and serving traffic. 6. Increase Replicas: &#8211; Once the new pods are healthy and ready, the deployment will automatically scale up to 10 replicas.<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(25,this)' id='btn-25' value='See Answer'  \/><input type='hidden' id='questionType25' value='textarea' class=''><\/div><div style='display:none' id='question-26'><br \/><div class='question-content'><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/plugins\/watu\/loading.gif\" width=\"16\" height=\"16\" alt=\"Loading ...\" title=\"Loading ...\" \/>&nbsp;Loading &#8230;<\/div><\/div><br \/>\n<input type=\"button\" name=\"action\" onclick=\"Watu.submitResult()\" id=\"action-button\" style=\"margin:0 auto 20px auto;\" value=\"View Results\"  class=\"watu-submit-button\" \/>\n<input type=\"hidden\" name=\"no_ajax\" value=\"0\"><input type=\"hidden\" name=\"quiz_id\" value=\"826\" \/>\n<input type=\"hidden\" id=\"watuStartTime\" name=\"start_time\" value=\"2026-09-24 04:10:13\" \/>\n<\/form>\n<\/div>\n<div id=\"watu-loading-result\" style=\"display:none;\">\n\t<p align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/plugins\/watu\/loading.gif\" width=\"16\" height=\"16\" alt=\"Loading\" title=\"Loading\" \/><\/p>\n<\/div>\t\n<script type=\"text\/javascript\">\nvar exam_id=0;\nvar question_ids='';\nvar watuURL='';\njQuery(function($){\nquestion_ids = \"16236,16237,16238,16239,16240,16241,16242,16243,16244,16245,16246,16247,16248,16249,16250,16251,16252,16253,16254,16255,16256,16257,16258,16259,16260\";\nexam_id = 826;\nWatu.exam_id = exam_id;\nWatu.qArr = question_ids.split(',');\nWatu.post_id = 1930;\nWatu.singlePage = '1';\nWatu.hAppID = \"0.44124700 1790223013\";\nwatuURL = \"https:\/\/blog.topexamcollection.com\/wp-admin\/admin-ajax.php\";\nWatu.noAlertUnanswered = 0;\n});\n\nfunction showanswer1(e,q) {\n\tvar check = new Array();\n\tjQuery('.answer-' + e).each(function (i) {\n\t\tcheck.push(this.checked)\n\t})\n\tlet textval = jQuery('.watu-textarea-' + e).val()\n\tif (jQuery.inArray(true, check) >= 0 || textval !== '' && textval !== undefined) {\n\t\tjQuery(q).stop().fadeOut(300)\n\t\tjQuery('.php-answer-label.label-' + e).addClass(\n\t\t\t'correct-answer'\n\t\t)\n\t\tjQuery('.answer-' + e).each(function (i) {\n\t\t\tif (this.checked && this.className.match(\/js\\-answer\/)) {\n\t\t\t\tvar number = this.id.toString().replace(\/\\D\/g, '')\n\t\t\t\tif (number) {\n\t\t\t\t\tjQuery('#answer-label-' + number).addClass('user-answer')\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t\tjQuery(q).siblings('.show-question-feedback').stop().fadeIn(300)\n\t\ttextval = ''\n\t} else if (textval == '' || textval == undefined){\n\t\t\/\/jQuery(\".hint\").stop().fadeIn(300)\n\t\talert('Please first answer the question');\n\t}\n}\nvar btnisshow = jQuery(\".php-answer-label\").length\nif (btnisshow > 0) {\n\tjQuery('.showchecked').show()\n} else {\n\tjQuery('.showchecked').hide()\n}\n<\/script>\n<p><strong>Real Linux Foundation CKA Exam Questions [Updated 2025]: <a href=\"https:\/\/www.topexamcollection.com\/CKA-vce-collection.html\" target=\"_blank\">https:\/\/www.topexamcollection.com\/CKA-vce-collection.html<\/a><\/strong><\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>Pass Linux Foundation CKA Exam Quickly With TopExamCollection Prepare CKA Question Answers &#8211; CKA Exam Dumps The CKA certification is highly regarded in the industry, and it is recognized as a standard for measuring the skills of Kubernetes administrators. Certified Kubernetes Administrator (CKA) Program Exam certification provides a way for professionals to demonstrate their expertise &hellip; <\/p>\n<div class=\"link-more text-center\"><a href=\"https:\/\/blog.topexamcollection.com\/ko\/2025\/03\/pass-linux-foundation-cka-exam-quickly-with-topexamcollection-q58-q82\/\" class=\"more-link py-2 px-4\">Read More<span class=\"screen-reader-text\"> &#8220;Pass Linux Foundation CKA Exam Quickly With TopExamCollection [Q58-Q82]&#8221;<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":1931,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[3161,548],"tags":[5750,5745,5746,5748,5749,5751,5747],"class_list":["post-1930","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cka","category-linux-foundation","tag-cka-high-quality","tag-cka-latest-exam-testking","tag-cka-latest-version","tag-cka-reliable-test-review","tag-cka-test-simulator-online","tag-cka-trustworthy-dumps","tag-cka-valid-exam-format"],"_links":{"self":[{"href":"https:\/\/blog.topexamcollection.com\/ko\/wp-json\/wp\/v2\/posts\/1930","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.topexamcollection.com\/ko\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.topexamcollection.com\/ko\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.topexamcollection.com\/ko\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.topexamcollection.com\/ko\/wp-json\/wp\/v2\/comments?post=1930"}],"version-history":[{"count":1,"href":"https:\/\/blog.topexamcollection.com\/ko\/wp-json\/wp\/v2\/posts\/1930\/revisions"}],"predecessor-version":[{"id":1985,"href":"https:\/\/blog.topexamcollection.com\/ko\/wp-json\/wp\/v2\/posts\/1930\/revisions\/1985"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.topexamcollection.com\/ko\/wp-json\/wp\/v2\/media\/1931"}],"wp:attachment":[{"href":"https:\/\/blog.topexamcollection.com\/ko\/wp-json\/wp\/v2\/media?parent=1930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.topexamcollection.com\/ko\/wp-json\/wp\/v2\/categories?post=1930"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.topexamcollection.com\/ko\/wp-json\/wp\/v2\/tags?post=1930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}