Spring Sale Limited Time Flat 70% Discount offer - Ends in 0d 00h 00m 00s - Coupon code: 70spcl

Linux Foundation KCNA Kubernetes and Cloud Native Associate Exam Practice Test

Page: 1 / 24
Total 239 questions

Kubernetes and Cloud Native Associate Questions and Answers

Question 1

Which group of container runtimes provides additional sandboxed isolation and elevated security?

Options:

A.

rune, cgroups

B.

docker, containerd

C.

runsc, kata

D.

crun, cri-o

Question 2

What is the Kubernetes object used for running a recurring workload?

Options:

A.

Job

B.

Batch

C.

DaemonSet

D.

CronJob

Question 3

Which of the following is the correct command to run an nginx deployment with 2 replicas?

Options:

A.

kubectl run deploy nginx --image=nginx --replicas=2

B.

kubectl create deploy nginx --image=nginx --replicas=2

C.

kubectl create nginx deployment --image=nginx --replicas=2

D.

kubectl create deploy nginx --image=nginx --count=2

Question 4

Which of the following cloud native proxies is used for ingress/egress in a service mesh and can also serve as an application gateway?

Options:

A.

Frontend proxy

B.

Kube-proxy

C.

Envoy proxy

D.

Reverse proxy

Question 5

How does dynamic storage provisioning work?

Options:

A.

A user requests dynamically provisioned storage by including an existing StorageClass in their PersistentVolumeClaim.

B.

An administrator creates a StorageClass and includes it in their Pod YAML definition file without creating a PersistentVolumeClaim.

C.

A Pod requests dynamically provisioned storage by including a StorageClass and the Pod name in their PersistentVolumeClaim.

D.

An administrator creates a PersistentVolume and includes the name of the PersistentVolume in their Pod YAML definition file.

Question 6

What is Serverless computing?

Options:

A.

A computing method of providing backend services on an as-used basis.

B.

A computing method of providing services for AI and ML operating systems.

C.

A computing method of providing services for quantum computing operating systems.

D.

A computing method of providing services for cloud computing operating systems.

Question 7

Which of the following scenarios would benefit the most from a service mesh architecture?

Options:

A.

A few applications with hundreds of Pod replicas running in multiple clusters, each one providing multiple services.

B.

Thousands of distributed applications running in a single cluster, each one providing multiple services.

C.

Tens of distributed applications running in multiple clusters, each one providing multiple services.

D.

Thousands of distributed applications running in multiple clusters, each one providing multiple services.

Question 8

What is the API that exposes resource metrics from the metrics-server?

Options:

A.

custom.k8s.io

B.

resources.k8s.io

C.

metrics.k8s.io

D.

cadvisor.k8s.io

Question 9

In the DevOps framework and culture, who builds, automates, and offers continuous delivery tools for developer teams?

Options:

A.

Application Users

B.

Application Developers

C.

Platform Engineers

D.

Cluster Operators

Question 10

Which of the following options includes valid API versions?

Options:

A.

alpha1v1, beta3v3, v2

B.

alpha1, beta3, v2

C.

v1alpha1, v2beta3, v2

D.

v1alpha1, v2beta3, 2.0

Question 11

In CNCF, who develops specifications for industry standards around container formats and runtimes?

Options:

A.

Open Container Initiative (OCI)

B.

Linux Foundation Certification Group (LFCG)

C.

Container Network Interface (CNI)

D.

Container Runtime Interface (CRI)

Question 12

What is the purpose of the CRI?

Options:

A.

To provide runtime integration control when multiple runtimes are used.

B.

Support container replication and scaling on nodes.

C.

Provide an interface allowing Kubernetes to support pluggable container runtimes.

D.

Allow the definition of dynamic resource criteria across containers.

Question 13

What framework does Kubernetes use to authenticate users with JSON Web Tokens?

Options:

A.

OpenID Connect

B.

OpenID Container

C.

OpenID Cluster

D.

OpenID CNCF

Question 14

Which API object is the recommended way to run a scalable, stateless application on your cluster?

