Free practice · No sign-up required

Cloud Native Platform Engineering Associate free practice test

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

Question 1 of 15

Which of the following best describes a container image?

Show hint

Understand core container concepts and image fundamentals.

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. Which of the following best describes a container image?

    1. A lightweight, standalone, and executable software package that includes code, runtime, libraries, and settings.

    2. A virtual machine that includes a full operating system.

    3. A hardware abstraction layer provided by the host kernel.

    4. A network protocol for container communication.

    Show answer and explanation

    Correct answer

    • A lightweight, standalone, and executable software package that includes code, runtime, libraries, and settings.

    A container image packages application code and dependencies into a single artifact that can run consistently across environments. It is not a virtual machine or a network protocol.

  2. What is the primary purpose of a container runtime?

    1. To manage the lifecycle of containers and isolate processes.

    2. To compile source code into executable binaries.

    3. To provide persistent storage for applications.

    4. To define network policies for microservices.

    Show answer and explanation

    Correct answer

    • To manage the lifecycle of containers and isolate processes.

    A container runtime is responsible for starting, stopping, and isolating containers on a host. It does not handle compilation or persistent storage by itself.

  3. Which statement about Kubernetes namespaces is true?

    1. Namespaces provide scope for resources and help organize cluster objects.

    2. Namespaces isolate resources at the hardware level.

    3. Namespaces are used to encrypt communication between pods.

    4. Namespaces can only contain a single pod.

    Show answer and explanation

    Correct answer

    • Namespaces provide scope for resources and help organize cluster objects.

    Namespaces partition cluster resources and objects for multiple users or projects. They do not offer hardware isolation or encryption by default.

  4. What does a Kubernetes Deployment primarily manage?

    1. The desired state for pods and ensures specified replicas are running.

    2. Persistent volumes and storage classes.

    3. Network routing between services.

    4. Authentication and role-based access control.

    Show answer and explanation

    Correct answer

    • The desired state for pods and ensures specified replicas are running.

    A Deployment manages pod replicas and updates, ensuring the cluster matches the declared desired state. It does not manage storage or networking directly.

  5. Which component is responsible for scheduling pods in a Kubernetes cluster?

    1. The kube-scheduler.

    2. The kube-apiserver.

    3. The kubelet.

    4. The container runtime.

    Show answer and explanation

    Correct answer

    • The kube-scheduler.

    The kube-scheduler assigns newly created pods to nodes based on resource availability and constraints. Other components handle API, node-agent, or runtime tasks.

  6. What is a common use case for a ConfigMap?

    1. To inject configuration data such as environment variables or configuration files into pods.

    2. To store sensitive credentials securely.

    3. To define persistent storage volumes.

    4. To manage network ingress rules.

    Show answer and explanation

    Correct answer

    • To inject configuration data such as environment variables or configuration files into pods.

    ConfigMaps hold non-confidential configuration data that applications can consume. Secrets are used for sensitive data, not ConfigMaps.

  7. Which practice aligns with the principles of immutable infrastructure?

    1. Updating existing running containers with new code instead of replacing them.

    2. Rebuilding and replacing containers to deploy changes.

    3. Storing application state directly on the container filesystem.

    4. Sharing writable layers between containers.

    Show answer and explanation

    Correct answer

    • Rebuilding and replacing containers to deploy changes.

    Immutable infrastructure treats deployed instances as ephemeral and replaces them for updates rather than modifying them in place.

  8. What is the role of a service in Kubernetes?

    1. To provide a stable endpoint for accessing a set of pods.

    2. To build container images from source code.

    3. To manage node-level resource allocation.

    4. To define cluster-wide security policies.

    Show answer and explanation

    Correct answer

    • To provide a stable endpoint for accessing a set of pods.

    A service abstracts access to pods and provides a consistent network endpoint, typically via a stable IP and DNS name.

  9. Which of the following is a benefit of declarative configuration?

    1. You describe the desired state and the system works to achieve it automatically.

    2. It requires manual intervention for every change.

    3. It only works with imperative command-line tools.

    4. It eliminates the need for version control.

    Show answer and explanation

    Correct answer

    • You describe the desired state and the system works to achieve it automatically.

    Declarative configuration allows users to specify the desired outcome, enabling automation and consistency. It is well-suited for infrastructure management.

  10. Question 10

    Link to question

    What does a pod typically contain?

    1. One or more containers that share storage and network resources.

    2. Multiple nodes from different clusters.

    3. A complete operating system image.

    4. A persistent database instance.

    Show answer and explanation

    Correct answer

    • One or more containers that share storage and network resources.

    A pod is the smallest deployable unit in Kubernetes and can host one or more tightly coupled containers sharing network and storage.

  11. Question 11

    Link to question

    Which tool is commonly used for defining and applying Kubernetes manifests?

    1. kubectl apply

    2. docker build

    3. helm package

    4. kubelet status

    Show answer and explanation

    Correct answer

    • kubectl apply

    kubectl apply is used to create or update resources defined in YAML manifests. Other tools serve different purposes such as building images or managing releases.

  12. Question 12

    Link to question

    What is a key characteristic of a sidecar container pattern?

    1. It runs alongside a primary container to extend its functionality.

    2. It replaces the main container at runtime.

    3. It only runs during cluster initialization.

    4. It isolates the main container from the network entirely.

    Show answer and explanation

    Correct answer

    • It runs alongside a primary container to extend its functionality.

    A sidecar container augments the primary container by providing logging, monitoring, or networking features without changing the main application.

  13. Question 13

    Link to question

    Which practice helps ensure high availability in a cluster?

    1. Distributing replicas across multiple nodes and zones.

    2. Running all workloads on a single node.

    3. Using only one control plane instance.

    4. Disabling automated backups.

    Show answer and explanation

    Correct answer

    • Distributing replicas across multiple nodes and zones.

    High availability is improved by spreading replicas and control plane components across failure domains such as nodes and zones.

  14. Question 14

    Link to question

    What is the purpose of health checks in containerized applications?

    1. To determine if a container is running correctly and ready to serve traffic.

    2. To measure network latency between containers.

    3. To encrypt data at rest.

    4. To compile application code during runtime.

    Show answer and explanation

    Correct answer

    • To determine if a container is running correctly and ready to serve traffic.

    Health checks allow orchestrators to monitor container status and restart or route traffic based on readiness and liveness.

  15. Question 15

    Link to question

    Which statement best describes infrastructure as code?

    1. Managing infrastructure through version-controlled configuration files.

    2. Manually configuring servers via graphical consoles.

    3. Using physical documentation to guide deployments.

    4. Storing infrastructure definitions in spreadsheets.

    Show answer and explanation

    Correct answer

    • Managing infrastructure through version-controlled configuration files.

    Infrastructure as code treats infrastructure definitions as software, enabling reproducibility and change tracking through version control.

