Free CKA Exam Braindumps
Certified Kubernetes Administrator Questions 26–30 (page: 7)

Updated On: 10-Feb-2026

Create a redis pod and expose it on port 6379

  1. Solution:

    kubectl run redis --image=redis --restart=Never --port=6379 YAML File :
    apiVersion: v1
    kind: Pod
    metadata:
    labels:
    run: redis
    name: redis
    spec:
    containers:
    - image: redis
    name: redis
    ports:
    - containerPort: 6379
    Rt restartPolicy: Always

Answer(s): A



Create the nginx pod with version 1.17.4 and expose it on port 80

  1. Solution:

    kubectl run nginx --image=nginx:1.17.4 --restart=Never -- port=80

Answer(s): A



Change the Image version to 1.15-alpine for the pod you just created and verify the image version is updated.

  1. Solution:


    Kubect1 set image pod/nginx nginx=nginx:1.15-alpine
    kubect1 describe po nginx
    // another way it will open vi editor and change the version kubeclt edit po nginx
    kubect1 describe po nginx

Answer(s): A



Change the Image version back to 1.17.1 for the pod you just updated and observe the changes

  1. Solution:

    kubectl set image pod/nginx nginx=nginx:1.17.1
    kubectl describe po nginx
    kubectl get po nginx -w # watch it

Answer(s): A



Create a redis pod, and have it use a non-persistent storage Note: In exam, you will have access to kubernetes.io site, Refer : https://kubernetes.io/docs/tasks/configure-pod-container/configurevolume-storage/

  1. Solution:

    apiVersion: v1
    kind: Pod
    metadata:
    name: redis
    spec:
    containers:
    - name: redis
    image: redis
    volumeMounts:
    - name: redis-storage
    mountPath: /data/redis
    ports:
    - containerPort: 6379
    volumes:
    - name: redis-storage
    emptyDir: {}

Answer(s): A



Viewing page 7 of 26
Viewing questions 31 - 35 out of 122 questions


Post your Comments and Discuss Linux Foundation CKA exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!