CKA Exam - Certified Kubernetes Administrator (CKA) Program

certleader.com

Master the CKA Certified Kubernetes Administrator (CKA) Program content and be ready for exam day success quickly with this Actualtests CKA test preparation. We guarantee it!We make it a reality and give you real CKA questions in our Linux-Foundation CKA braindumps.Latest 100% VALID Linux-Foundation CKA Exam Questions Dumps at below page. You can use our Linux-Foundation CKA braindumps and pass your exam.

Free CKA Demo Online For Linux-Foundation Certifitcation:

NEW QUESTION 1
CORRECT TEXT
Create a pod as follows:
✑ Name: mongo
✑ Using Image: mongo
✑ In a new Kubernetes namespace named: my-website


Solution:
solution
CKA dumps exhibit
F:\Work\Data Entry Work\Data Entry\20200827\CKA\9 B.JPG

Does this meet the goal?
  • A. Yes
  • B. Not Mastered

Answer: A

NEW QUESTION 2
CORRECT TEXT
Score: 4%
CKA dumps exhibit
Task
Check to see how many nodes are ready (not including nodes tainted NoSchedule ) and write the number to /opt/KUSC00402/kusc00402.txt.


Solution:

Solution:
kubectl describe nodes | grep ready|wc -l
kubectl describe nodes | grep -i taint | grep -i noschedule |wc -l
echo 3 > /opt/KUSC00402/kusc00402.txt
#
kubectl get node | grep -i ready |wc -l
# taintsnoSchedule
kubectl describe nodes | grep -i taints | grep -i noschedule |wc -l
#
echo 2 > /opt/KUSC00402/kusc00402.txt

Does this meet the goal?
  • A. Yes
  • B. Not Mastered

Answer: A

NEW QUESTION 3
CORRECT TEXT
Perform the following tasks:
✑ Add an init container to hungry-bear (which has been defined in spec file
/opt/KUCC00108/pod-spec-KUCC00108.yaml)
✑ The init container should create an empty file named/workdir/calm.txt
✑ If /workdir/calm.txt is not detected, the pod should exit
✑ Once the spec file has been updated with the init container definition, the pod should be created

  • A.

Answer: Seethesolutionbelow.

Explanation:
solution
CKA dumps exhibit
F:\Work\Data Entry Work\Data Entry\20200827\CKA\4 B.JPG
CKA dumps exhibit
F:\Work\Data Entry Work\Data Entry\20200827\CKA\4 C.JPG
CKA dumps exhibit
F:\Work\Data Entry Work\Data Entry\20200827\CKA\4 D.JPG

NEW QUESTION 4
CORRECT TEXT
Score: 5%
CKA dumps exhibit
Task
Monitor the logs of pod bar and:
• Extract log lines corresponding to error file-not-found
• Write them to /opt/KUTR00101/bar


Solution:
Solution:
kubectl logs bar | grep 'unable-to-access-website' > /opt/KUTR00101/bar
cat /opt/KUTR00101/bar

Does this meet the goal?
  • A. Yes
  • B. Not Mastered

Answer: A

NEW QUESTION 5
CORRECT TEXT
Create a busybox pod and add “sleep 3600” command


Solution:
kubectl run busybox --image=busybox --restart=Never -- /bin/sh -c
"sleep 3600"

Does this meet the goal?
  • A. Yes
  • B. Not Mastered

Answer: A

NEW QUESTION 6
CORRECT TEXT
List pod logs named “frontend” and search for the pattern “started” and write it to a file “/opt/error-logs”


Solution:
Kubectl logs frontend | grep -i “started” > /opt/error-logs

Does this meet the goal?
  • A. Yes
  • B. Not Mastered

Answer: A

NEW QUESTION 7
CORRECT TEXT
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.


Solution:
solution
CKA dumps exhibit
F:\Work\Data Entry Work\Data Entry\20200827\CKA\5 B.JPG
CKA dumps exhibit
F:\Work\Data Entry Work\Data Entry\20200827\CKA\5 C.JPG
CKA dumps exhibit
F:\Work\Data Entry Work\Data Entry\20200827\CKA\5 D.JPG

Does this meet the goal?
  • A. Yes
  • B. Not Mastered

Answer: A

NEW QUESTION 8
CORRECT TEXT
Score: 7%
CKA dumps exhibit
Task
Reconfigure 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.


Solution:
Solution:
kubectl get deploy front-end
kubectl edit deploy front-end -o yaml
#port specification named http
#service.yaml
apiVersion: v1
kind: Service
metadata:
name: front-end-svc
labels:
app: nginx
spec:
ports:
- port: 80
protocol: tcp
name: http
selector:
app: nginx
type: NodePort
# kubectl create -f service.yaml
# kubectl get svc
# port specification named http
kubectl expose deployment front-end --name=front-end-svc --port=80 --tarport=80 -- type=NodePort

Does this meet the goal?
  • A. Yes
  • B. Not Mastered

Answer: A

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


Solution:
kubectl run busybox --image=busybox -it --rm --restart=Never --
/bin/sh -c 'echo hello world'
kubectl get po # You shouldn't see pod with the name "busybox"

Does this meet the goal?
  • A. Yes
  • B. Not Mastered

Answer: A

