CKA and CKAD exam questions

Kubernetes CKA and CKAD Questions and Answers

A focused practice page for hands-on Kubernetes certification tasks, command patterns, YAML fixes and quick answer review.

CKA
Admin tasks
CKAD
App tasks
Blog
Exam notes
Detailed home

What You Can Do on KubeDrill

This home page is designed like a practical exam-prep article. You can scan the exam format, understand the question structure, study examples and move into live practice without changing context.

Practice like the real exam

The home page now starts with task-based Kubernetes scenarios, not abstract theory.

Learn the answer pattern

Each question follows a practical flow: read the task, choose commands, apply YAML and verify.

Move from blog to drills

Read the strategy notes, then jump into timed practice sessions when you are ready.

CKA and CKAD Overview

CKA focuses on administrator responsibilities. CKAD focuses on building, configuring and troubleshooting applications that run on Kubernetes. Both reward fast terminal work and clear command choices.

Duration
2 hours
Style
Hands-on tasks
Pass score
66% for CKA and CKAD
Cluster version
Kubernetes v1.35

Exam Format

01

Read each task, set the correct context and namespace, then solve directly in the terminal.

02

Use kubectl dry-run output, short names and official docs to reduce YAML typing time.

03

Verify every result with get, describe, logs, events or a direct workload check before moving on.

Question Format

A strong CKA or CKAD practice question should look like the real exam: direct task, minimal story, clear constraints and a result you can verify.

Sample question structure
1. Task

A short scenario tells you what Kubernetes resource to create, update, inspect or fix.

2. Context

The prompt may mention a namespace, cluster context, labels, image, port, storage class or policy rule.

3. Command or YAML

Most answers use kubectl first, then generated YAML when the task needs exact fields.

4. Verification

Every answer should end with a quick check such as get, describe, logs, events or endpoint validation.

Example format

In namespace app-team, create a Deployment named apiwith image nginx:1.27 and 2 replicas. Expose it on port 80, then verify that the Service has endpoints.

CKA vs CKAD

Both exams are hands-on, but the questions feel different. CKA asks you to operate the cluster. CKAD asks you to build and fix workloads inside the cluster.

Exam focus

CKA

Cluster administration

Nodes, scheduling, storage, services, troubleshooting, upgrades and cluster operations.

Exam focus

CKAD

Application delivery

Pods, Deployments, Jobs, probes, ConfigMaps, Secrets, Services and NetworkPolicy.

Topic Domains

Cluster operations

Create resources, inspect node health, debug workloads, manage scheduling and read events quickly.

Workloads and apps

Deploy Pods, Deployments, Jobs, CronJobs, ConfigMaps, Secrets, probes and resource limits.

Services and networking

Expose applications with Services and Ingress, troubleshoot DNS and apply NetworkPolicy rules.

Security and access

Work with ServiceAccounts, RBAC, securityContext settings, admission behavior and least privilege.

Practice Flow

Use this same flow for every mock question. Repetition is what turns Kubernetes lookup into exam speed.

01

Read

Find the namespace, resource type, name, image, port, labels and expected result.

02

Generate

Use kubectl create or run with dry-run output when a manifest will save time.

03

Apply

Edit only the fields required by the task, then apply the manifest or run the command.

04

Verify

Confirm with get, describe, logs, events, rollout status, endpoints or a direct request.

Command Patterns to Remember

Generate YAML fast
kubectl create deployment api --image=nginx:1.27 --dry-run=client -o yaml
Check namespace events
kubectl get events -n app-team --sort-by=.lastTimestamp
Inspect service endpoints
kubectl get endpoints api -n app-team
Debug previous crash logs
kubectl logs pod/api-1 -n app-team --previous

Practice Questions and Answers

Use these as short drills. Solve first, reveal mentally, then compare with the answer.

CKA
Question 1

Create a deployment and expose it

Create a deployment named web with 3 replicas using nginx:1.27, then expose it as a ClusterIP service on port 80.

Answer
kubectl create deployment web --image=nginx:1.27 --replicas=3
kubectl expose deployment web --port=80 --target-port=80
kubectl get deploy,svc web

Verify the selector and endpoint count. A service without matching endpoints usually means the labels do not line up.

CKAD
Question 2

Add a readiness probe

Update an existing pod manifest so the app is ready only after /healthz returns success on container port 8080.

Answer
readinessProbe:
  httpGet:
    path: /healthz
    port: 8080
  initialDelaySeconds: 5
  periodSeconds: 10

Use a readiness probe when traffic should wait. Use a liveness probe when Kubernetes should restart a stuck container.

CKA
Question 3

Find a failing workload

A pod in namespace payments is CrashLoopBackOff. Find the error and capture the previous container logs.

Answer
kubectl get pods -n payments
kubectl describe pod <pod-name> -n payments
kubectl logs <pod-name> -n payments --previous

In the exam, describe output and events often point to image, command, probe or volume issues faster than guessing.

CKAD
Question 4

Create a NetworkPolicy

Allow only pods with label role=frontend to connect to pods labeled app=api on TCP port 8080 in the same namespace.

Answer
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: allow-frontend-to-api
spec:
  podSelector:
    matchLabels:
      app: api
  ingress:
    - from:
        - podSelector:
            matchLabels:
              role: frontend
      ports:
        - protocol: TCP
          port: 8080
  policyTypes:
    - Ingress

NetworkPolicies are namespace-scoped. If cross-namespace access is required, include a namespaceSelector.

Kubernetes Exam Blog

Short blog-style guides for command speed, YAML repair and exam strategy.

Preparation Tips

Set aliases for kubectl, but keep full commands familiar in case an environment resets.
Practice editing generated YAML instead of writing long manifests from memory.
Learn to debug from events, logs, endpoints and selectors before changing resources.
Time-box difficult questions and return after collecting easier points.

Useful Resources