CKA | The Secret Of Linux-Foundation CKA Free Practice Questions
Our pass rate is high to 98.9% and the similarity percentage between our CKA study guide and real exam is 90% based on our seven-year educating experience. Do you want achievements in the Linux-Foundation CKA exam in just one try? I am currently studying for the Linux-Foundation CKA exam. Latest Linux-Foundation CKA Test exam practice questions and answers, Try Linux-Foundation CKA Brain Dumps First.
Also have CKA free dumps questions for you:
NEW QUESTION 1
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 2
Configure the kubelet systemd-managed service, on the nodelabelled withname=wk8s-node-1, tolaunch a pod containing a singlecontainer of Imagehttpdnamedwebtoolautomatically. Any spec filesrequired should be placed in the/etc/kubernetes/manifestsdirectoryon the node.
You canssh to theappropriate node using:
[student@node-1] $ sshwk8s-node-1
You can assume elevatedprivileges on the node with thefollowing command:
[student@wk8s-node-1] $ |sudo ?Ci
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\21 C.JPG
F:\Work\Data Entry Work\Data Entry\20200827\CKA\21 D.JPG
F:\Work\Data Entry Work\Data Entry\20200827\CKA\21 E.JPG
F:\Work\Data Entry Work\Data Entry\20200827\CKA\21 F.JPG
F:\Work\Data Entry Work\Data Entry\20200827\CKA\21 G.JPG
NEW QUESTION 3
List the nginx pod with custom columns POD_NAME and POD_STATUS
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
kubectl get po -o=custom-columns="POD_NAME:.metadata.name, POD_STATUS:.status.containerStatuses[].state"
NEW QUESTION 4
Create an nginx pod and list the pod with different levels of verbosity
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
// create a pod
kubectl run nginx --image=nginx --restart=Never --port=80
// List the pod with different verbosity kubectl get po nginx --v=7
kubectl get po nginx --v=8 kubectl get po nginx --v=9
NEW QUESTION 5
Create a pod with environment variables as var1=value1.Check the environment variable in pod
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
kubectl run nginx --image=nginx --restart=Never --env=var1=value1
# then
kubectl exec -it nginx -- env
# or
kubectl exec -it nginx -- sh -c 'echo $var1'
# or
kubectl describe po nginx | grep value1
NEW QUESTION 6
Create a pod as follows: Name:non-persistent-redis
container Image:redis
Volume with name:cache-control
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
F:\Work\Data Entry Work\Data Entry\20200827\CKA\13 C.JPG
F:\Work\Data Entry Work\Data Entry\20200827\CKA\13 D.JPG
NEW QUESTION 7
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 8
List all the pods sorted by name
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
kubect1 get pods --sort-by=.metadata.name
NEW QUESTION 9
List all the pods showing name and namespace with a json path expression
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
kubectl get pods -o=jsonpath="{.items[*]['metadata.name', 'metadata.namespace']}"
NEW QUESTION 10
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 11
Create a pod as follows: Name:mongo
Using Image:mongo
In anew Kubernetes namespacenamed:my-website
- A. Mastered
- B. Not Mastered
Answer: A
Explanation:
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\9 B.JPG
NEW QUESTION 12
......
P.S. Easily pass CKA Exam with 48 Q&As Thedumpscentre.com Dumps & pdf Version, Welcome to Download the Newest Thedumpscentre.com CKA Dumps: https://www.thedumpscentre.com/CKA-dumps/ (48 New Questions)