Spring Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70percent

Linux Foundation KCNA Kubernetes and Cloud Native Associate Exam Practice Test

Demo: 71 questions
Total 239 questions

Kubernetes and Cloud Native Associate Questions and Answers

Question 1

What is a Kubernetes service with no cluster IP address called?

Options:

A.

Headless Service

B.

Nodeless Service

C.

IPLess Service

D.

Specless Service

Question 2

How many different Kubernetes service types can you define?

Options:

A.

2

B.

3

C.

4

D.

5

Question 3

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 4

Which of the following are tasks performed by a container orchestration tool?

Options:

A.

Schedule, scale, and manage the health of containers.

B.

Create images, scale, and manage the health of containers.

C.

Debug applications, and manage the health of containers.

D.

Store images, scale, and manage the health of containers.

Question 5

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 6

In a cloud native world, what does the IaC abbreviation stand for?

Options:

A.

Infrastructure and Code

B.

Infrastructure as Code

C.

Infrastructure above Code

D.

Infrastructure across Code

Question 7

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 8

Which command provides information about the field replicas within the spec resource of a deployment object?

Options:

A.

kubectl get deployment.spec.replicas

B.

kubectl explain deployment.spec.replicas

C.

kubectl describe deployment.spec.replicas

D.

kubectl explain deployment --spec.replicas

Question 9

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 10

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 11

Which Kubernetes resource uses immutable: true boolean field?

Options:

A.

Deployment

B.

Pod

C.

ConfigMap

D.

ReplicaSet

Question 12

A Kubernetes Pod is returning a CrashLoopBackOff status. What is the most likely reason for this behavior?

Options:

A.

There are insufficient resources allocated for the Pod.

B.

The application inside the container crashed after starting.

C.

The container’s image is missing or cannot be pulled.

D.

The Pod is unable to communicate with the Kubernetes API server.

Question 13

What is a Dockerfile?

Options:

A.

A bash script that is used to automatically build a docker image.

B.

A config file that defines which image registry a container should be pushed to.

C.

A text file that contains all the commands a user could call on the command line to assemble an image.

D.

An image layer created by a running container stored on the host.

Question 14

Which command will list the resource types that exist within a cluster?

Options:

A.

kubectl api-resources

B.

kubectl get namespaces

C.

kubectl api-versions

D.

curl https://kubectrl/namespaces

Question 15

What is the Kubernetes abstraction that allows groups of Pods to be exposed inside a Kubernetes cluster?

Options:

A.

Deployment

B.

Daemon

C.

Unit

D.

Service

Question 16

What is the role of a NetworkPolicy in Kubernetes?

Options:

A.

The ability to cryptic and obscure all traffic.

B.

The ability to classify the Pods as isolated and non isolated.

C.

The ability to prevent loopback or incoming host traffic.

D.

The ability to log network security events.

Question 17

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

Options:

A.

fallback

B.

resiliency

C.

failover

D.

high reachability

Question 18

In Kubernetes, which abstraction defines a logical set of Pods and a policy by which to access them?

Options:

A.

Service Account

B.

NetworkPolicy

C.

Service

D.

Custom Resource Definition

Question 19

Which statement about the Kubernetes network model is correct?

Options:

A.

Pods can only communicate with Pods exposed via a Service.

B.

Pods can communicate with all Pods without NAT.

C.

The Pod IP is only visible inside a Pod.

D.

The Service IP is used for the communication between Services.

Question 20

What is the goal of load balancing?

Options:

A.

Automatically measure request performance across instances of an application.

B.

Automatically distribute requests across different versions of an application.

C.

Automatically distribute instances of an application across the cluster.

D.

Automatically distribute requests across instances of an application.

Question 21

Which of the following options include resources cleaned by the Kubernetes garbage collection mechanism?

Options:

A.

Stale or expired CertificateSigningRequests (CSRs) and old deployments.

B.

Nodes deleted by a cloud controller manager and obsolete logs from the kubelet.

C.

Unused container and container images, and obsolete logs from the kubelet.

D.

Terminated pods, completed jobs, and objects without owner references.

Question 22

What is a Pod?

Options:

A.

A networked application within Kubernetes.

B.

A storage volume within Kubernetes.

C.

A single container within Kubernetes.

D.

A group of one or more containers within Kubernetes.

Question 23

Which of the following workload requires a headless Service while deploying into the namespace?

Options:

A.

StatefulSet

B.

CronJob

C.

Deployment

D.

DaemonSet

Question 24

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 25

How are ReplicaSets and Deployments related?

Options:

A.

Deployments manage ReplicaSets and provide declarative updates to Pods.

B.

ReplicaSets manage stateful applications, Deployments manage stateless applications.

C.

Deployments are runtime instances of ReplicaSets.

D.

