Skip to content

Linux Foundation

Kubernetes and Cloud Native Associate (KCNA)

Exam 1 · 64 questions · Choose another exam

  1. Question 1 of 318What is the reference implementation of the Open Container Initiative (OCI) runtime specification?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. runc

    The correct answer is runc because it is the CLI reference implementation of the OCI runtime specification. For the KCNA exam, remember that Docker and containerd are higher-level runtimes, whereas runc actually does the container creation.

  2. Question 2 of 318In the context of cloud native environments, which persona primarily focuses on optimizing cloud costs and financial management?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. FinOps

    The correct answer is FinOps because this persona focuses specifically on cloud financial management and cost optimization. DevOps is a strong distractor, but it focuses on delivery and operations workflows rather than financial accountability.

  3. Question 3 of 318Which of the following is a lightweight container runtime specifically designed for Kubernetes, conforming to the Container Runtime Interface (CRI)?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. CRI-O

    The correct answer is CRI-O because it was built specifically as a lightweight Kubernetes runtime implementing the Container Runtime Interface. While containerd also conforms to the CRI, it serves as a broader core container runtime rather than a Kubernetes-exclusive one.

  4. Question 4 of 318Which part of the Kubernetes cluster is responsible for overall cluster management, including coordinating worker nodes?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Control Plane

    The correct answer is the Control Plane since it makes global cluster decisions and manages the overall cluster state. The scheduler and controller manager are strong distractors, but they are individual components running within that control plane.

  5. Question 5 of 318In Kubernetes, which component is primarily responsible for managing a Node?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Kubelet

    The correct answer is the Kubelet because it acts as the primary node agent ensuring containers run in their intended state. The API server is a distractor that manages the entire cluster centrally rather than managing individual nodes locally.

  6. Question 6 of 318During the phase when container images are being downloaded for a Pod in Kubernetes, what state is the Pod typically in?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Pending

    The correct answer is Pending because this state indicates the pod has been accepted but containers are not yet running, often due to image pulls. Initializing is a strong distractor, but Kubernetes does not use it as a primary pod phase.

  7. Question 7 of 318In a cloud-native organisation, which role is primarily responsible for building and maintaining the underlying platform infrastructure, enabling application developers to deploy and run their services efficiently?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Platform Engineers

    The correct answer is Platform Engineers because they design and maintain the internal developer platform enabling application deployment. DevOps is a strong distractor, but it focuses broadly on culture and pipelines rather than building infrastructure products.

  8. Question 8 of 318What is the primary purpose of kube-state-metrics in a Kubernetes cluster?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. To generate and expose cluster state data

    The correct answer is to generate and expose cluster state data because kube-state-metrics listens to the API server and outputs Prometheus metrics. A strong distractor is monitoring network traffic, which is handled by components like the CNI or network observability tools.

  9. Question 9 of 318A cloud native professional spends their time organizing local meetups to demonstrate CNCF project usage, giving talks at conferences to promote cloud native technologies, and mentoring new contributors in the community. Based on these activities, which CNCF role is this individual most likely fulfilling?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. CNCF Ambassador

    The CNCF Ambassador role matches these activities because ambassadors actively organize meetups, speak at conferences, and mentor new contributors. For the exam, remember that TOC members manage technical projects, while ambassadors focus on community advocacy.

  10. Question 10 of 318What statement is correct regarding the Open Policy Agent (OPA) in the context of Kubernetes?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Kubernetes can use OPA to validate requests and apply policies across the cluster

    Kubernetes integrates OPA as an admission controller to validate API requests and enforce cluster-wide policies. OPA is not a service mesh or load balancer; it functions purely as a general-purpose policy engine used for compliance and governance.

  11. Question 11 of 318Which of the following is a CNCF project that focuses on providing monitoring and alerting capabilities in a cloud-native environment?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Prometheus

    Prometheus is the correct choice because it is the primary CNCF project designed for cloud-native monitoring and alerting via a time-series database. Do not confuse it with Envoy, which handles network proxying, or Helm, which packages applications.

  12. Question 12 of 318Which kubectl command applies a label to generate warnings for Pods in a namespace that violate the baseline Pod Security Standards?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. kubectl label --overwrite ns example pod-security.kubernetes.io/warn=baseline

    Pod Security Admission configurations are applied to namespaces using standard labels, specifically 'pod-security.kubernetes.io/warn=baseline'. Avoid using annotations for this, as the admission controller specifically reads security configurations from namespace labels.

  13. Question 13 of 318In Kubernetes, what is an Endpoint primarily used to represent?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. The IP addresses and ports of the Pods backing a Service

    Endpoints represent the actual IP addresses and ports of the Pods backing a Service. They are crucial for keeping network routing updated as Pods scale up or down, ensuring traffic reaches healthy targets.

  14. Question 14 of 318In Kubernetes, what are Service Endpoints primarily used for?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Tracking the IP addresses and ports of Pods associated with a Service

    Service Endpoints track the IP addresses and ports of associated Pods to enable accurate traffic routing. Endpoints update dynamically as Pods are created or terminated, ensuring clients always reach available application instances.

  15. Question 15 of 318In a Kubernetes cluster, which component is responsible for routing traffic for services and managing IP rules?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Kube-Proxy

    Kube-Proxy runs on each node to handle packet routing and manage IP table rules for Services. The API server handles state management, while etcd provides the backing data store for the cluster.

  16. Question 16 of 318In a Kubernetes cluster architecture, which component acts as the central management entity, processing RESTful requests to manage and control the various resources within the cluster?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Kubernetes API Server

    The Kubernetes API Server acts as the central management hub, processing all RESTful requests to manage cluster resources. Every component, including kubelet and controller manager, must communicate through the API server.

  17. Question 17 of 318In a Kubernetes cluster running multiple Ingress Controllers, how should you configure an Ingress resource so that it is handled by a specific controller?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Set spec.ingressClassName on the Ingress to the name of the desired IngressClass

    Setting spec.ingressClassName explicitly binds the Ingress resource to the correct controller. Older Kubernetes versions relied on annotations, but the IngressClass API is now the standard mechanism.

  18. Question 18 of 318In a Kubernetes cluster, which component runs on every node to manage the lifecycle of containers?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Kubelet

    The kubelet runs on every node to ensure containers are healthy and running in their expected state. Do not confuse it with the container runtime, which the kubelet directs to execute the actual containers.

  19. Question 19 of 318How would you adjust a Kubernetes Deployment named 'cache' to run exactly 7 instances using kubectl?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. kubectl scale deployment/cache --replicas=7

    The kubectl scale command with the replicas flag is the standard imperative method to adjust Deployment instances. Exam takers should memorize kubectl scale deployment and avoid distractors using fictional verbs like resize.

  20. Question 20 of 318A Kubernetes cluster has 20 nodes, but you want to run exactly 5 instances of a stateless frontend service, independent of how many nodes are in the cluster. You also want Kubernetes to handle rolling updates to new image versions. Which Kubernetes resource should manage this frontend service?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Deployment

    A Deployment manages a set of stateless replicas and provides rolling updates, making it the correct choice for this scenario. A DaemonSet runs a pod on every node, which would not maintain an exact count of five instances.

  21. Question 21 of 318In the Open Container Initiative (OCI) Specification, which areas are standardized?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Container image format, runtime environment, and distribution

    The correct answer is image format, runtime environment, and distribution because the OCI defines these three core specifications. A strong distractor mentions orchestration tools, but the OCI deliberately avoids standardizing higher-level orchestration platforms like Kubernetes.

  22. Question 22 of 318To enhance container security and efficiency in a production Kubernetes environment, which image build strategy aligns with industry best practices?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Use small base images in a multi-stage build with pinned dependency checksums

    The correct answer uses small base images with multi-stage builds and pinned checksums to minimize attack surface and guarantee integrity. Distractors using distroless images fail because including debug packages directly contradicts the goal of minimizing image size.

  23. Question 23 of 318A software company aims to implement an open storage standard to prevent vendor lock-in and ensure uniform storage compatibility across both open source and commercial platforms. Which Container Storage Interface (CSI) benefit most directly supports these open standards objectives?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. CSI allows vendors to create solutions using open specifications, allowing storage to operate consistently without core adjustments

    The Container Storage Interface provides a standardized open specification, allowing storage vendors to write one plugin that works across multiple container orchestrators without touching core code. Option A fails because in-tree integrations are actively being phased out to prevent vendor lock-in.

  24. Question 24 of 318A development team is migrating their microservices to the cloud and needs to monitor request flows across services. They want a solution that shows the entire journey of a user request from frontend through backend services. Which cloud-native tool category specifically provides this end-to-end request visibility?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Distributed Tracing

    Distributed tracing tracks and visualizes the complete path of a single user request as it traverses across various microservices. While a service mesh can facilitate this tracking, distributed tracing is the specific observability discipline providing the actual visibility.

  25. Question 25 of 318What is ephemeral storage in the context of Kubernetes?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. A temporary storage type that is tied to the lifecycle of a Pod

    Ephemeral storage is strictly tied to the lifecycle of a Pod, meaning the temporary data is deleted forever when the Pod is terminated or restarted. Option A describes persistent storage, which survives Pod restarts by using persistent volumes.

  26. Question 26 of 318Which of the following options are metric types available in Prometheus?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Counter, Gauge, Histogram, Summary

    Prometheus fundamentally supports four metric types: counter, gauge, histogram, and summary. Options including timer or rate are incorrect because rate is a PromQL function used on counters, while timers are typically implemented as histograms or summaries.

  27. Question 27 of 318In Kubernetes, how do you add persistent storage to a Pod?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. By defining a PersistentVolumeClaim in the Pod specification

    You add persistent storage by defining a PersistentVolumeClaim inside the Pod specification. This claim acts as a request for storage resources that Kubernetes automatically fulfills by binding it to a matching PersistentVolume.

  28. Question 28 of 318In Kubernetes, which security-focused tool is commonly used for runtime security monitoring and detection of anomalous activities within containers and pods?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Falco

    Falco is a CNCF tool designed specifically for runtime security, tapping into system calls to detect anomalous container behavior in real-time. The other options are unrelated to runtime security; Istio manages networking, Prometheus handles metrics, and Helm deploys packages.

  29. Question 29 of 318In Kubernetes, through which mechanism is a service account token made accessible to a Pod?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. A file containing the token is mounted at /var/run/secrets/kubernetes.io/serviceaccount/token

    Kubernetes automatically mounts a volume containing the service account token at a standard fixed file path for Pod consumption. Environment variables or direct API calls are not the default mechanisms used by the kubelet to inject credentials into Pods.

  30. Question 30 of 318What are the three maturity stages a project passes through within the Cloud Native Computing Foundation (CNCF)?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Sandbox, Incubating, Graduated

    The CNCF hosts projects through three maturity stages: Sandbox, Incubating, and finally Graduated. Option B describes Kubernetes resource stability phases, which is a distinct concept from the overall project lifecycle.

  31. Question 31 of 318What does the acronym OIDC stand for in the context of authentication and authorization?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. OpenID Connect

    OIDC stands for OpenID Connect, an interoperable identity layer built on top of the OAuth 2.0 framework. It is the standard method Kubernetes uses to integrate external identity providers for authenticating cluster users.

  32. Question 32 of 318In a Kubernetes cluster, the security team has applied the Restricted Pod Security level to a multi-tenant namespace. Which set of characteristics best describes this policy?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Requires pods to run as non-root, disallows privilege escalation, blocks hostPath and host networking, and enforces seccomp and capability restrictions

    The Restricted profile enforces the most stringent security settings, including running as non-root and blocking privilege escalation. The Privileged profile places no limits, while Baseline allows root but blocks obvious privilege escalation.

  33. Question 33 of 318In Kubernetes, which of the following accurately describes the functional separation between control-plane and worker nodes?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Control-plane nodes orchestrate the cluster, maintain the desired state, and manage scheduling, while worker nodes run the pods and containers.

    Control-plane components make global decisions about scheduling and cluster state, while worker nodes host the container runtime and pods. Remember the exam cue: brain versus muscle.

  34. Question 34 of 318What configuration approach enables continuous deployment of applications using an Argo CD ApplicationSet?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. By specifying the ApplicationSet in a YAML definition connected to a Git repo holding application configurations

    ApplicationSets declaratively generate Argo CD Applications from a Git repository to automate cluster deployments. Avoid manual kubectl commands since GitOps relies entirely on Git as the single source of truth.

  35. Question 35 of 318What is the name of the infrastructure and application delivery approach that uses version-controlled source repositories as the authoritative source for declarative management?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. GitOps

    GitOps uses a Git repository as the single source of truth for declarative infrastructure and applications. While Infrastructure as Code provisions resources, GitOps specifically relies on continuous reconciliation.

  36. Question 36 of 318What is the primary role of the Ingress API in a Kubernetes cluster?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. To define HTTP/HTTPS routing rules that expose multiple Services through a single external endpoint

    The Ingress API consolidates external HTTP and HTTPS routing rules to expose multiple services behind a single endpoint. Standard services like LoadBalancer lack layer seven path and host-based routing capabilities.

  37. Question 37 of 318In a Kubernetes node, which component is directly responsible for running containers?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Container Runtime

    The container runtime, such as containerd, directly executes and manages container lifecycles. While the kubelet supervises pods, it delegates the actual container execution to the runtime.

  38. Question 38 of 318A healthcare company uses Kubernetes to manage a cluster with nodes labeled 'environment: prod' for patient data processing and 'environment: dev' for testing. They need to deploy a sensitive Pod that must run exclusively on production nodes. Which Pod scheduling configuration ensures this?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Configure node affinity with requiredDuringSchedulingIgnoredDuringExecution to match 'environment: prod'

    Using node affinity with requiredDuringSchedulingIgnoredDuringExecution strictly binds the Pod to nodes matching the specific label. Option D fails because anti-affinity rules only prevent scheduling relative to other Pods, not against node labels.

  39. Question 39 of 318What takes place in a Kubernetes cluster when a CronJob reaches its scheduled execution time?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. The CronJob controller spawns a Job, which is then processed by the Job controller to create a Pod

    When triggered, the CronJob controller generates a Job object, which the Job controller uses to create Pods. Remember that controllers operate hierarchically; the CronJob does not directly create Pods, ensuring workload reliability.

  40. Question 40 of 318Which kubectl command is used to view the logs of a terminated container in a multi-container pod in Kubernetes?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. kubectl logs [pod-name] -c [container-name] -p

    The kubectl logs command requires the previous flag to retrieve outputs from a terminated container. Without this specific flag, kubectl attempts to fetch logs from the currently running instance, which fails for crashed containers.

  41. Question 41 of 318In a Kubernetes environment, which software is widely used as a lightweight proxy to handle traffic management between microservices?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Envoy

    Envoy is a modern, high-performance proxy built specifically for microservices and service meshes. Prometheus and Grafana handle monitoring and visualization, while Fluentd focuses on logging, not routing network traffic.

  42. Question 42 of 318Which architectural pattern in cloud computing allows you to build and run applications and services without managing infrastructure, typically billed based on usage rather than pre-allocated capacity?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Serverless

    Serverless computing abstracts the underlying infrastructure away from the developer and bills based on actual execution time. Microservices and containerization represent application architectures, but still require you to manage the infrastructure scaling directly.

  43. Question 43 of 318What is the primary function of a ConfigMap in Kubernetes pod configuration?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Supplying non-sensitive settings to containers through environment variables or mounted files

    ConfigMaps inject non-sensitive configuration data into pods via environment variables or mounted volumes. For sensitive data like passwords or tokens, you must use Kubernetes Secrets instead to ensure secure handling.

  44. Question 44 of 318In a Kubernetes cluster, several Pods report 'temporary failure in name resolution' when calling an internal service. What is the most effective first step to verify whether cluster DNS is working correctly from the Pod perspective?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Exec into one of the failing Pods or start a temporary debug Pod and run dig or nslookup for the target service name

    Testing DNS resolution from inside the affected pod verifies the exact network path and configuration the application uses. Checking CoreDNS logs is useful later, but it does not validate end-to-end resolution from the pod perspective.

  45. Question 45 of 318What is a fundamental difference in how Helm and Kustomize handle environment-specific configurations?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Kustomize allows defining environment-specific patches without altering the base, whereas Helm uses value files to parameterize templates.

    Kustomize applies environment-specific overlays to base manifests without altering the base files themselves. Helm relies on templated manifests combined with values files to substitute variables dynamically during deployment.

  46. Question 46 of 318A financial services firm must deploy Kubernetes Pods exclusively on nodes labeled 'compliance: pci-dss' for audit purposes. Which configuration enforces this requirement?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Specify nodeSelector: 'compliance: pci-dss' in the Pod spec

    Using nodeSelector in the pod spec directly constrains the scheduler to place pods only on nodes with the matching label. Tolerations allow pods to schedule onto tainted nodes but do not strictly enforce placement on specific labeled nodes.

  47. Question 47 of 318In a Kubernetes cluster, which API feature and configuration most directly prevent pods from running with elevated privileges across all namespaces and is the best practice?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Enable the Pod Security Admission controller and label all namespaces with pod-security.kubernetes.io/enforce=restricted

    The Pod Security Admission controller enforces security profiles like restricted to prevent privilege escalation cluster-wide. PodSecurityPolicy was deprecated and removed in recent Kubernetes versions, making it an obsolete distractor.

  48. Question 48 of 318What is true about Pod-to-Pod communication within the same node in Kubernetes?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Pods use direct, NAT-less networking for communication on the same node

    Kubernetes requires pods to communicate directly without network address translation, whether on the same node or across nodes. Every pod receives a unique IP address, allowing seamless routing without relying on port mapping.

  49. Question 49 of 318During a deployment of a real-time analytics platform on Kubernetes, the data-ingester pods are stuck in CrashLoopBackOff. As the site reliability engineer, which action should you prioritize to identify the cause?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Inspect pod-specific events using kubectl describe

    Using kubectl describe is the primary step because it surfaces pod-level events, exit codes, and configuration issues driving the crash. While container logs provide internal application output, events explain why Kubernetes is repeatedly restarting the container.

  50. Question 50 of 318Which of the following provides highly scalable distributed storage with support for block, object, and file interfaces?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Ceph

    Ceph is a highly scalable distributed storage system offering unified block, object, and file interfaces. The other options are either cloud-native storage orchestrators like Rook, or alternative systems like GlusterFS and OpenEBS that do not natively support all three modes simultaneously.

  51. Question 51 of 318To enforce the Restricted profile of the Pod Security Standards across all pods in a namespace, which Kubernetes resource should be configured?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Apply a Label to the namespace that enables the Restricted profile.

    The built-in Pod Security Admission controller is triggered by adding specific labels like 'pod-security.kubernetes.io/enforce=restricted' to the namespace. While a custom webhook could achieve this, namespace labels are the standard Kubernetes method.

  52. Question 52 of 318What does IaC stand for in the context of cloud computing and DevOps?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Infrastructure as Code

    Infrastructure as Code defines cloud resources declaratively or imperatively through machine-readable files. For the KCNA exam, associate IaC strictly with Terraform or Ansible rather than manual click-ops.

  53. Question 53 of 318In a cloud-native environment, which persona is typically responsible for the creation and execution of an incident management procedure?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Site Reliability Engineer (SRE)

    Site Reliability Engineers own system reliability and lead incident responses to minimize downtime. While DevOps focuses on delivery pipelines, SRE specifically applies service level objectives to production operations.

  54. Question 54 of 318A Kubernetes cluster has nodes labeled with 'gpu=true' for GPU-equipped nodes. A team needs to run a Pod that requires a GPU and must run on one of these nodes. Which node affinity configuration ensures the Pod is scheduled only on a node with the GPU label?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Require node with label 'gpu=true'

    Using required rules enforces strict scheduling constraints for pods needing specialized hardware. Prefer rules only apply soft constraints, allowing the scheduler to place the pod anywhere if capacity is limited.

  55. Question 55 of 318A healthcare application requires Kubernetes Pods to run only on nodes tagged with 'data-classification: confidential' to meet regulatory requirements. Which configuration ensures strict adherence to this policy?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Use a nodeSelector with the label 'data-classification: confidential' in the Pod template

    Using a nodeSelector with the appropriate label strictly constrains the Pod to nodes matching that specific tag. While node affinity could also work, nodeSelector is the simplest and most direct mechanism for strict label matching.

  56. Question 56 of 318In Kubernetes, what is a sidecar container?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. A container that runs alongside the main container to handle administrative tasks

    A sidecar container runs alongside the main container within the same Pod to handle supporting tasks like logging or monitoring. Option B describes the primary application container, whereas the sidecar augments it without running the core workload.

  57. Question 57 of 318As Kubernetes has evolved, which API standardizes the configuration of L4 and L7 traffic management, including load balancing and TLS, while allowing for vendor-specific implementations?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Gateway API

    The Gateway API provides a standardized, extensible interface for managing L4 and L7 traffic routing in Kubernetes. NetworkPolicy is limited to L3 and L4 access control, lacking the advanced routing capabilities defined by the Gateway API.

  58. Question 58 of 318What are the core features typically provided by a service mesh in a cloud-native environment?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Managing network traffic between services

    A service mesh primarily manages service-to-service communication, offering capabilities like load balancing and encryption. Option D fails because monitoring is merely an observability byproduct rather than the core traffic management function.

  59. Question 59 of 318Which resources are commonly cleaned up automatically by the Kubernetes garbage collector?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Orphaned ReplicaSets, Completed Jobs, Terminated Pods

    The garbage collector automatically removes orphaned or finished resources like terminated Pods and completed Jobs. The other options contain active resources that the cluster still requires, so they are intentionally preserved.

  60. Question 60 of 318What is the maximum number of pods allowed per node in Kubernetes?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. 110

    The default maximum pods per node in Kubernetes is one hundred and ten. This is enforced by the default IP address allocation range, and while it can be modified, the default limit remains a key exam detail.

  61. Question 61 of 318In Kubernetes, which authorization mode is known for offering detailed control over what specific actions can be performed on different resources within the cluster?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Role-Based Access Control (RBAC)

    Role-Based Access Control grants granular control by binding users or service accounts to specific permissions defined by roles. ABAC is largely deprecated in modern clusters because it is difficult to manage and lacks flexible policy updates.

  62. Question 62 of 318Which API group must be available in the cluster for resource metrics (CPU and memory) to be queried?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. metrics.k8s.io

    The metrics.k8s.io API exposes resource consumption data gathered by the Metrics Server. This endpoint is required for core features like kubectl top to function and provides the essential telemetry needed for Horizontal Pod Autoscaling operations.

  63. Question 63 of 318For how long is the Kubernetes API guaranteed to be backward compatible following a release?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. 1 year

    According to official deprecation policy, Kubernetes guarantees API backward compatibility for one year. However, specific graduated stable APIs can be supported much longer, making this policy-specific question slightly ambiguous.

  64. Question 64 of 318In the context of Kubernetes configuration files and manifests, what types of objects are Services and Pods typically represented as?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. YAML Objects

    Kubernetes manifests are typically written using YAML to declaratively represent objects like Pods and Services. Although the API server ultimately accepts and processes JSON payloads, YAML remains the industry standard for human-readable configuration files.

Study on mobile

Get CertPunch for iOS or Android.

Website sessions are saved in this browser tab. They do not transfer to the apps.

Scroll to Top