Courseiva

KCNA · topic practice

Kubernetes Fundamentals practice questions

Kubernetes Fundamentals is the largest KCNA domain, covering cluster architecture, Pods, workloads, Services, namespaces, configuration, storage, and basic scheduling. Questions are scenario-based: you pick the correct resource, explain why a Service name fails to resolve across namespaces, or identify which volume type persists data after Pod deletion. Expect multiple-select items alongside single-answer recall.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Editorial oversight:Johnson Ajibi· MSc IT Security, IEEE Senior Member
20 questionsDomain: Kubernetes Fundamentals

What the exam tests

What to know about Kubernetes Fundamentals

Be able to choose the right workload, Service, and configuration or storage object for a described scenario, and read a Pod spec. The single most important thing: know how Service DNS and namespaces interact, since cross-namespace name resolution is the classic failure point.

Core objects: Pods, ReplicaSets, Deployments, DaemonSets, StatefulSets, Jobs and CronJobs

Service types ClusterIP, NodePort, LoadBalancer and how selectors map to Pod labels

Namespaces, DNS naming like db-service.backend.svc.cluster.local, and cross-namespace access

ConfigMaps and Secrets for configuration, plus volume types including hostPath and emptyDir

Watch out for

Common Kubernetes Fundamentals exam traps

  • ▸Assuming a Service in another namespace resolves by short name; DNS requires the namespace-qualified form unless both Pods share a namespace
  • ▸Confusing hostPath and emptyDir: hostPath writes to the node and survives Pod deletion, emptyDir is deleted with the Pod
  • ▸Using a Secret for non-sensitive config or a ConfigMap for passwords, and forgetting Secrets are base64-encoded, not encrypted by default

Practice set

Kubernetes Fundamentals questions

20 questions · select your answer, then reveal the explanation

An application requires a unique identifier per replica, stored in an environment variable. Which Kubernetes resource should be used to inject this identifier into each pod without manual updates?

A pod in a ReplicaSet is failing with 'CrashLoopBackOff'. 'kubectl logs pod' shows 'Error: listen tcp :8080: bind: address already in use'. What is the most likely cause?

Which TWO of the following are valid ways to expose a set of pods as a network service within a Kubernetes cluster?

Which THREE of the following are required for a Kubernetes pod to be considered healthy and ready to serve traffic?

A team notices that a pod remains in 'CrashLoopBackOff' state after deployment. The application logs show 'Error: unable to bind to port 8080'. What is the most likely cause?

A DevOps engineer wants to ensure that a critical application pod is rescheduled on a different node if its current node fails. The pod should be scheduled with a preference for nodes in a specific availability zone but can run elsewhere if needed. Which scheduling mechanism should be used?

Refer to the exhibit. A pod is created with the above manifest. The container runs nginx listening on port 80, but the liveness probe is configured to check port 8080. What will happen?

Exhibit

Refer to the exhibit.

```
apiVersion: v1
kind: Pod
metadata:
  name: web-pod
spec:
  containers:
  - name: web
    image: nginx:1.21
    ports:
    - containerPort: 80
    livenessProbe:
      httpGet:
        path: /healthz
        port: 8080
      initialDelaySeconds: 3
      periodSeconds: 5
```

A StatefulSet named 'web' with 3 replicas is deployed in the 'production' namespace. The first two pods are running, but the third pod 'web-2' is pending with the error shown. What is the most likely cause?

Exhibit

Refer to the exhibit.

```
$ kubectl get pods -n production
NAME                     READY   STATUS    RESTARTS   AGE
web-0                    1/1     Running   0          5m
web-1                    1/1     Running   0          5m
web-2                    0/1     Pending   0          5m

$ kubectl describe pod web-2 -n production
...
Events:
  Type     Reason            Age   From               Message
  ----     ------            ----  ----               -------
  Warning  FailedScheduling  5m    default-scheduler  0/3 nodes are available: 3 node(s) didn't match pod anti-affinity rules.
```

Refer to the exhibit. The nginx Pod is created, but the Pod never becomes Ready. The container starts and runs. What is the most likely reason?

Exhibit

apiVersion: v1
kind: Pod
metadata:
  name: nginx-pod
spec:
  containers:
  - name: nginx
    image: nginx:latest
    ports:
    - containerPort: 80
    livenessProbe:
      httpGet:
        path: /healthz
        port: 80
      initialDelaySeconds: 5
      periodSeconds: 10
    readinessProbe:
      httpGet:
        path: /
        port: 80
      initialDelaySeconds: 3
      periodSeconds: 5

Match each Kubernetes scheduler concept to its description.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Constraints that attract pods to nodes based on node labels

Mechanism to repel pods from nodes unless they tolerate the taint

Minimum amount of CPU/memory guaranteed to a container

Maximum amount of CPU/memory a container can use

Indicates importance of a pod relative to others for preemption

A pod in the 'production' namespace is in a CrashLoopBackOff state. The pod has been running successfully for several days. You run 'kubectl describe pod app-pod -n production' and see the message: 'OOMKilled'. What is the MOST appropriate action to resolve this issue?

You deploy a new version of your application by updating the container image in the Deployment manifest. The rollout seems to be progressing, but after a few minutes you notice that the new Pods are failing and the old Pods are still running. What is the most likely reason?

Which THREE of the following are valid attributes in a Kubernetes Pod specification? (Select 3)

A developer creates a Deployment with the following YAML snippet:

```yaml apiVersion: apps/v1 kind: Deployment spec: replicas: 3 selector: matchLabels: app: frontend template: metadata: labels: app: frontend spec: containers: - name: nginx image: nginx:1.21 ```

What will happen if the label 'app: frontend' is omitted from the pod template's metadata?

What is the smallest deployable unit in Kubernetes?

Which three of the following are valid methods to create or update resources in Kubernetes? (Choose three.)

What is the primary purpose of Kubernetes?

A Deployment named 'web-app' has been running with 3 replicas. After a configuration change, you notice that only 2 pods are ready. You run 'kubectl describe deployment web-app' and see 'Replicas: 3 desired | 3 total | 3 up-to-date | 2 available'. What is the most likely cause?

You need to update a Deployment's container image from nginx:1.14 to nginx:1.16 and ensure zero downtime. Which kubectl command should you use?

A developer creates a Service of type ClusterIP in namespace 'default'. They attempt to reach the Service from another pod in the same namespace using the Service name 'my-svc'. The connection fails. What is the most likely cause?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Kubernetes Fundamentals sessions

Start a Kubernetes Fundamentals only practice session

Every question in these sessions is drawn from the Kubernetes Fundamentals domain — nothing else.

Related practice questions

Related KCNA topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the KCNA exam test about Kubernetes Fundamentals?
Be able to choose the right workload, Service, and configuration or storage object for a described scenario, and read a Pod spec. The single most important thing: know how Service DNS and namespaces interact, since cross-namespace name resolution is the classic failure point.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Kubernetes Fundamentals questions in a focused session?
Yes — the session launcher on this page draws every question from the Kubernetes Fundamentals domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other KCNA topics?
Use the topic links above to move to related areas, or go back to the KCNA question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the KCNA exam covers. They are not copied from any real exam or dump site.