Free practice · No sign-up required

Kubernetes and Cloud Native Associate free practice test

15 questions with answer explanations. Choose an answer below to begin.

Question 1 of 15

What does a container primarily provide in application deployment?

Show hint

1.1 Understand container fundamentals and their role in application packaging

0/15 answered · Bookmark questions to review later. Focus the practice area to use keys 1–9 and Enter.

Learn by doing

Put your answers into practice

Use official documentation and hands-on labs to work through topics you missed.

Explore all study resources →
Kubernetes application examples

Application examples from the Kubernetes project for practicing manifests and application behavior in a cluster.

Try it: Use a disposable cluster. Read a simple application's manifests, predict which Pods its Service selects, then change a label and use kubectl to diagnose the resulting connectivity problem.

Source is free. A local cluster uses your computer; hosted clusters may incur charges.

Kubernetes official tutorials

Guided tutorials for learning Kubernetes behavior and building practical skills beyond multiple-choice recall.

Try it: Complete a basic application tutorial. Repeat the task without the walkthrough, then explain the difference between declared configuration and observed cluster state.

Documentation is free. Your chosen cluster environment may have costs.

All questions and explanations

Prefer to read at your own pace? Work through each question below, then open its answer to check your reasoning. You can link directly to a question or print this reference.

  1. What does a container primarily provide in application deployment?

    1. Isolated runtime environment

    2. Physical server allocation

    3. Network routing rules

    4. Persistent storage volumes

    Show answer and explanation

    Correct answer

    • Isolated runtime environment

    Containers package application code and dependencies into a lightweight, isolated unit that shares the host OS kernel. This isolation ensures consistent behavior across different environments.

  2. Which component is responsible for scheduling workloads onto nodes in a Kubernetes cluster?

    1. kube-scheduler

    2. kube-apiserver

    3. kubelet

    4. etcd

    Show answer and explanation

    Correct answer

    • kube-scheduler

    The kube-scheduler watches newly created pods without assigned nodes and selects an appropriate node based on resource availability and policies. It ensures optimal placement within the cluster.

  3. What is the primary purpose of a Kubernetes Namespace?

    1. To partition cluster resources for different teams or projects

    2. To increase the maximum number of nodes

    3. To store container images

    4. To define network policies for external traffic

    Show answer and explanation

    Correct answer

    • To partition cluster resources for different teams or projects

    Namespaces provide a scope for names and help organize cluster resources for multiple users, teams, or environments. They do not offer full security isolation but aid in resource management.

  4. Which resource definition is used to run a single instance of a pod with a predefined specification?

    1. Deployment

    2. Job

    3. Pod

    4. StatefulSet

    Show answer and explanation

    Correct answer

    • Pod

    A Pod is the smallest deployable unit in Kubernetes, representing one or more containers that share storage and network. It directly describes the desired state for a single instance workload.

  5. What is a common use case for a Kubernetes Service of type ClusterIP?

    1. Expose an application to external internet traffic

    2. Enable communication between pods within the cluster

    3. Provide a static external IP for load balancing

    4. Route traffic based on URL path patterns

    Show answer and explanation

    Correct answer

    • Enable communication between pods within the cluster

    ClusterIP is the default service type that exposes the service on an internal cluster IP, making it reachable only from within the cluster. It is ideal for backend pod communication.

  6. Which practice helps ensure that a container starts and runs correctly in a Kubernetes environment?

    1. Defining appropriate liveness and readiness probes

    2. Using the latest untagged image version

    3. Setting the container security context to run as root

    4. Mounting all host directories

    Show answer and explanation

    Correct answer

    • Defining appropriate liveness and readiness probes

    Probes allow Kubernetes to check container health and readiness. Liveness probes restart unhealthy containers, while readiness probes control traffic routing to pods.

  7. What is the main function of etcd in a Kubernetes cluster?

    1. Reliable distributed key-value store for cluster state

    2. Network traffic routing between nodes

    3. Container image storage and distribution

    4. User authentication and role management

    Show answer and explanation

    Correct answer

    • Reliable distributed key-value store for cluster state

    etcd is a consistent and highly-available key-value store used as Kubernetes' backing store for all cluster data. The API server reads and writes cluster state to etcd.

  8. Which resource allows you to store and manage sensitive information such as passwords?

    1. Secret

    2. ConfigMap

    3. Volume

    4. Environment variable

    Show answer and explanation

    Correct answer

    • Secret

    Secrets are designed to hold sensitive data like passwords, tokens, or keys. They are base64-encoded and stored in etcd, meant to be consumed by pods securely.

  9. What does a node in Kubernetes typically represent?

    1. A physical or virtual machine

    2. A container registry

    3. A network policy

    4. A cluster role binding

    Show answer and explanation

    Correct answer

    • A physical or virtual machine

    A node is a worker machine in Kubernetes, either a physical or virtual machine, where containers are scheduled and run. The kubelet manages the node.

  10. Question 10

    Link to question

    Which resource is best suited for managing batch-oriented, short-lived tasks?

    1. CronJob

    2. Deployment

    3. DaemonSet

    4. Job

    Show answer and explanation

    Correct answer

    • Job

    A Job is designed to run one or more pods to completion, ensuring a specified number of pods successfully terminate. It is ideal for batch processing tasks.

  11. Question 11

    Link to question

    What is the purpose of a readiness probe in a container?

    1. To determine if the container should be restarted

    2. To check if the container is ready to accept traffic

    3. To measure resource usage for billing

    4. To enforce security policies

    Show answer and explanation

    Correct answer

    • To check if the container is ready to accept traffic

    Readiness probes signal whether a container is prepared to handle requests. Pods are not added to service endpoints until they pass readiness checks.

  12. Question 12

    Link to question

    Which of the following is a recommended practice for securing a Kubernetes API server?

    1. Allow unrestricted access from any network

    2. Use strong authentication and authorization policies

    3. Disable all logging mechanisms

    4. Run the API server on the default insecure port

    Show answer and explanation

    Correct answer

    • Use strong authentication and authorization policies

    Securing the API server involves using authentication methods like tokens or certificates and authorization policies such as RBAC. Limiting network exposure is also critical.

  13. Question 13

    Link to question

    What is the role of a ConfigMap in Kubernetes?

    1. To store non-confidential data in key-value pairs for configuration

    2. To manage persistent storage volumes

    3. To schedule pods across nodes

    4. To define network ingress rules

    Show answer and explanation

    Correct answer

    • To store non-confidential data in key-value pairs for configuration

    ConfigMaps decouple configuration artifacts from image content, allowing environment-specific settings to be injected into pods. They are not suitable for sensitive data.

  14. Question 14

    Link to question

    Which control plane component continuously monitors the cluster state and makes adjustments to move the current state toward the desired state?

    1. Controller Manager

    2. Scheduler

    3. kube-proxy

    4. API Server

    Show answer and explanation

    Correct answer

    • Controller Manager

    The Controller Manager runs control loops that watch the shared state of the cluster through the API server and makes changes to move the current state toward the desired state.

  15. Question 15

    Link to question

    What is the main benefit of using immutable infrastructure patterns in containerized deployments?

    1. Simplifies rollback by replacing rather than modifying running instances

    2. Reduces the need for container registries

    3. Eliminates the requirement for health checks

    4. Enables direct SSH access to running containers

    Show answer and explanation

    Correct answer

    • Simplifies rollback by replacing rather than modifying running instances

    Immutable infrastructure replaces instances with new ones that include the desired changes, simplifying rollbacks and reducing configuration drift.

