Free Certified Kubernetes Administrator (CKA) Practice Exam Questions

Free Certified Kubernetes Administrator (CKA) Practice Exam Questions

Want to be a Certified Kubernetes Administrator? Certified Kubernetes Administrator (CKA) certification is designed to ensure that certification holders have the skills, knowledge, and competency to perform the responsibilities of Kubernetes Administrators. FreeTestShare assists you in improving your exam preparation by providing you with the most accurate and likely CKA Practice Exam Questions. If you prepare using CKA questions and answers, you will pass on the first try.

Now it is a great time to take a free CKA practice test to see how well you know yourself!

Page 1 of 4

1. Create a busybox pod and add "sleep 3600" command

2. Create a pod with init container which waits for a service called "myservice" to be created. Once init container completes, the myapp-container should start and print a message "The app is running" and sleep for 3600 seconds.

3. Create a Pod with main container busybox and which executes this "while true; do echo `Hi I am from Main container' >> /var/log/index.html; sleep 5; done" and with sidecar container with nginx image which exposes on port 80. Use emptyDir Volume and mount this volume on path /var/log for busybox and on path /usr/share/nginx/html for nginx container. Verify both containers are running.

4. List all the pods showing name and namespace with a json path expression

5. Create the deployment redis with image=redis and expose it with "NodePort" service redis-service

6. List the nginx pod with custom columns POD_NAME and POD_STATUS

7. Get the pods with labels env=dev and env=prod and output the labels as well

8. Create an nginx pod which loads the secret as environment variables

// create a yml file

kubectl run nginx --image=nginx --restart=Never --dry-run -o yaml > nginx.yml

// add env section below and create

vim nginx.yaml

apiVersion: v1

kind: Pod

metadata:

labels:

run: nginx

name: nginx

spec:

containers:

- image: nginx

name: nginx

envFrom:

- secretRef:

name: my-secret

restartPolicy: Never

kubectl apply -f nginx.yaml

//verify

kubectl exec -it nginx env

9. Create a Pod nginx and specify both CPU, memory requests and limits together and verify.

10. Create a redis pod, and have it use a non-persistent storage (volume that lasts for the lifetime of the Pod)


 

Share this post

Leave a Reply

Your email address will not be published. Required fields are marked *