ReplicaSets are subsets of Jobs and CronJobs which use imperative Deployments.

Question 26

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 27

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 28

Imagine there is a requirement to run a database backup every day. Which Kubernetes resource could be used to achieve that?

Options:

A.

kube-scheduler

B.

CronJob

C.

Task

D.

Job

Question 29

In Kubernetes, what is the primary function of a RoleBinding?

Options:

A.

To provide a user or group with permissions across all resources at the cluster level.

B.

To assign the permissions of a Role to a user, group, or service account within a namespace.

C.

To enforce namespace network rules by binding policies to Pods running in the namespace.

D.

To create and define a new Role object that contains a specific set of permissions.

Question 30

Which item is a Kubernetes node component?

Options:

A.

kube-scheduler

B.

kubectl

C.

kube-proxy

D.

etcd

Question 31

What methods can you use to scale a Deployment?

Options:

A.

With kubectl edit deployment exclusively.

B.

With kubectl scale-up deployment exclusively.

C.

With kubectl scale deployment and kubectl edit deployment.

D.

With kubectl scale deployment exclusively.

Question 32

What is the default deployment strategy in Kubernetes?

Options:

A.

Rolling update

B.

Blue/Green deployment

C.

Canary deployment

D.

Recreate deployment

Question 33

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 34

Why do administrators need a container orchestration tool?

Options:

A.

To manage the lifecycle of an elevated number of containers.

B.

To assess the security risks of the container images used in production.

C.

To learn how to transform monolithic applications into microservices.

D.

Container orchestration tools such as Kubernetes are the future.

Question 35

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 36

In a cloud native environment, who is usually responsible for maintaining the workloads running across the different platforms?

Options:

A.

The cloud provider.

B.

The Site Reliability Engineering (SRE) team.

C.

The team of developers.

D.

The Support Engineering team (SE).

Question 37

A Pod named my-app must be created to run a simple nginx container. Which kubectl command should be used?

Options:

A.

kubectl create nginx --name=my-app

B.

kubectl run my-app --image=nginx

C.

kubectl create my-app --image=nginx

D.

kubectl run nginx --name=my-app

Question 38

What happens with a regular Pod running in Kubernetes when a node fails?

Options:

A.

A new Pod with the same UID is scheduled to another node after a while.

B.

A new, near-identical Pod but with different UID is scheduled to another node.

C.

By default, a Pod can only be scheduled to the same node when the node fails.

D.

A new Pod is scheduled on a different node only if it is configured explicitly.

Question 39

Which persona is normally responsible for defining, testing, and running an incident management process?

Options:

A.

Site Reliability Engineers

B.

Project Managers

C.

Application Developers

D.

Quality Engineers

Question 40

What is the correct hierarchy of Kubernetes components?

Options:

A.

Containers → Pods → Cluster → Nodes

B.

Nodes → Cluster → Containers → Pods

C.

Cluster → Nodes → Pods → Containers

D.

Pods → Cluster → Containers → Nodes

Question 41

In a cloud native environment, how do containerization and virtualization differ in terms of resource management?

Options:

A.

Containerization uses hypervisors to manage resources, while virtualization does not.

B.

Containerization shares the host OS, while virtualization runs a full OS for each instance.

C.

Containerization consumes more memory than virtualization by default.

D.

Containerization allocates resources per container, virtualization does not isolate them.

Question 42

In a serverless computing architecture:

Options:

A.

Users of the cloud provider are charged based on the number of requests to a function.

B.

Serverless functions are incompatible with containerized functions.

C.

Users should make a reservation to the cloud provider based on an estimation of usage.

D.

Containers serving requests are running in the background in idle status.

Question 43

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 44

To visualize data from Prometheus you can use expression browser or console templates. What is the other data visualization tool commonly used together with Prometheus?

Options:

A.

Grafana

B.

Graphite

C.

Nirvana

D.

GraphQL

Question 45

How can you monitor the progress for an updated Deployment/DaemonSets/StatefulSets?

Options:

A.

kubectl rollout watch

B.

kubectl rollout progress

C.

kubectl rollout state

D.

kubectl rollout status

Question 46

How is application data maintained in containers?

Options:

A.

Store data into data folders.

B.

Store data in separate folders.

C.

Store data into sidecar containers.

D.

Store data into volumes.

Question 47

What is the main purpose of a DaemonSet?

Options:

A.

A DaemonSet ensures that all (or certain) nodes run a copy of a Pod.

B.

A DaemonSet ensures that the kubelet is constantly up and running.

C.

A DaemonSet ensures that there are as many pods running as specified in the replicas field.

D.

A DaemonSet ensures that a process (agent) runs on every node.

Question 48

What function does kube-proxy provide to a cluster?

Options:

A.

Implementing the Ingress resource type for application traffic.

B.