Read all flashcards

Recall the answer before opening each card.

What is the primary benefit of containers in deployment?

Containers provide a lightweight, isolated runtime environment that packages app code and dependencies, ensuring consistent behavior across different environments.

Which Kubernetes component schedules pods onto nodes?

The kube-scheduler watches for unscheduled pods and selects an appropriate node based on resource availability and policies.

What is the purpose of a Kubernetes Namespace?

Namespaces partition cluster resources among multiple users, teams, or projects, providing scoping for names but not full security isolation.

What is a Pod in Kubernetes?

A Pod is the smallest deployable unit, representing one or more containers that share storage, network, and a specification for running.

Which service type is used for internal pod communication?

ClusterIP is the default service type that exposes the service on an internal IP, making it reachable only from within the cluster.

What do liveness and readiness probes check?

Liveness probes check if a container is healthy and restarts it if not. Readiness probes check if a container is ready to accept traffic.

What is etcd's role in a Kubernetes cluster?

etcd is a consistent, highly-available key-value store that serves as the backing store for all cluster data, storing configuration and state.

Which resource stores sensitive data like passwords?

A Secret is designed to hold sensitive data such as passwords, tokens, or keys, stored base64-encoded in etcd.

What does a node represent in Kubernetes?

A node is a worker machine (physical or virtual) managed by the kubelet, where containers are scheduled and run.