Read all flashcards

Recall the answer before opening each card.

What is a container image?

A lightweight, standalone, executable package that includes code, runtime, libraries, and settings for consistent execution across environments.

What is the primary purpose of a container runtime?

To manage the lifecycle of containers and isolate processes on a host, enabling starting, stopping, and resource isolation.

How do Kubernetes namespaces help organize resources?

Namespaces provide scope for resources, allowing multiple users or projects to coexist in a cluster without resource name conflicts.

What does a Kubernetes Deployment primarily manage?

It manages the desired state for pods, ensuring the specified number of replicas are running and handling rolling updates.

Which component is responsible for scheduling pods in Kubernetes?

The kube-scheduler assigns newly created pods to nodes based on resource availability, constraints, and policies.

What is a common use case for a ConfigMap?

Injecting non-sensitive configuration data such as environment variables or configuration files into pods at runtime.

What practice aligns with immutable infrastructure?

Rebuilding and replacing containers to deploy changes, rather than modifying them in place, preserves consistency and reliability.

What is the role of a Service in Kubernetes?

To provide a stable endpoint (IP and DNS name) for accessing a set of pods, abstracting pod IP changes.

What benefit does declarative configuration offer?

Users describe the desired state, and the system automatically works to achieve and maintain that state, enabling automation and consistency.

