Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Welcome to QA4Exam

Free practice questions with explanations

Linux Foundation CKAD Dumps 2026 with Free Practice Questions and Answers

Practise for the Certified Kubernetes Application Developer exam with 17 original questions, each with an answer and explanation.

Topics: Application Environment, Configuration And Security, Application Deployment, Application Design And Build, Services And Networking and 1 more.

Includes single answer, multiple answers, drag and drop, order list and dropdown. A new question is added every 15 days.

CKAD Practice Set Details

Exam Code
CKAD
Questions On This Page
17
Exam Topics Covered
5 of 5
Question Types
5
Newest Question
New Question
Every 15 days
Full Question Set
48
Certification
Kubernetes Application Developer
17 questions

Linux Foundation CKAD Exam Questions and Answers by Topic

Services and Networking

20% of the exam

3 practice questions on this topicWhat this topic covers

Question 1

Added

Single Answer

A backend Deployment in namespace storefront is healthy, but an internal client in namespace checkout cannot connect through the Service. The Service is type ClusterIP and selects Pods labeled app=orders. Its port is 80 and targetPort is 8080. The backend container listens on 8080, and the client resolves the Service name to a ClusterIP. A NetworkPolicy in storefront selects the backend Pods and allows ingress only from Pods labeled role=frontend in storefront. What is the most direct fix while preserving the current Service and namespace separation?

Correct answer: C

The Service port mapping is already correct: clients connect to port 80, which forwards to the backend's listening port 8080. The stated NetworkPolicy selects the backend Pods and permits ingress only from matching Pods in storefront, so the checkout client is denied. Add a narrowly scoped ingress rule selecting the checkout namespace and required TCP port. Changing to NodePort does not reliably bypass Pod network policy. Changing targetPort breaks the mapping, and an egress rule on the backend policy does not authorize incoming client traffic.

Question 2

Added

Drag And Drop

An application platform exposes three different workloads. A stateless web frontend needs a stable in-cluster virtual IP, an administrative endpoint must be exposed directly on each node's address and port, and an external hostname must route HTTP requests to the frontend through the cluster's existing ingress controller. Match each requirement to the Kubernetes resource that provides it.

Drag each item onto its matching target. On a phone: tap an item, then tap a target.

Route external HTTP by hostname through an ingress controller
Stable virtual IP for in-cluster clients
Expose a port on each node address
Ingress resource
NodePort Service
ClusterIP Service
Correct answer:
  • Stable virtual IP for in-cluster clients → ClusterIP Service
  • Expose a port on each node address → NodePort Service
  • Route external HTTP by hostname through an ingress controller → Ingress resource

A ClusterIP Service provides a stable virtual IP reachable inside the cluster. A NodePort Service exposes the selected Service through a port on each node address, as required for the administrative endpoint. An Ingress resource defines HTTP routing rules such as host and path and relies on an ingress controller to implement them. An Ingress is not a general TCP service exposure mechanism, while a NodePort does not provide hostname-based HTTP routing. A ClusterIP alone is not directly exposed on node addresses.

Question 3

Added

Single Answer

A team needs to expose a small HTTP application at api.example.net/path through an ingress controller already installed in the cluster. TLS terminates at that controller, and the backend Service named api is in the same namespace on port 8080. The application should receive requests for that path, while unrelated hosts and paths must not be routed to it. Which configuration is the best fit?

Correct answer: A

An Ingress rule can match the requested host and path and direct traffic to the backend Service and its service port. Its TLS section associates the host with a Secret so the installed controller can terminate TLS. A NodePort exposes a node-level port but does not express host-and-path routing. A ClusterIP Service does not terminate TLS simply by using port 443; that requires an application or proxy configured for TLS. A NetworkPolicy controls allowed network traffic, not HTTP host routing, and DNS does not provide path selection.

Application Environment, Configuration and Security

25% of the exam

6 practice questions on this topicWhat this topic covers

Question 4

Added

Multiple Answers

A team runs a renderer in namespace docs. The renderer must receive non-sensitive theme settings that operators can revise without rebuilding the image, and a license token that must not be stored in the image or committed with its deployment manifests. The application reads both values from files under /etc/renderer; it does not support environment variables. The team wants updates to either resource to appear in the mounted files without restarting Pods. Which two actions meet these requirements? (Choose two.)