Which resource is used for batch-oriented tasks?

A Job runs one or more pods to completion, ensuring a specified number of pods successfully terminate for batch processing.

What does a readiness probe indicate?

It indicates whether a container is prepared to handle requests. Pods are removed from service endpoints until they pass readiness checks.

How can you secure the Kubernetes API server?

Use strong authentication (tokens/certificates) and authorization policies like RBAC. Limit network exposure to trusted sources.

What is a ConfigMap used for?

A ConfigMap stores non-confidential configuration data in key-value pairs, allowing environment-specific settings to be injected into pods.

Which component reconciles current state to desired state?

The Controller Manager runs control loops that watch cluster state via the API server and make changes to achieve the desired state.

What is the main benefit of immutable infrastructure?

It simplifies rollbacks by replacing instances with new ones instead of modifying them, reducing configuration drift.

What is the smallest deployable unit in Kubernetes?

The Pod is the smallest deployable unit, encapsulating one or more containers with shared storage and network.

Which service type exposes a service externally?

ClusterIP is internal only; for external exposure, use NodePort, LoadBalancer, or Ingress. The question did not cover these, but know the distinction.

What type of data should not be stored in a ConfigMap?

Sensitive data like passwords, tokens, or SSH keys should not be stored in ConfigMaps; use Secrets instead.

What happens if a liveness probe fails?

The kubelet kills the container and restarts it based on the pod's restart policy, helping maintain container health.

What is the default service type in Kubernetes?

The default service type is ClusterIP, which exposes the service on a cluster-internal IP.

Active recall deck

Practice Kubernetes and Cloud Native Associate with real flashcards

Read the prompt, commit to an answer, then flip the card. Move through the deck at your own pace and repeat any topic that does not come back quickly.

20 free cards

Card 1 of 20

1 reviewed this session

Connect the concepts

Your Kubernetes and Cloud Native Associate study mind map

Open a branch to connect a topic with its practice questions and explanations. Use the map to choose your next review topic.

Kubernetes and Cloud Native Associate15 questions in this practice set
1.1 Understand container fundamentals and their role in application packaging(1)
4.2 Describe the role of the control plane components(1)
4.1 Use namespaces to organize cluster resources(1)
4.3 Understand core workload resources and their typical use cases(2)
4.4 Define and expose applications using services(1)
4.5 Implement health checks to manage container lifecycle(2)
4.1 Describe the architecture and components of the control plane(2)
4.6 Manage sensitive data using secrets and configmaps(2)
3.1 Understand node components and their responsibilities(1)
Understand the responsibilities of core Kubernetes control plane components.(1)
Practice focus 15(1)
Exam-focused analysis

What this KCNA practice set measures

This is an analysis of the practice bank, not a claim about the vendor's live exam blueprint. Use it to identify the knowledge, judgment, and recall patterns exercised here, then verify your coverage against the current official exam guide.

Container and Cluster Fundamentals

The practice bank tests foundational understanding of containers as isolated runtime environments that share the host OS kernel, providing consistency across deployments. It also covers the physical/virtual machine role of Kubernetes nodes and the importance of etcd as the reliable cluster state store. These concepts are essential for grasping how applications are packaged and how the cluster maintains its desired state.

  • Containers provide lightweight isolation for applications and dependencies.
  • Nodes are worker machines (physical or virtual) where pods run.
  • etcd is the distributed key-value store holding all cluster data.

Control Plane and Scheduling

Questions on kube-scheduler and controller manager illustrate how the control plane ensures workloads are placed appropriately and the cluster state converges to the desired state. The scheduler selects nodes for pods based on resources and policies, while the controller manager runs control loops that react to state changes. Understanding these components is vital for cluster management and troubleshooting.

  • kube-scheduler assigns pods to nodes based on resource availability.
  • Controller Manager continuously reconciles current state to desired state.
  • Both are core control plane components that do not run on worker nodes.

