CKA Practice Questions
Certified Kubernetes Administrator (CKA) Program
Last Update 1 day ago
Total Questions : 83
Dive into our fully updated and stable CKA practice test platform, featuring all the latest Kubernetes Administrator exam questions added this week. Our preparation tool is more than just a Linux Foundation study aid; it's a strategic advantage.
Our free Kubernetes Administrator practice questions crafted to reflect the domains and difficulty of the actual exam. The detailed rationales explain the 'why' behind each answer, reinforcing key concepts about CKA. Use this test to pinpoint which areas you need to focus your study on.
List pod logs named “frontend” and search for the pattern “started” and write it to a file “/opt/error-logs”
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.
Create a deployment as follows:
Name: nginx-random
Exposed via a service nginx-random
Ensure that the service and 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 and pod and write the output to /opt/KUNW00601/service.dns and /opt/KUNW00601/pod.dns respectively.
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.
Use DaemonSet to complete this task and use ds-kusc00201 as DaemonSet name.
Score: 4%
Task
Set the node named ek8s-node-1 as unavailable and reschedule all the pods running on it.
You must connect to the correct host.
Failure to do so may result in a zero score.
[candidate@base] $ ssh Cka000055
Task
Verify the cert-manager application which has been deployed to your cluster .
Using kubectl, create a list of all cert-manager Custom Resource Definitions (CRDs ) and save it
to ~/resources.yaml .
You must use kubectl 's default output format.
Do not set an output format.
Failure to do so will result in a reduced score.
Using kubectl, extract the documentation for the subject specification field of the Certificate Custom Resource and save it to ~/subject.yaml.
Check to see how many worker nodes are ready (not including nodes tainted NoSchedule) and write the number to /opt/KUCC00104/kucc00104.txt.
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.
You can ssh to the appropriate node using:
[student@node-1] $ ssh wk8s-node-1
You can assume elevated privileges on the node with the following command:
[student@wk8s-node-1] $ | sudo –i
Score:7%
Context
An existing Pod needs to be integrated into the Kubernetes built-in logging architecture (e. g. kubectl logs). Adding a streaming sidecar container is a good and common way to accomplish this requirement.
Task
Add a sidecar container named sidecar, using the busybox Image, to the existing Pod big-corp-app. The new sidecar container has to run the following command:
/bin/sh -c tail -n+1 -f /va r/log/big-corp-app.log
Use a Volume, mounted at /var/log, to make the log file big-corp-app.log available to the sidecar container.
F:\Work\Data Entry Work\Data Entry\20200827\CKA\17
F:\Work\Data Entry Work\Data Entry\20200827\CKA\17
F:\Work\Data Entry Work\Data Entry\20200827\CKA\17
F:\Work\Data Entry Work\Data Entry\20200827\CKA\3
F:\Work\Data Entry Work\Data Entry\20200827\CKA\3
F:\Work\Data Entry Work\Data Entry\20200827\CKA\3
F:\Work\Data Entry Work\Data Entry\20200827\CKA\3
F:\Work\Data Entry Work\Data Entry\20200827\CKA\15
F:\Work\Data Entry Work\Data Entry\20200827\CKA\15
F:\Work\Data Entry Work\Data Entry\20200827\CKA\21
F:\Work\Data Entry Work\Data Entry\20200827\CKA\21
F:\Work\Data Entry Work\Data Entry\20200827\CKA\21
F:\Work\Data Entry Work\Data Entry\20200827\CKA\21
F:\Work\Data Entry Work\Data Entry\20200827\CKA\21