Correct answer: B, E

A ConfigMap volume is appropriate for non-sensitive configuration, and Kubernetes updates files in a mounted ConfigMap volume after the ConfigMap changes. For the license, use a Secret volume and have the application watch the files: Secret volume projections are updated eventually, though the application must reread them to use the new value. Environment variables are not refreshed when their source changes, so relying on process-environment updates fails. A ConfigMap is not intended for confidential data; restricting API access does not make it an appropriate Secret substitute. Note that volume updates are not instantaneous.

Question 5

Added

Multiple Answers

A team is moving database credentials out of a container image. The application expects the username and password as environment variables, while an audit requires the credentials to be created as a Kubernetes Secret and limits Secret access to the application Pod's namespace. The team does not want credentials embedded in a Pod manifest or stored in source control. Which two actions meet the requirements? (Choose two.)

Correct answer: A, E

Creating a namespaced Secret through the deployment pipeline keeps literal credentials out of checked-in manifests, and envFrom.secretRef exposes its keys as environment variables expected by the application. A ConfigMap is intended for non-confidential configuration and does not satisfy the Secret requirement. A Secret volume is secure as a Kubernetes consumption mechanism but does not match the application's environment-variable interface. Command arguments put credentials in the Pod specification and potentially process listings, so namespace isolation alone is insufficient.

Question 6

Added

Drag And Drop

A platform team is reviewing a Pod specification for a multi-container service. The requirements cover a non-root process, a read-only root filesystem, and a process that must bind to a privileged port without running as root. Match each requirement to the Pod security context setting that directly addresses it.

Drag each item onto its matching target. On a phone: tap an item, then tap a target.

Run the process with UID 10001
Prevent writes to the container root filesystem
Allow binding to a privileged port as non-root
readOnlyRootFilesystem: true
runAsUser: 10001
Add NET_BIND_SERVICE capability
Correct answer:
  • Run the process with UID 10001 → runAsUser: 10001
  • Prevent writes to the container root filesystem → readOnlyRootFilesystem: true
  • Allow binding to a privileged port as non-root → Add NET_BIND_SERVICE capability

runAsUser sets the UID used by the container process, and UID 10001 is non-root. readOnlyRootFilesystem prevents writes to the container's root filesystem, though writable volumes can still be mounted where needed. NET_BIND_SERVICE grants the narrow capability needed to bind a privileged port without granting root identity. Setting privileged: true would grant much broader access, and runAsNonRoot alone would not select the requested UID or make the filesystem read-only.

Question 7

Added

Single Answer

A service account used by a reporting Pod can currently list every Secret in its namespace. The Pod only needs to read one named Secret, and the security review requires least-privilege API access. The application must still use the Kubernetes API directly, so disabling its service account token is not acceptable. What is the best change?

Correct answer: C

A Role can be scoped to the namespace and use a resourceNames entry for the single Secret, with get as the only required verb; a RoleBinding then grants that permission to the service account. This is narrower than the current broad access. A ClusterRole bound within a namespace still has its declared broad permissions, unless specially constrained, and does not itself meet the one-Secret requirement. list exposes names and contents of all secrets the rule covers. Disabling the token prevents the required direct API access, while copying credentials into the Pod specification adds a different exposure.

Question 8

Added

Single Answer

A namespace has a ResourceQuota that caps aggregate CPU requests at 8 cores. It currently accounts for 7 cores. A developer submits a Deployment with three replicas, each requesting 500m CPU, and with no CPU limit. The Pods remain pending because the Deployment cannot create all requested replicas. The developer is asked to resolve the issue without reducing replica count or increasing namespace quota. What is the best first action?

Correct answer: A

The Deployment requests 1.5 additional cores, which would take aggregate requests to 8.5 cores and exceed the quota. Reducing the per-replica request to 250m makes the new total 750m, bringing aggregate requests to 7.75 cores while retaining all replicas; the team must verify the smaller reservation is operationally acceptable. A CPU limit does not reduce a declared request. A new LimitRange default does not override an explicit request in the Pod template. A longer progress deadline cannot make an admission quota violation acceptable.

Question 9

Added

Multiple Answers

A team deploys a custom controller that watches a new resource type named RolloutPlan. The API server rejects the resource as unknown. The controller is already running, but its service account has no permissions to create or inspect this resource. The team wants the API to validate RolloutPlan objects and the controller to reconcile them in namespace releases only. Which two actions are required? (Choose two.)