Options:

A.

ReplicaSet

B.

Deployment

C.

DaemonSet

D.

Pod

Question 15

When a Kubernetes Secret is created, how is the data stored by default in etcd?

Options:

A.

As Base64-encoded strings that provide simple encoding but no actual encryption.

B.

As plain text values that are directly stored without any obfuscation or additional encoding.

C.

As compressed binary objects that are optimized for space but not secured against access.

D.

As encrypted records automatically protected using the Kubernetes control plane master key.

Question 16

What Kubernetes control plane component exposes the programmatic interface used to create, manage and interact with the Kubernetes objects?

Options:

A.

kube-controller-manager

B.

kube-proxy

C.

kube-apiserver

D.

etcd

Question 17

Which Prometheus metric represents a single value that can go up and down?

Options:

A.

Counter

B.

Gauge

C.

Summary

D.

Histogram

Question 18

Which component of the node is responsible to run workloads?

Options:

A.

The kubelet.

B.

The kube-proxy.

C.

The kube-apiserver.

D.

The container runtime.

Question 19

Which option best represents the Pod Security Standards ordered from most permissive to most restrictive?

Options:

A.

Privileged, Baseline, Restricted

B.

Baseline, Privileged, Restricted

C.

Baseline, Restricted, Privileged

D.

Privileged, Restricted, Baseline

Question 20

What is a best practice to minimize the container image size?

Options:

A.

Use a DockerFile.

B.

Use multistage builds.

C.

Build images with different tags.

D.

Add a build.sh script.

Question 21

Which statement best describes the role of kubelet on a Kubernetes worker node?

Options:

A.

kubelet manages the container runtime and ensures that all Pods scheduled to the node are running as expected.

B.

kubelet configures networking rules on each node to handle traffic routing for Services in the cluster.

C.

kubelet monitors cluster-wide resource usage and assigns Pods to the most suitable nodes for execution.

D.

kubelet acts as the primary API component that stores and manages cluster state information.

Question 22

What is a Service?

Options:

A.

A static network mapping from a Pod to a port.

B.

A way to expose an application running on a set of Pods.

C.

The network configuration for a group of Pods.

D.

An NGINX load balancer that gets deployed for an application.

Question 23

Which of these events will cause the kube-scheduler to assign a Pod to a node?

Options:

A.

When the Pod crashes because of an error.

B.

When a new node is added to the Kubernetes cluster.

C.

When the CPU load on the node becomes too high.

D.

When a new Pod is created and has no assigned node.

Question 24

Which of the following is a valid PromQL query?

Options:

A.

SELECT * from http_requests_total WHERE job=apiserver

B.

http_requests_total WHERE (job="apiserver")

C.

SELECT * from http_requests_total

D.

http_requests_total(job="apiserver")

Question 25

Which of the following is a responsibility of the governance board of an open source project?

Options:

A.

Decide about the marketing strategy of the project.

B.

Review the pull requests in the main branch.

C.

Outline the project's “terms of engagement”.

D.

Define the license to be used in the project.

Question 26

What is the resource type used to package sets of containers for scheduling in a cluster?

Options:

A.

Pod

B.

ContainerSet

C.

ReplicaSet

D.

Deployment

Question 27

What is the default value for authorization-mode in Kubernetes API server?

Options:

A.

--authorization-mode=RBAC

B.

--authorization-mode=AlwaysAllow

C.

--authorization-mode=AlwaysDeny

D.

--authorization-mode=ABAC

Question 28

Which statement about Ingress is correct?

Options:

A.

Ingress provides a simple way to track network endpoints within a cluster.

B.

Ingress is a Service type like NodePort and ClusterIP.

C.

Ingress is a construct that allows you to specify how a Pod is allowed to communicate.

D.

Ingress exposes routes from outside the cluster to Services in the cluster.

Question 29

What native runtime is Open Container Initiative (OCI) compliant?

Options:

A.

runC

B.

runV

C.

kata-containers

D.

gvisor

Question 30