Forwarding data to the correct endpoints for Services.

C.

Managing data egress from the cluster nodes to the network.

D.

Managing access to the Kubernetes API.

Question 49

Which tool is used to streamline installing and managing Kubernetes applications?

Options:

A.

apt

B.

helm

C.

service

D.

brew

Question 50

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 51

Kubernetes supports multiple virtual clusters backed by the same physical cluster. These virtual clusters are called:

Options:

A.

Namespaces

B.

Containers

C.

Hypervisors

D.

cgroups

Question 52

Which of these is a valid container restart policy?

Options:

A.

On login

B.

On update

C.

On start

D.

On failure

Question 53

What is the main role of the Kubernetes DNS within a cluster?

Options:

A.

Acts as a DNS server for virtual machines that are running outside the cluster.

B.

Provides a DNS as a Service, allowing users to create zones and registries for domains that they own.

C.

Allows Pods running in dual stack to convert IPv6 calls into IPv4 calls.

D.

Provides consistent DNS names for Pods and Services for workloads that need to communicate with each other.

Question 54

What is the order of 4C’s in Cloud Native Security, starting with the layer that a user has the most control over?

Options:

A.

Cloud -> Container -> Cluster -> Code

B.

Container -> Cluster -> Code -> Cloud

C.

Cluster -> Container -> Code -> Cloud

D.

Code -> Container -> Cluster -> Cloud

Question 55

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 56

Imagine you're releasing open-source software for the first time. Which of the following is a valid semantic version?

Options:

A.

1.0

B.

2021-10-11

C.

0.1.0-rc

D.

v1beta1

Question 57

If a Pod was waiting for container images to download on the scheduled node, what state would it be in?

Options:

A.

Failed

B.

Succeeded

C.

Unknown

D.

Pending

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

Which tools enable Kubernetes HorizontalPodAutoscalers to use custom, application-generated metrics to trigger scaling events?

Options:

A.

Prometheus and the prometheus-adapter.

B.

Graylog and graylog-autoscaler metrics.

C.

Graylog and the kubernetes-adapter.

D.

Grafana and Prometheus.

Question 60

There is an application running in a logical chain: Gateway API → Service → EndpointSlice → Container.

What Kubernetes API object is missing from this sequence?

Options:

A.

Proxy

B.

Docker

C.

Pod

D.

Firewall

Question 61

What is an important consideration when choosing a base image for a container in a Kubernetes deployment?

Options:

A.

It should be minimal and purpose-built for the application to reduce attack surface and improve performance.

B.

It should always be the latest version to ensure access to the newest features.

C.

It should be the largest available image to ensure all dependencies are included.

D.

It can be any existing image from the public repository without consideration of its contents.

Question 62

What is a key feature of a container network?

Options:

A.

Proxying REST requests across a set of containers.

B.

Allowing containers running on separate hosts to communicate.

C.

Allowing containers on the same host to communicate.

D.

Caching remote disk access.

Question 63

What is the practice of bringing financial accountability to the variable spend model of cloud resources?

Options:

A.

FaaS

B.

DevOps

C.

CloudCost

D.

FinOps

Question 64

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 65

What is the minimum number of etcd members that are required for a highly available Kubernetes cluster?

Options:

A.

Two etcd members.

B.

Five etcd members.

C.

Six etcd members.

D.

Three etcd members.

Question 66

What is the role of the ingressClassName field in a Kubernetes Ingress resource?

Options:

A.

It defines the type of protocol (HTTP or HTTPS) that the Ingress Controller should process.

B.

It specifies the backend Service used by the Ingress Controller to route external requests.

C.

It determines how routing rules are prioritized when multiple Ingress objects are applied.

D.

It indicates which Ingress Controller should implement the rules defined in the Ingress resource.

Question 67

What are the characteristics for building every cloud-native application?

Options:

A.

Resiliency, Operability, Observability, Availability

B.

Resiliency, Containerd, Observability, Agility

C.

Kubernetes, Operability, Observability, Availability

D.

Resiliency, Agility, Operability, Observability

Question 68

What are the advantages of adopting a GitOps approach for your deployments?

Options:

A.

Reduce failed deployments, operational costs, and fragile release processes.

B.

Reduce failed deployments, configuration drift, and fragile release processes.

C.

Reduce failed deployments, operational costs, and learn git.

D.

Reduce failed deployments, configuration drift and improve your reputation.

Question 69

A Kubernetes _____ is an abstraction that defines a logical set of Pods and a policy by which to access them.

Options:

A.

Selector

B.

Controller

C.

Service

D.

Job

Question 70

What Linux namespace is shared by default by containers running within a Kubernetes Pod?

Options:

A.

Host Network

B.

Network

C.

Process ID

D.

Process Name

Question 71

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.

Demo: 71 questions
Total 239 questions