Correct answer: B, D

A CustomResourceDefinition registers the new API resource with the API server and can declare its OpenAPI schema for validation. The controller separately needs RBAC authorization for the verbs and resource in its namespace, granted through a Role and RoleBinding. A ConfigMap does not register an API kind. A Service provides network access but does not extend the API server or route custom resources to an ordinary controller. Pod labels do not affect API discovery or authorization.

Application Observability and Maintenance

15% of the exam

2 practice questions on this topicWhat this topic covers

Question 10

Added

Single Answer

An API container starts successfully and serves traffic on port 8080. During startup it can take up to 90 seconds to load its index; during that interval it returns HTTP 503 from /readyz but must not be restarted. After startup, a deadlocked process stops making progress and must be restarted. Operators also want Kubernetes to remove a Pod from Service endpoints whenever it is not ready. Which probe design best meets all three requirements?

Correct answer: D

A startup probe can allow the lengthy initialization period before liveness evaluation begins. The readiness probe on /readyz removes the Pod from Service endpoints while it returns 503, without restarting it. A separate liveness endpoint should detect a deadlocked process and trigger a restart. Using readiness as liveness can restart a healthy but not-yet-ready process. A fixed initial delay is less robust than a startup probe and does not replace readiness semantics. A process ID check may remain successful during a deadlock, and session affinity does not remove unready endpoints.

Question 11

Added

Order List

A Deployment rollout is stuck with new Pods not becoming ready, and users report intermittent failures. You have access to kubectl but must preserve evidence before changing the rollout. Arrange the diagnostic steps in the order that best narrows the cause while retaining useful information.

Drag the steps into the correct order, or use the arrows.

  1. After identifying the cause, correct the relevant configuration and observe rollout status.
  2. Check recent namespace events for scheduling, mount, or probe failures.
  3. Inspect Deployment and Pod status with kubectl get and kubectl describe.
  4. Read logs from the failing container, including the previous instance if it restarted.
Correct answer:
  1. Inspect Deployment and Pod status with kubectl get and kubectl describe.
  2. Read logs from the failing container, including the previous instance if it restarted.
  3. Check recent namespace events for scheduling, mount, or probe failures.
  4. After identifying the cause, correct the relevant configuration and observe rollout status.

Start with resource status and describe output to identify which Pods are affected and their conditions. Container logs then reveal application-level failures; --previous is useful when a container has restarted. Events provide recent cluster-level evidence such as scheduling, volume, or probe errors and should be reviewed before making changes that may replace the affected Pods. Only after diagnosis should configuration be corrected and the rollout monitored. Changing the Deployment first can erase or obscure the evidence needed to distinguish application failure from a Kubernetes setup problem.

Application Deployment

20% of the exam

3 practice questions on this topicWhat this topic covers

Question 12

Added

Single Answer

A payments team must release version 2 of a stateless API without changing its public Service or interrupting requests. Version 1 currently has four ready replicas, and the cluster has capacity for four additional replicas during the release. The new version has passed testing, but the team wants an immediate way to direct all production traffic back to version 1 if validation fails. Which approach best meets these requirements?

Correct answer: B

A separate Deployment lets both versions run concurrently while the Service selector remains the traffic switch. If validation fails, selecting the version 1 label restores traffic without rebuilding or waiting for a rollout. A rolling update can keep availability but does not retain an independent, instantly selectable old ReplicaSet as a deliberate traffic target. Sharing the same selector does not make a Service distribute by version and risks overlapping controller ownership. Manually updating half the Pods bypasses Deployment reconciliation and does not provide a reliable rollback switch.

Question 13

Added

Dropdown

A team maintains a base set of Kubernetes manifests and a production overlay. The overlay must change the container image tag, add a production-only label, and increase the Deployment replica count without duplicating the base files. The organization does not permit installing Helm or adding a separate templating engine to the build pipeline. Complete the command sequence that builds the production manifests and applies them to the current cluster context.

Choose the correct value for each blank.

kubectl kustomize > /tmp/prod.yaml && kubectl apply -f /tmp/prod.yaml
Correct answer:

kubectl kustomize overlays/prod > /tmp/prod.yaml && kubectl apply -f /tmp/prod.yaml