NEW QUESTION 10
CORRECT TEXT
Schedule a pod as follows:
✑ Name: nginx-kusc00101
✑ Image: nginx
✑ Node selector: disk=ssd


Solution:
solution
CKA dumps exhibit
F:\Work\Data Entry Work\Data Entry\20200827\CKA\6 B.JPGF:\Work\Data
CKA dumps exhibit
F:\Work\Data Entry Work\Data Entry\20200827\CKA\6 C.JPG
CKA dumps exhibit
F:\Work\Data Entry Work\Data Entry\20200827\CKA\6 D.JPG

Does this meet the goal?
  • A. Yes
  • B. Not Mastered

Answer: A

NEW QUESTION 11
CORRECT TEXT
Get list of all the pods showing name and namespace with a jsonpath expression.


Solution:
kubectl get pods -o=jsonpath="{.items[*]['metadata.name'
, 'metadata.namespace']}"

Does this meet the goal?
  • A. Yes
  • B. Not Mastered

Answer: A

NEW QUESTION 12
CORRECT TEXT
Create a nginx pod with label env=test in engineering namespace


Solution:
kubectl run nginx --image=nginx --restart=Never --labels=env=test
-- namespace=engineering --dry-run -o yaml > nginx-pod.yaml
kubectl run nginx --image=nginx --restart=Never --labels=env=test --
namespace=engineering --dry-run -o yaml | kubectl create -n engineering -f –
YAML File:
apiVersion: v1
kind: Pod
metadata:
name: nginx
namespace: engineering
labels:
env: test
spec:
containers:
- name: nginx
image: nginx
imagePullPolicy: IfNotPresent
restartPolicy: Never
kubectl create -f nginx-pod.yaml

Does this meet the goal?
  • A. Yes
  • B. Not Mastered

Answer: A

NEW QUESTION 13
CORRECT TEXT
Create a deployment as follows:
✑ Name: nginx-app
✑ Using container nginx with version 1.11.10-alpine
✑ The deployment should contain 3 replicas
Next, deploy the application with new version 1.11.13-alpine, by performing a rolling update.
Finally, rollback that update to the previous version 1.11.10-alpine.


Solution:
solution
CKA dumps exhibit
F:\Work\Data Entry Work\Data Entry\20200827\CKA\7 B.JPG
CKA dumps exhibit
F:\Work\Data Entry Work\Data Entry\20200827\CKA\7 C.JPG
CKA dumps exhibit
F:\Work\Data Entry Work\Data Entry\20200827\CKA\7 D.JPG

Does this meet the goal?
  • A. Yes
  • B. Not Mastered

Answer: A

NEW QUESTION 14
CORRECT TEXT
List the nginx pod with custom columns POD_NAME and POD_STATUS


Solution:
kubectl get po -o=custom-columns="POD_NAME:.metadata.name, POD_STATUS:.status.containerStatuses[].state"

Does this meet the goal?
  • A. Yes
  • B. Not Mastered

Answer: A

NEW QUESTION 15
CORRECT TEXT
Score: 5%
CKA dumps exhibit
Task
From the pod label name=cpu-utilizer, find pods running high CPU workloads and write the name of the pod consuming most CPU to the file /opt/KUTR00401/KUTR00401.txt (which already exists).


Solution:
Solution:
kubectl top -l name=cpu-user -A
echo 'pod name' >> /opt/KUT00401/KUT00401.txt

Does this meet the goal?
  • A. Yes
  • B. Not Mastered

Answer: A

NEW QUESTION 16
CORRECT TEXT
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


Solution:
solution
CKA dumps exhibit
F:\Work\Data Entry Work\Data Entry\20200827\CKA\15 B.JPG
CKA dumps exhibit
F:\Work\Data Entry Work\Data Entry\20200827\CKA\15 C.JPG

Does this meet the goal?
  • A. Yes
  • B. Not Mastered

Answer: A

NEW QUESTION 17
CORRECT TEXT
Check the image version in pod without the describe command


Solution:
kubectl get po nginx -o
jsonpath='{.spec.containers[].image}{"\n"}'

Does this meet the goal?
  • A. Yes
  • B. Not Mastered

Answer: A

NEW QUESTION 18
CORRECT TEXT
Score: 7%
CKA dumps exhibit
Task
Create a new NetworkPolicy named allow-port-from-namespace in the existing namespace echo. Ensure that the new NetworkPolicy allows Pods in namespace my-app to connect to port 9000 of Pods in namespace echo.
Further ensure that the new NetworkPolicy:
• does not allow access to Pods, which don't listen on port 9000
• does not allow access from Pods, which are not in namespace my-app


Solution:

Solution:
#network.yaml
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-port-from-namespace
namespace: internal
spec:
podSelector:
matchLabels: {
}
policyTypes:
- Ingress
ingress:
- from:
- podSelector: {
}
ports:
- protocol: TCP
port: 8080
#spec.podSelector namespace pod
kubectl create -f network.yaml

Does this meet the goal?
  • A. Yes
  • B. Not Mastered

Answer: A

NEW QUESTION 19
......

Thanks for reading the newest CKA exam dumps! We recommend you to try the PREMIUM Dumpscollection.com CKA dumps in VCE and PDF here: https://www.dumpscollection.net/dumps/CKA/ (67 Q&As Dumps)