A platform engineer wants to ensure that a new microservice is automatically deployed to every cluster registered in Argo CD. Which configuration best achieves this goal?

Options:

A.

Set up a Kubernetes CronJob that redeploys the microservice to all registered clusters on a schedule.

B.

Manually configure every registered cluster with the deployment YAML for installing the microservice.

C.

Create an Argo CD ApplicationSet that uses a Git repository containing the microservice manifests.

D.

Use a Helm chart to package the microservice and manage it with a single Application defined in Argo CD.

Question 31

Which of the following sentences is true about container runtimes in Kubernetes?

Options:

A.

If you let iptables see bridged traffic, you don't need a container runtime.

B.

If you enable IPv4 forwarding, you don't need a container runtime.

C.

Container runtimes are deprecated, you must install CRI on each node.

D.

You must install a container runtime on each node to run pods on it.

Question 32

What is the purpose of the kubelet component within a Kubernetes cluster?

Options:

A.

A dashboard for Kubernetes clusters that allows management and troubleshooting of applications.

B.

A network proxy that runs on each node in your cluster, implementing part of the Kubernetes Service concept.

C.

A component that watches for newly created Pods with no assigned node, and selects a node for them to run on.

D.

An agent that runs on each node in the cluster. It makes sure that containers are running in a Pod.

Question 33

What can be used to create a job that will run at specified times/dates or on a repeating schedule?

Options:

A.

Job

B.

CalendarJob

C.

BatchJob

D.

CronJob

Question 34

Which of the following is a correct definition of a Helm chart?

Options:

A.

A Helm chart is a collection of YAML files bundled in a tar.gz file and can be applied without decompressing it.

B.

A Helm chart is a collection of JSON files and contains all the resource definitions to run an application on Kubernetes.

C.

A Helm chart is a collection of YAML files that can be applied on Kubernetes by using the kubectl tool.

D.

A Helm chart is similar to a package and contains all the resource definitions to run an application on Kubernetes.

Question 35

In Kubernetes, what is the primary purpose of creating a Service resource for a Deployment?

Options:

A.

To centrally manage and apply runtime configuration values for application components.

B.

To provide a stable endpoint for accessing Pods even when their IP addresses change.

C.

To automatically adjust the number of Pods based on CPU or memory utilization metrics.

D.

To define and attach persistent volumes that store application data across Pod restarts.

Question 36

Which of the following statements is correct concerning Open Policy Agent (OPA)?

Options:

A.

The policies must be written in Python language.

B.

Kubernetes can use it to validate requests and apply policies.

C.

Policies can only be tested when published.

D.

It cannot be used outside Kubernetes.

Question 37

Why is Cloud-Native Architecture important?

Options:

A.

Cloud Native Architecture revolves around containers, microservices and pipelines.

B.

Cloud Native Architecture removes constraints to rapid innovation.

C.

Cloud Native Architecture is modern for application deployment and pipelines.

D.

Cloud Native Architecture is a bleeding edge technology and service.

Question 38

What is a sidecar container?

Options:

A.

A Pod that runs next to another container within the same Pod.

B.

A container that runs next to another Pod within the same namespace.

C.

A container that runs next to another container within the same Pod.

D.

A Pod that runs next to another Pod within the same namespace.

Question 39

Can a Kubernetes Service expose multiple ports?

Options:

A.

No, you can only expose one port per each Service.

B.

Yes, but you must specify an unambiguous name for each port.

C.

Yes, the only requirement is to use different port numbers.

D.

No, because the only port you can expose is port number 443.

Question 40

What are the two essential operations that the kube-scheduler normally performs?

Options:

A.

Pod eviction or starting

B.

Resource monitoring and reporting

C.

Filtering and scoring nodes

D.

Starting and terminating containers

Question 41

What are the initial namespaces that Kubernetes starts with?

Options:

A.

default, kube-system, kube-public, kube-node-lease

B.

default, system, kube-public

C.

kube-default, kube-system, kube-main, kube-node-lease

D.

kube-default, system, kube-main, kube-primary

Question 42