The kubectl kustomize subcommand accepts the path to a directory containing a kustomization file and renders its customized resources. Applying that rendered output keeps the workflow within the installed kubectl tooling and avoids duplicating base manifests. The -k form belongs to kubectl apply rather than kubectl kustomize. The -f form is an apply input flag, not the path argument for this command. The final value is not a valid way to invoke a separate kustomize command through kubectl.

Question 14

Added

Single Answer

A release manager deploys an application package from a Helm chart repository. The release is named inventory in namespace warehouse, and the current chart version is known to work. A new chart version is available, but the team must first inspect the changes it would make and must not apply them until an approver signs off. Which action provides a rendered preview of the proposed upgrade without changing cluster resources?

Correct answer: C

helm upgrade with --dry-run renders and validates the proposed release operation without applying the changes to cluster resources. It is the appropriate preview of an upgrade using the existing release name and target chart version. helm template renders chart manifests locally, but does not perform the same release-aware upgrade operation. Adding --install can create or change the release, violating the approval gate. helm rollback targets an earlier deployed revision, not the proposed chart version, and is not the requested preview.

Application Design and Build

20% of the exam

3 practice questions on this topicWhat this topic covers

Question 15

Added

Single Answer

A web application image must be built in a restricted CI environment that has no Docker daemon. The source repository contains a Dockerfile and build context, and the approved build tool is Buildah. The resulting image must be pushed to a registry under the tag registry.example.net/web:2025.04. The CI job must not depend on Kubernetes or create a running container. Which command sequence is the best fit?

Correct answer: B

buildah bud builds an image from the Dockerfile and context without requiring a Docker daemon, and buildah push sends the named image to the registry. This satisfies the CI restrictions and uses the required tag. kubectl run creates a workload rather than building from the source context, and docker commit also assumes a running container and Docker tooling. buildah from creates a working container from an existing image; it does not build the repository's Dockerfile. The Docker build choice relies on the explicitly unavailable daemon and adds an unnecessary cluster deployment.

Question 16

Added

Order List

A batch processor must run once at 02:00 daily. Each run needs a temporary workspace shared between an initializer and the main process, but no data may persist after the Pod finishes. The initializer downloads a reference file, and the main process must not start unless that download succeeds. Arrange the implementation steps in the order they must be performed.

Drag the steps into the correct order, or use the arrows.

  1. Add an emptyDir volume and mount it in both containers.
  2. Add an init container that downloads the reference file into the mounted path.
  3. Configure the main container to process the file from that path.
  4. Define a CronJob with the daily schedule and a Pod template.
Correct answer:
  1. Define a CronJob with the daily schedule and a Pod template.
  2. Add an emptyDir volume and mount it in both containers.
  3. Add an init container that downloads the reference file into the mounted path.
  4. Configure the main container to process the file from that path.

The workload is scheduled by a CronJob, whose Pod template defines the Pod-level storage and containers. An emptyDir is created for the Pod and can be mounted by multiple containers, then disappears when the Pod is removed. The init container runs to completion before application containers start, so it can populate the shared directory and block the processor if the download fails. The main container is configured last to consume the prepared file. Reordering these concepts in the manifest is not mandatory syntactically, but the implementation dependencies follow this sequence.

Question 17

Added

Single Answer

A monitoring agent must run on every Linux node, including nodes added by autoscaling. It reads node-local runtime metadata and sends metrics to a central endpoint. The cluster also contains Windows nodes, where the agent image is unsupported. The team wants Kubernetes to create agents automatically for eligible nodes and avoid maintaining a replica count as nodes change. Which workload resource and scheduling constraint should be used?

Correct answer: D

A DaemonSet is designed to maintain a Pod on each eligible node, including nodes added later, and a node selector can exclude Windows nodes. This removes the need to track node count in a replica field. A Deployment maintains a count rather than node coverage, so its Pods can cluster on a subset of nodes. A StatefulSet provides stable identities and storage semantics that are not needed for this per-node agent. A CronJob creates scheduled jobs, not a persistent agent on every eligible node.

More Linux Foundation Practice Questions

Get the Full Linux Foundation CKAD Dumps as PDF and Practice Test

17 questions are free on this page and the full set has 48. It comes as a PDF and an online practice test, with 90 days of free updates.