The Secret Of Linux-Foundation CKA Practice Test

Ucertify offers free demo for CKA exam. "Certified Kubernetes Administrator (CKA) Program", also known as CKA exam, is a Linux-Foundation Certification. This set of posts, Passing the Linux-Foundation CKA exam, will help you answer those questions. The CKA Questions & Answers covers all the knowledge points of the real exam. 100% real Linux-Foundation CKA exams and revised by experts!

Check CKA free dumps before getting the full version:

NEW QUESTION 1
Create a pod as follows:
CKA dumps exhibit Name:non-persistent-redis
CKA dumps exhibit container Image:redis
CKA dumps exhibit Volume with name:cache-control
CKA dumps exhibit Mount path:/data/redis
The pod should launch in thestagingnamespace and the volumemust notbe persistent.

  • A. Mastered
  • B. Not Mastered

Answer: A

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

NEW QUESTION 2
Create a pod that echo ??hello world?? and then exists. Have the pod deleted automatically when it??s completed

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:
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"

NEW QUESTION 3
Create and configure the servicefront-end-serviceso it's accessiblethroughNodePortand routes to theexisting pod namedfront-end.

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\8 B.JPG
CKA dumps exhibit

NEW QUESTION 4
Create a Kubernetes secret asfollows:
CKA dumps exhibit Name: super-secret
CKA dumps exhibit password: bob
Create a pod namedpod-secrets-via-file, using theredisImage, which mounts a secret namedsuper-secretat
/secrets.
Create a second pod namedpod-secrets-via-env, using theredisImage, which exportspasswordas
CONFIDENTIAL

  • A. Mastered
  • B. Not Mastered

Answer: A

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

NEW QUESTION 5
Create a busybox pod that runs the command ??env?? and save the output to ??envpod?? file

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:
kubectl run busybox --image=busybox --restart=Never ?C-rm -it -- env > envpod.yaml

NEW QUESTION 6
Monitor the logs of pod foo and:
CKA dumps exhibit Extract log lines correspondingto error unable-to-access-website
CKA dumps exhibit Write them to/opt/KULM00201/foo
CKA dumps exhibit

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:

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

NEW QUESTION 7
Set the node named ek8s-node-1as unavailable and reschedule all the pods running on it.

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:

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

NEW QUESTION 8
List all the pods sorted by created timestamp

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:
kubect1 get pods--sort-by=.metadata.creationTimestamp

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

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:
kubectlrun nginx --image=nginx --restart=Never --port=80

NEW QUESTION 10
List all the pods sorted by name

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:
kubectl get pods --sort-by=.metadata.name

NEW QUESTION 11
Create a pod namedkucc8with asingle app container for each of the
following images running inside(there may be between 1 and 4images specified): nginx + redis + memcached.

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:
solution
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
CKA dumps exhibit

NEW QUESTION 12
List ??nginx-dev?? and ??nginx-prod?? pod and delete those pods

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:
kubect1 get pods -o wide
kubectl delete po ??nginx-dev??kubectl delete po ??nginx-prod??

NEW QUESTION 13
List pod logs named ??frontend?? and search for the pattern ??started?? and write it to a file ??/opt/error-logs??

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:
Kubectl logs frontend | grep -i ??started?? > /opt/error-logs

NEW QUESTION 14
Create a deployment spec file thatwill:
CKA dumps exhibit Launch 7 replicas of thenginxImage with the labelapp_runtime_stage=dev
CKA dumps exhibit deployment name:kual00201
Save a copy of this spec file to/opt/KUAL00201/spec_deployment.yaml (or/opt/KUAL00201/spec_deployment.json).
When you are done, clean up (delete)any new Kubernetes API object thatyou produced during this task.

  • A. Mastered
  • B. Not Mastered

Answer: A

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

NEW QUESTION 15
Create a nginx pod with label env=test in engineering namespace

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:
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 -nengineering-f ?C
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

NEW QUESTION 16
Create a pod that having 3 containers in it? (Multi-Container)

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:
image=nginx, image=redis, image=consul Name nginx container as ??nginx-container?? Name redis container as ??redis-container?? Name consul container as ??consul-container??
Create a pod manifest file for a container and append container section for rest of the images
kubectl run multi-container --generator=run-pod/v1 --image=nginx -- dry-run -o yaml > multi-container.yaml
# then
vim multi-container.yaml apiVersion: v1
kind: Pod metadata: labels:
run: multi-container name: multi-container spec:
containers:
- image: nginx
name: nginx-container
- image: redis
name: redis-container
- image: consul
name: consul-container
restartPolicy: Always

NEW QUESTION 17
Get IP address of the pod ?C ??nginx-dev??

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:
Kubect1 get po -o wide Using JsonPath
kubect1 get pods -o=jsonpath='{range items[*]}{.metadata.name}{"\t"}{.status.podIP}{"\n"}{end}'

NEW QUESTION 18
Get list of all pods in all namespaces and write it to file ??/opt/pods-list.yaml??

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:
kubectl get po ?Call-namespaces > /opt/pods-list.yaml

NEW QUESTION 19
Create a file:
/opt/KUCC00302/kucc00302.txtthatlists all pods that implement servicebazin namespacedevelopment.
The format of the file should be onepod name per line.

  • A. Mastered
  • B. Not Mastered

Answer: A

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

NEW QUESTION 20
From the pod labelname=cpu-utilizer, find podsrunning high CPU workloads and
write the name of the pod consumingmost CPU to thefile/opt/KUTR00102/KUTR00102.txt(which already exists).

  • A. Mastered
  • B. Not Mastered

Answer: A

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

NEW QUESTION 21
......

P.S. Surepassexam now are offering 100% pass ensure CKA dumps! All CKA exam questions have been updated with correct answers: https://www.surepassexam.com/CKA-exam-dumps.html (48 New Questions)