CKA Online Practice Questions

Home / The Linux Foundation / CKA

Latest CKA Exam Practice Questions

The practice questions for CKA exam was last updated on 2025-06-01 .

Viewing page 1 out of 8 pages.

Viewing questions 1 out of 44 questions.

Question#1

Get list of all pods in all namespaces and write it to file "/opt/pods-list.yaml"

A. Solution: kubectl get po -all-namespaces > /opt/pods-list.yaml

Question#2

Scale the deployment from 5 replicas to 20 replicas and verify

A. Solution: kubectl scale deploy webapp --replicas=20 kubectl get deploy webapp kubectl get po -l app=webapp

Question#3

Create PersistentVolume named task-pv-volume with storage 10Gi, access modes ReadWriteMany, storageClassName manual, and volume at /mnt/data and Create a PersistentVolumeClaim of at least 3Gi storage and access mode ReadWriteOnce and verify

A. Solution: vim task-pv-volume.yaml apiVersion: v1 kind: PersistentVolume metadata: name: task-pv-volume labels: type: local spec: storageClassName: manual capacity: storage: 10Gi accessModes: - ReadWriteMany hostPath: path: "/mnt/data" kubectl apply -f task-pv-volume.yaml //Verify kubectl get pv vim task-pvc-volume.yaml apiVersion: v1 kind: PersistentVolumeClaim metadata: name: task-pv-claim spec: storageClassName: manual accessModes: - ReadWriteMany resources: requests: storage: 3Gi kubectl apply -f task-pvc-volume.yaml //Verify Kuk kubectl get pvc

Question#4

Undo the deployment with the previous version and verify everything is Ok

A. Solution: kubectl rollout undo deploy webapp kubectl rollout status deploy webapp kubectl get pods

Question#5

Check the history of deployment

A. Solution: kubectl rollout history deployment webapp

Exam Code: CKAQ & A: 67 Q&AsUpdated:  2025-06-01

 Get All CKA Q&As