What does a pod typically contain?

One or more tightly coupled containers that share storage volumes, network resources, and a specification for how to run them.

Which tool is used to apply Kubernetes manifests?

kubectl apply creates or updates resources in a cluster based on YAML or JSON manifests.

What is a key characteristic of the sidecar container pattern?

It runs alongside a primary container to extend functionality (e.g., logging, monitoring) without altering the main application.

How does distributing replicas improve high availability?

By spreading replicas across multiple nodes and zones, failure of one node or zone does not cause total service outage.

What is the purpose of health checks in containers?

To determine if a container is running correctly (liveness) and ready to serve traffic (readiness), enabling automatic recovery and traffic routing.

What is Infrastructure as Code?

Managing and provisioning infrastructure through version-controlled, machine-readable definition files, enabling reproducibility and change tracking.

How does a container runtime differ from a hypervisor?

A container runtime runs containers on the host kernel, while a hypervisor creates and manages virtual machines with separate OS instances.

What is the smallest deployable unit in Kubernetes?

A pod, which can house one or more containers with shared network and storage, is the atomic unit of scheduling.

How does kubectl apply enforce desired state?

kubectl apply sends the manifest to the API server; the system reconciles the current state to the desired state through controllers.

Why is rebuilding containers preferred over patching?

Immutable infrastructure ensures the deployment environment remains consistent and avoids configuration drift, making updates and rollbacks safer.

What do readiness probes achieve in Kubernetes?

They indicate whether a pod is ready to accept traffic; if not, the Service removes it from endpoints, preventing service disruption.

Active recall deck

Practice Cloud Native Platform Engineering 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 Cloud Native Platform Engineering 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.

Cloud Native Platform Engineering Associate15 questions in this practice set
Understand core container concepts and image fundamentals.(1)
Identify the role of container runtimes in executing containers.(1)
Understand how namespaces organize and scope Kubernetes resources.(1)
Recognize the purpose of Deployments in workload management.(1)
Identify the core scheduling component in Kubernetes architecture.(1)
Understand how configuration data is managed and injected into containers.(1)
Apply immutable infrastructure concepts to deployment practices.(1)
Understand how services enable network access to workloads.(1)
Recognize the advantages of declarative approaches in platform engineering.(1)
Identify the basic unit of scheduling and execution in Kubernetes.(1)
Understand common command-line tools for managing Kubernetes resources.(1)
Recognize common container design patterns in cloud native applications.(1)
More practice connections(3)
Exam-focused analysis

What this CNPA 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.

Core Container and Runtime Fundamentals

This section covers the foundational concepts of containerization. A container image is a lightweight, standalone package containing code and all dependencies. The container runtime manages the lifecycle and isolation of containers. Understanding these basics is critical for platform engineering because they underpin all orchestration and deployment decisions. The practice bank emphasizes the difference between containers and virtual machines and the role of the runtime in process isolation.

  • Container images package code and dependencies into a single executable artifact.
  • Container runtimes handle starting, stopping, and isolating containers.
  • Containers are not virtual machines; they share the host OS kernel.

Kubernetes Resource Organization and Workloads

Namespaces provide scope for resources, helping organize multi-tenant clusters. Deployments manage pod replicas and updates declaratively. The kube-scheduler assigns pods to nodes. Services provide stable endpoints for accessing pods. ConfigMaps inject configuration data. Pods are the smallest deployable units. The practice bank tests the ability to select the right resource for a given purpose and understand how they interact.

  • Namespaces partition cluster objects but don't provide hardware isolation.
  • Deployments ensure desired pod state; they don't manage storage or networking.
  • Services abstract pod IPs via stable DNS and IP endpoints.