Which authorization-mode allows granular control over the operations that different entities can perform on different objects in a Kubernetes cluster?

Options:

A.

Webhook Mode Authorization Control

B.

Role Based Access Control

C.

Node Authorization Access Control

D.

Attribute Based Access Control

Question 43

What is the default deployment strategy in Kubernetes?

Options:

A.

Rolling update

B.

Blue/Green deployment

C.

Canary deployment

D.

Recreate deployment

Question 44

If kubectl is failing to retrieve information from the cluster, where can you find Pod logs to troubleshoot?

Options:

A.

/var/log/pods/

B.

~/.kube/config

C.

/var/log/k8s/

D.

/etc/kubernetes/

Question 45

When modifying an existing Helm release to apply new configuration values, which approach is the best practice?

Options:

A.

Use helm upgrade with the --set flag to apply new values while preserving the release history.

B.

Use kubectl edit to modify the live release configuration and apply the updated resource values.

C.

Delete the release and reinstall it with the desired configuration to force an updated deployment.

D.

Edit the Helm chart source files directly and reapply them to push the updated configuration values.

Question 46

Which of the following is a recommended security habit in Kubernetes?

Options:

A.

Run the containers as the user with group ID 0 (root) and any user ID.

B.

Disallow privilege escalation from within a container as the default option.

C.

Run the containers as the user with user ID 0 (root) and any group ID.

D.

Allow privilege escalation from within a container as the default option.

Question 47

A site reliability engineer needs to temporarily prevent new Pods from being scheduled on node-2 while keeping the existing workloads running without disruption. Which kubectl command should be used?

Options:

A.

kubectl cordon node-2

B.

kubectl delete node-2

C.

kubectl drain node-2

D.

kubectl pause deployment

Question 48

Which cloud native tool keeps Kubernetes clusters in sync with sources of configuration (like Git repositories), and automates updates to configuration when there is new code to deploy?

Options:

A.

Flux and ArgoCD

B.

GitOps Toolkit

C.

Linkerd and Istio

D.

Helm and Kustomize

Question 49

The Container Runtime Interface (CRI) defines the protocol for the communication between:

Options:

A.

The kubelet and the container runtime.

B.

The container runtime and etcd.

C.

The kube-apiserver and the kubelet.

D.

The container runtime and the image registry.

Question 50

What is the core metric type in Prometheus used to represent a single numerical value that can go up and down?

Options:

A.

Summary

B.

Counter

C.

Histogram

D.

Gauge

Question 51

CI/CD stands for:

Options:

A.

Continuous Information / Continuous Development

B.

Continuous Integration / Continuous Development

C.

Cloud Integration / Cloud Development

D.

Continuous Integration / Continuous Deployment

Question 52

What default level of protection is applied to the data in Secrets in the Kubernetes API?

Options:

A.

The values use AES symmetric encryption

B.

The values are stored in plain text

C.

The values are encoded with SHA256 hashes

D.

The values are base64 encoded

Question 53

In a Kubernetes cluster, what is the primary role of the Kubernetes scheduler?

Options:

A.

To manage the lifecycle of the Pods by restarting them when they fail.

B.

To monitor the health of the nodes and Pods in the cluster.

C.

To handle network traffic between services within the cluster.

D.

To distribute Pods across nodes based on resource availability and constraints.

Question 54

Which of these components is part of the Kubernetes Control Plane?

Options:

A.

CoreDNS

B.

cloud-controller-manager

C.

kube-proxy

D.

kubelet

Question 55

Which Kubernetes Service type exposes a service only within the cluster?

Options:

A.

ClusterIP

B.

NodePort

C.

LoadBalancer

D.

ExternalName

Question 56

What is a probe within Kubernetes?

Options:

A.

A monitoring mechanism of the Kubernetes API.

B.

A pre-operational scope issued by the kubectl agent.

C.

A diagnostic performed periodically by the kubelet on a container.

D.

A logging mechanism of the Kubernetes API.

Question 57

Which type of Service requires manual creation of Endpoints?

Options:

A.

