5/5 - (1 vote)

[Nov 18, 2023] Linux Foundation CKA Real Exam Questions and Answers FREE

Pass Linux Foundation CKA Exam Info and Free Practice Test

NEW QUESTION 18
An administrator accidentally closed the commit window/screen before the commit was finished. Which two options could the administrator use to verify the progress or success of that commit task? (Choose two)

 
 
 
 

NEW QUESTION 19
Create a busybox pod that runs the command “env” and save the output to “envpod” file

NEW QUESTION 20
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

NEW QUESTION 21
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 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

NEW QUESTION 22
Update the deployment with the image version 1.16.1 and verify the image and check the rollout history

NEW QUESTION 23
For this item, you will have to ssh and complete all tasks on these
nodes. Ensure that you return to the base node (hostname: ) 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.

NEW QUESTION 24
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 (
[student@node-1] $ ssh <nodename
You can assume elevated privileges on any node in the cluster with the following command:
[student@nodename] $ | sudo -i

NEW QUESTION 25
Create a pod with init container which create a file “test.txt”
in “workdir” directory. Main container should check a file
“test.txt” exists and execute sleep 9999 if the file exists.

 
 

NEW QUESTION 26
Create a hostPath PersistentVolume named task-pv-volume with storage 10Gi, access modes ReadWriteOnce, storageClassName manual, and volume at /mnt/data and verify

 
 

NEW QUESTION 27
// Create a configmap
kubectl create configmap redis-config –from-file=/opt/redisconfig
// Verify
kubectl get configmap redis-config -o yaml
// first run this command to save the pod yml
kubectl run redis-pod –image=redis –restart=Always –dry-run
-o yaml > redis-pod.yml
// edit the yml to below file and create
apiVersion: v1
kind: Pod
metadata:
name: redis
spec:
containers:
– name: redis
image: redis
env:
– name: MASTER
value: “true”
ports:
– containerPort: 6379
volumeMounts:
– mountPath: /redis-master-data
name: data
– mountPath: /redis-master
name: config
volumes:
– name: data
emptyDir: {}
– name: config
configMap:
name: example-redis-config

 
 

NEW QUESTION 28
Create a Job with an image node which prints node version and
verifies there is a pod created for this job

 
 

NEW QUESTION 29
Deploy a pod with image=redis on a node with label disktype=ssd

 
 

NEW QUESTION 30
Score: 7%

Task
Create a new nginx Ingress resource as follows:
* Name: ping
* Namespace: ing-internal
* Exposing service hi on path /hi using service port 5678

NEW QUESTION 31
Create a pod that echo “hello world” and then exists. Have the pod deleted automatically when it’s completed

NEW QUESTION 32
Modify “hello-job” and make it run 10 times one after one and 5 times parallelism: 5

 
 

NEW QUESTION 33
Create an nginx pod and list the pod with different levels of verbosity

 
 

NEW QUESTION 34
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.

NEW QUESTION 35
Create a pod with image nginx called nginx and allow traffic on port 80


Latest CKA Exam Dumps Linux Foundation Exam: https://www.testkingit.com/Linux-Foundation/latest-CKA-exam-dumps.html

Related Links: www.stes.tyc.edu.tw www.stes.tyc.edu.tw myportal.utt.edu.tt myportal.utt.edu.tt www.stes.tyc.edu.tw www.stes.tyc.edu.tw