Medium KCNA practice questions
Applied — put a concept to work in a realistic situation. 124 medium questions available — no sign-up, always free.
A developer notices that when the control plane component responsible for exposing the cluster's REST interface is temporarily unavailable, kubectl commands fail and no new Pods can be created, but existing Pods keep running normally. Which control plane component are they describing?
Your team manages a production application with Argo CD. The Application resource has both automated sync and self-heal enabled. An on-call engineer, responding to an incident, manually runs 'kubectl scale deployment web --replicas=8' to handle a traffic spike. The Git manifest still declares 3 replicas. What will Argo CD do?
Your team uses Argo CD to deploy a microservices application. The application requires that a database migration Job completes successfully before the API Deployment starts, and a namespace-level ConfigMap must exist before either. All resources live in the same Git repository under one Application. What is the recommended Argo CD mechanism to control the order in which these resources are applied during a sync?
A team runs a stateless web API whose traffic spikes unpredictably during marketing campaigns. Each pod is already sized correctly for a single request stream, but the application cannot benefit from more CPU or memory per instance because it is single-threaded. The team wants the application to handle sudden bursts of concurrent users automatically. Which autoscaling approach best fits this situation?
A team is designing a CI/CD pipeline for a cloud-native application on Kubernetes. Developers push code to a Git repository, and the pipeline must produce an artifact that the cluster can run. In which stage of a typical cloud-native CI/CD flow is the container image built and pushed to a registry?
A platform engineer is validating whether a newly built Kubernetes cluster conforms to the Kubernetes networking model. They want to confirm the fundamental rule that any CNI implementation must satisfy for the cluster to be considered compliant. Which statement correctly describes a core requirement of the Kubernetes networking model?
A platform engineer creates a ClusterRole named 'log-reader' that allows getting and listing pods in all namespaces. They then create a RoleBinding in the 'team-a' namespace that references the 'log-reader' ClusterRole and binds it to the user 'dev-alice'. After this, dev-alice reports she can read pods in 'team-a' but gets 'Forbidden' errors when reading pods in the 'team-b' namespace. What best explains this behavior?
A backend team runs three Pods created by a Deployment. Frontend Pods in the same cluster need to reach the backend reliably, but the backend Pods are frequently rescheduled, so their IP addresses keep changing. The team does not want to expose the backend outside the cluster. Which approach provides a stable internal address for the frontend to use?
A large retail company runs Kubernetes in production but does not sell cloud native software. Their platform team wants to influence CNCF project roadmaps, share real-world adoption experiences, and get guidance on evaluating projects — without becoming maintainers of any project. Which CNCF community group is designed specifically for organizations in this position?
A platform team at your company is selecting an open source service mesh to adopt for a mission-critical production environment. Leadership requires that the chosen CNCF project demonstrates proven adoption, a healthy contributor community, and strong governance before it is trusted for production. Which CNCF project maturity level best signals that a project meets these criteria?
A cloud native platform team wants to contribute domain-specific expertise (such as storage or observability) to help review projects and produce best-practice guidance under the CNCF's technical governance structure. Which body within the CNCF is organized around specific technical domains to provide this kind of focused guidance and support to the Technical Oversight Committee?
A company wants to contribute an internal project to the CNCF and is researching how the foundation is governed. They want to understand which body is responsible for defining the technical vision, reviewing and approving new projects into the CNCF, and overseeing project maturity progression. Which group performs this role?
You are bringing up a brand-new Kubernetes cluster. The control plane is healthy and worker nodes show status Ready. However, every application Pod you create remains stuck in the ContainerCreating state, and 'kubectl describe pod' shows an event referencing 'failed to set up sandbox: networkPlugin cni failed to set up pod ... no CNI configuration found'. What is the most likely cause?
A platform engineer is documenting how the Kubernetes networking model works for a new team. They want to explain which piece of the stack is responsible for assigning each Pod an IP address and enabling Pods on different nodes to reach one another directly, without NAT between them. Which component fulfills this responsibility?
A team packages a web server whose configuration must be provided as a file at /etc/app/config.yaml inside the container. The configuration content is stored in a ConfigMap named app-config under the key config.yaml. Which approach correctly delivers this file into the Pod?
A developer wants to store the entire contents of a 3 MB application configuration file inside a single ConfigMap and mount it into their Pods. When they try to create the ConfigMap, the API server rejects it. What is the most likely reason for the rejection?
A developer stores an application's configuration in a ConfigMap and mounts it into a Pod as environment variables using the envFrom field. After updating a value in the ConfigMap with kubectl edit, they notice the running Pod still uses the old configuration value. What is the most likely reason?
A developer complains that two containers in the same Pod cannot reach each other over 'localhost' as they expected, but claims each container should have its own IP. As the platform engineer, how do you correctly explain the Kubernetes networking model for containers within a single Pod?
A platform engineer is building a new Kubernetes cluster and wants to run containers using containerd instead of a different runtime. They need to understand how the kubelet on each node actually launches and manages containers. Through which standardized interface does the kubelet communicate with the container runtime?
A platform team maintains a Kubernetes cluster and wants the freedom to switch between different container runtimes (for example, from one runtime to another) without modifying the kubelet or rebuilding the control plane. Which design element of Kubernetes makes this runtime interchangeability possible?
A security review of your team's Kubernetes workloads finds that several containers run as the root user (UID 0) inside their images. Your security lead asks you to reduce the risk that a compromised container could escalate privileges on the host. Which change to the Pod specification most directly addresses this concern as a container security basic?
A platform engineer deletes one Pod that was created by a Deployment. Almost immediately, a new Pod appears to replace it. Which control plane component is responsible for continuously comparing the actual cluster state to the desired state and driving the creation of that replacement Pod?
A platform team is designing a cluster and wants to understand the layered responsibility for actually starting containers on a node. The kubelet does not run containers itself. Which statement correctly describes how the kubelet gets a container running on a node?
Your platform team is evaluating whether to replace the container runtime on your Kubernetes nodes from containerd to CRI-O. A colleague worries this will require rewriting the kubelet or changing how pods are defined. What is the primary benefit that the Container Runtime Interface (CRI) provides in this situation?
Your team is upgrading a Kubernetes cluster and notices in the release notes that the built-in Docker integration (dockershim) has been removed. The nodes currently use Docker as the container runtime. What is the primary reason Kubernetes was able to remove this integration without breaking support for existing OCI container images?