Workloads and Service Exposure

This section focuses on Kubernetes workload resources: Pods for single-instance tasks, Jobs for batch processing, and Services (ClusterIP) for internal pod communication. Health probes (liveness and readiness) are tested for their roles in container lifecycle management—liveness restarts unhealthy containers, readiness controls traffic flow. Namespaces help organize resources across teams or projects.

  • A Pod is the smallest deployable unit representing one or more containers.
  • A Job ensures a specific number of pods complete successfully for batch tasks.
  • ClusterIP services enable internal cluster communication among pods.
  • Readiness probes determine if a pod should receive traffic; liveness probes restart unhealthy containers.
  • Namespaces partition cluster resources for multiple users or teams.

Configuration, Security, and Deployment Patterns

The practice bank covers storing non-sensitive configuration in ConfigMaps and sensitive data (passwords, tokens) in Secrets. API server security emphasizes strong authentication and authorization, such as RBAC. Immutable infrastructure patterns are highlighted for simplifying rollbacks by replacing instances instead of modifying them. These topics are critical for secure and maintainable cloud native deployments.

  • Secrets hold sensitive data like passwords; ConfigMaps store non-confidential configuration.
  • API server security relies on authentication (tokens/certificates) and authorization (RBAC).
  • Immutable infrastructure replaces instances, reducing configuration drift and enabling straightforward rollbacks.

Study workflow

Turn one KCNA attempt into a study plan

  1. 1

    Assess Your Baseline

    Go through the 15-question practice bank without hints first. Note which questions you answered correctly and which you missed. This identifies your weak areas (e.g., architecure, security, workloads). Focus your study on those topics.

  2. 2

    Deep Dive into Explanations

    For each question, read the explanation carefully—even for correct answers. The explanation often clarifies the reasoning and key distinctions (e.g., between liveness and readiness probes). Relate each explanation back to the corresponding hint topic.

  3. 3

    Review Core Kubernetes Components

    Use the hints and explanations to review the roles of the kube-scheduler, controller manager, etcd, and API server. Understand how they interact during pod scheduling and cluster state reconciliation. Draw a diagram if helpful.

  4. 4

    Practice with Hands-On Labs

    Reinforce concepts by creating sample resources in a live cluster (e.g., Minikube). Create Pods, Jobs, Secrets, ConfigMaps, and Services. Test liveness and readiness probes. This solidifies your understanding beyond theory.

  5. 5

    Create Your Own Flashcards

    Based on the flashcards provided here and your weak areas, generate additional flashcards. Use the official KCNA curriculum (as described in the hints) to cover any topics not in this practice bank, such as networking or storage.

FAQ

Questions about this KCNA practice page

Clear boundaries on what the bank covers, how to use it, and where official vendor information still matters.

What is the difference between a liveness probe and a readiness probe?+

A liveness probe checks if a container is healthy and should be restarted if it fails. A readiness probe checks if a container is ready to accept traffic; pods failing readiness are removed from service endpoints. Both are defined in the pod spec.

Why is etcd important in a Kubernetes cluster?+

etcd stores all cluster data, including configuration, state, and metadata. It is the single source of truth that the API server reads and writes. Without etcd, the cluster cannot maintain or recover its desired state.

When should I use a ConfigMap versus a Secret?+

Use a ConfigMap for non-sensitive configuration like environment variables or config files. Use a Secret for sensitive data such as passwords, tokens, or SSH keys. Secrets are base64-encoded and can be encrypted at rest.

Do Namespaces provide network isolation in Kubernetes?+

No, Namespaces primarily provide scoping for resource names and are used for organization (e.g., teams, environments). They do not enforce network isolation by default; network policies are required for that.

What is the benefit of immutable infrastructure in container deployments?+

Immutable infrastructure means instances are never modified after creation. Instead, new instances with changes are deployed and old ones destroyed. This simplifies rollbacks, eliminates configuration drift, and improves reliability.

Keep studying

Build the next review session

Browse another free bank or use the study strategy guide to turn your misses into spaced review.