LoadBalancer

B.

Services without selectors

C.

NodePort

D.

ClusterIP with selectors

Question 58

In Kubernetes, what is the primary responsibility of the kubelet running on each worker node?

Options:

A.

To allocate persistent storage volumes and manage distributed data replication for Pods.

B.

To manage cluster state information and handle all scheduling decisions for workloads.

C.

To ensure that containers defined in Pod specifications are running and remain healthy on the node.

D.

To provide internal DNS resolution and route service traffic between Pods and nodes.

Question 59

What is an ephemeral container?

Options:

A.

A specialized container that runs as root for infosec applications.

B.

A specialized container that runs temporarily in an existing Pod.

C.

A specialized container that extends and enhances the main container in a Pod.

D.

A specialized container that runs before the app container in a Pod.

Question 60

Let’s assume that an organization needs to process large amounts of data in bursts, on a cloud-based Kubernetes cluster. For instance: each Monday morning, they need to run a batch of 1000 compute jobs of 1 hour each, and these jobs must be completed by Monday night. What’s going to be the most cost-effective method?

Options:

A.

Run a group of nodes with the exact required size to complete the batch on time, and use a combination of taints, tolerations, and nodeSelectors to reserve these nodes to the batch jobs.

B.

Leverage the Kubernetes Cluster Autoscaler to automatically start and stop nodes as they’re needed.

C.

Commit to a specific level of spending to get discounted prices (with e.g. “reserved instances” or similar mechanisms).

D.

Use PriorityClasses so that the weekly batch job gets priority over other workloads running on the cluster, and can be completed on time.

Question 61

Which component of the Kubernetes architecture is responsible for integration with the CRI container runtime?

Options:

A.

kubeadm

B.

kubelet

C.

kube-apiserver

D.

kubectl

Question 62

What edge and service proxy tool is designed to be integrated with cloud native applications?

Options:

A.

CoreDNS

B.

CNI

C.

gRPC

D.

Envoy

Question 63

What is the primary purpose of a Horizontal Pod Autoscaler (HPA) in Kubernetes?

Options:

A.

To automatically scale the number of Pod replicas based on resource utilization.

B.

To track performance metrics and report health status for nodes and Pods.

C.

To coordinate rolling updates of Pods when deploying new application versions.

D.

To allocate and manage persistent volumes required by stateful applications.

Question 64

Which mechanism can be used to automatically adjust the amount of resources for an application?

Options:

A.

Horizontal Pod Autoscaler (HPA)

B.

Kubernetes Event-driven Autoscaling (KEDA)

C.

Cluster Autoscaler

D.

Vertical Pod Autoscaler (VPA)

Question 65

What is CRD?

Options:

A.

Custom Resource Definition

B.

Custom Restricted Definition

C.

Customized RUST Definition

D.

Custom RUST Definition

Question 66

In which framework do the developers no longer have to deal with capacity, deployments, scaling and fault tolerance, and OS?

Options:

A.

Docker Swarm

B.

Kubernetes

C.

Mesos

D.

Serverless

Question 67

What is the reference implementation of the OCI runtime specification?

Options:

A.

lxc

B.

CRI-O

C.

runc

D.

Docker

Question 68

At which layer would distributed tracing be implemented in a cloud native deployment?

Options:

A.

Network

B.

Application

C.

Database

D.

Infrastructure

Question 69

What are the two steps performed by the kube-scheduler to select a node to schedule a pod?

Options:

A.

Grouping and placing

B.

Filtering and selecting

C.

Filtering and scoring

D.

Scoring and creating

Question 70

The cloud native architecture centered around microservices provides a strong system that ensures ______________.

Options:

A.

fallback

B.

resiliency

C.

failover

D.

high reachability

Question 71

In Kubernetes, what is the primary purpose of using annotations?

Options:

A.

To control the access permissions for users and service accounts.

B.

To provide a way to attach metadata to objects.

C.

To specify the deployment strategy for applications.

D.

To define the specifications for resource limits and requests.

Page: 1 / 24
Total 239 questions