Declarative Configuration and Immutable Infrastructure

Declarative configuration lets you define desired state, and the system reconciles to it. Immutable infrastructure replaces instances rather than modifying them in place. Infrastructure as code manages infrastructure via version-controlled config files. The practice bank tests these principles through questions on kubectl apply, ConfigMaps, and the sidecar pattern. These practices enable reproducibility, automation, and resilience in platform engineering.

  • Declarative configuration reduces drift and enables automation.
  • Immutable infrastructure improves reliability by avoiding in-place changes.
  • Infrastructure as code uses version control for reproducibility.

Resilience and Application Health

High availability is achieved by distributing replicas across nodes and zones. Health checks (liveness and readiness probes) determine if containers are operating correctly and ready to serve traffic. The sidecar pattern extends primary container functionality without modifying the application. The practice bank verifies understanding of these resilience patterns, which are essential for building robust cloud native systems.

  • Distribute replicas across failure domains for high availability.
  • Health checks enable automatic restart and traffic routing.
  • Sidecar containers augment the main container (e.g., for logging, monitoring).

Study workflow

Turn one CNPA attempt into a study plan

  1. 1

    Master Container Basics

    Review the definition of a container image and its distinction from a virtual machine. Understand the role of the container runtime. Practice identifying which component handles process isolation versus networking or storage.

  2. 2

    Learn Kubernetes Resource Hierarchy

    Familiarize yourself with Pod, Service, Deployment, Namespace, ConfigMap, and Secret. Use kubectl explain for each resource. Understand how they relate and when to use each. Focus on the purpose of each resource as per the practice bank.

  3. 3

    Practice Declarative Management

    Write YAML manifests for a typical application: Deployment with replicas and labels, Service with selector, and ConfigMap for environment variables. Apply with kubectl apply and observe desired state reconciliation. Compare with imperative commands to solidify the concept.

  4. 4

    Study Immutable Infrastructure Patterns

    Understand why rebuilding and replacing containers is preferred over patching. Explore the sidecar pattern by deploying a simple application alongside a logging sidecar. Test how to update applications by rolling out new versions via Deployment updates.

  5. 5

    Implement Health Checks and High Availability

    Add liveness and readiness probes to a Deployment manifest. Experiment with multi-node clusters to distribute replicas. Verify that Kubernetes restarts unhealthy pods and routes traffic only to ready pods. Relate these practices to high availability.

FAQ

Questions about this CNPA practice page

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

What is the primary difference between a container and a virtual machine?+

Containers share the host OS kernel and are lightweight, starting in seconds. Virtual machines include a full OS and hypervisor, making them heavier but offering stronger isolation. Container runtimes manage process isolation without hardware emulation.

When should I use a ConfigMap versus a Secret in Kubernetes?+

Use ConfigMap for non-sensitive configuration data like environment variables or config files. Use Secret for sensitive data such as passwords or API keys, as Secrets are base64-encoded and can be encrypted at rest. Both inject data into pods.

How does the kube-scheduler decide where to place a pod?+

The kube-scheduler considers resource requirements (CPU, memory), node constraints (taints, tolerations), affinity rules, and data locality. It selects a node that can satisfy the pod's resource needs and policies, then updates the API server with the binding.

What does it mean to practice immutable infrastructure?+

Immutable infrastructure treats servers and containers as disposable. Changes are made by replacing entire instances rather than modifying existing ones. This eliminates configuration drift, simplifies rollbacks, and improves consistency across environments.

Why are health checks important in container orchestration?+

Health checks allow the orchestrator to detect when a container is unresponsive or not ready to serve traffic. Liveness probes restart deadlocked containers; readiness probes control traffic routing. This ensures high availability and self-healing of applications.

Keep studying

Build the next review session

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