New Year 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 / 20
Total 199 questions

Kubernetes and Cloud Native Associate Questions and Answers

Question 1

What does “continuous” mean in the context of CI/CD?

Options:

A.

Frequent releases, manual processes, repeatable, fast processing

B.

Periodic releases, manual processes, repeatable, automated processing

C.

Frequent releases, automated processes, repeatable, fast processing

D.

Periodic releases, automated processes, repeatable, automated processing

Question 2

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 3

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 4

What's the most adopted way of conflict resolution and decision-making for the open-source projects under the CNCF umbrella?

Options:

A.

Financial Analysis

B.

Discussion and Voting

C.

Flipism Technique

D.

Project Founder Say

Question 5

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 6

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 7

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 8

How many different Kubernetes service types can you define?

Options:

A.

2

B.

3

C.

4

D.

5

Question 9

Which statement about Secrets is correct?

Options:

A.

A Secret is part of a Pod specification.

B.

Secret data is encrypted with the cluster private key by default.

C.

Secret data is base64 encoded and stored unencrypted by default.

D.

A Secret can only be used for confidential data.

Question 10

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 11

How to load and generate data required before the Pod startup?

Options:

A.

Use an init container with shared file storage.

B.

Use a PVC volume.

C.

Use a sidecar container with shared volume.

D.

Use another Pod with a PVC.

Question 12

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 13

Which two elements are shared between containers in the same pod?

Options:

A.

Network resources and liveness probes.

B.

Storage and container image registry.

C.

Storage and network resources.

D.

Network resources and Dockerfiles.

Question 14

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 15

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

Options:

A.

Job

B.

Batch

C.

DaemonSet

D.

CronJob

Question 16

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 17

What is the name of the lightweight Kubernetes distribution built for IoT and edge computing?

Options:

A.

OpenShift

B.

k3s

C.

RKE

D.

k1s

Question 18

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 19

Kubernetes ___ allows you to automatically manage the number of nodes in your cluster to meet demand.

Options:

A.

Node Autoscaler

B.

Cluster Autoscaler

C.

Horizontal Pod Autoscaler

D.

Vertical Pod Autoscaler

Question 20

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 21

Which type of Service requires manual creation of Endpoints?

Options:

A.

LoadBalancer

B.

Services without selectors

C.

NodePort

D.

ClusterIP with selectors

Question 22

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 23

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 24

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 25

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 26

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 27

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 28

What fields must exist in any Kubernetes object (e.g. YAML) file?

Options:

A.

apiVersion, kind, metadata

B.

kind, namespace, data

C.

apiVersion, metadata, namespace

D.

kind, metadata, data

Question 29

What does the "nodeSelector" within a PodSpec use to place Pods on the target nodes?

Options:

A.

Annotations

B.

IP Addresses

C.

Hostnames

D.

Labels

Question 30

How can you extend the Kubernetes API?

Options:

A.

Adding a CustomResourceDefinition or implementing an aggregation layer.

B.

Adding a new version of a resource, for instance v4beta3.

C.

With the command kubectl extend api, logged in as an administrator.

D.

Adding the desired API object as a kubelet parameter.

Question 31

Which control plane component is responsible for updating the node Ready condition if a node becomes unreachable?

Options:

A.

The kube-proxy

B.

The node controller

C.

The kubectl

D.

The kube-apiserver

Question 32

Which of the following systems is NOT compatible with the CRI runtime interface standard?

(Typo corrected: “CRI-0” → “CRI-O”)

Options:

A.

CRI-O

B.

dockershim

C.

systemd

D.

containerd

Question 33

Which of these is a valid container restart policy?

Options:

A.

On login

B.

On update

C.

On start

D.

On failure

Question 34

What feature must a CNI support to control specific traffic flows for workloads running in Kubernetes?

Options:

A.

Border Gateway Protocol

B.

IP Address Management

C.

Pod Security Policy

D.

Network Policies

Question 35

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 36

Which storage operator in Kubernetes can help the system to self-scale, self-heal, etc?

Options:

A.

Rook

B.

Kubernetes

C.

Helm

D.

Container Storage Interface (CSI)

Question 37

What is Helm?

Options:

A.

An open source dashboard for Kubernetes.

B.

A package manager for Kubernetes applications.

C.

A custom scheduler for Kubernetes.

D.

An end-to-end testing project for Kubernetes applications.

Question 38

Which of the following is a lightweight tool that manages traffic flows between services, enforces access policies, and aggregates telemetry data, all without requiring changes to application code?

Options:

A.

NetworkPolicy

B.

Linkerd

C.

kube-proxy

D.

Nginx

Question 39

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 40

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 41

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.

curlhttps://kubectrl/namespaces

Question 42

What is the common standard for Service Meshes?

Options:

A.

Service Mesh Specification (SMS)

B.

Service Mesh Technology (SMT)

C.

Service Mesh Interface (SMI)

D.

Service Mesh Function (SMF)

Question 43

What helps an organization to deliver software more securely at a higher velocity?

Options:

A.

Kubernetes

B.

apt-get

C.

Docker Images

D.

CI/CD Pipeline

Question 44

How does Horizontal Pod autoscaling work in Kubernetes?

Options:

A.

The Horizontal Pod Autoscaler controller adds more CPU or memory to the pods when the load is above the configured threshold, and reduces CPU or memory when the load is below.

B.

The Horizontal Pod Autoscaler controller adds more pods when the load is above the configured threshold, but does not reduce the number of pods when the load is below.

C.

The Horizontal Pod Autoscaler controller adds more pods to the specified DaemonSet when the load is above the configured threshold, and reduces the number of pods when the load is below.

D.

The Horizontal Pod Autoscaler controller adds more pods when the load is above the configured threshold, and reduces the number of pods when the load is below.

Question 45

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 46

Which of the following options is true about considerations for large Kubernetes clusters?

Options:

A.

Kubernetes supports up to 1000 nodes and recommends no more than 1000 containers per node.

B.

Kubernetes supports up to 5000 nodes and recommends no more than 500 Pods per node.

C.

Kubernetes supports up to 5000 nodes and recommends no more than 110 Pods per node.

D.

Kubernetes supports up to 50 nodes and recommends no more than 1000 containers per node.

Question 47

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 48

In the Kubernetes platform, which component is responsible for running containers?

Options:

A.

etcd

B.

CRI-O

C.

cloud-controller-manager

D.

kube-controller-manager

Question 49

What is ephemeral storage?

Options:

A.

Storage space that need not persist across restarts.

B.

Storage that may grow dynamically.

C.

Storage used by multiple consumers (e.g., multiple Pods).

D.

Storage that is always provisioned locally.

Question 50

The IPv4/IPv6 dual stack in Kubernetes:

Options:

A.

Translates an IPv4 request from a Service to an IPv6 Service.

B.

Allows you to access the IPv4 address by using the IPv6 address.

C.

Requires NetworkPolicies to prevent Services from mixing requests.

D.

Allows you to create IPv4 and IPv6 dual stack Services.

Question 51

Which Kubernetes resource workload ensures that all (or some) nodes run a copy of a Pod?

Options:

A.

DaemonSet

B.

StatefulSet

C.

kubectl

D.

Deployment

Question 52

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 53

How many hosts are required to set up a highly available Kubernetes cluster when using an external etcd topology?

Options:

A.

Four hosts. Two for control plane nodes and two for etcd nodes.

B.

Four hosts. One for a control plane node and three for etcd nodes.

C.

Three hosts. The control plane nodes and etcd nodes share the same host.

D.

Six hosts. Three for control plane nodes and three for etcd nodes.

Question 54

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 55

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

Options:

A.

Network

B.

Application

C.

Database

D.

Infrastructure

Question 56

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 57

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 58

What is the name of the Kubernetes resource used to expose an application?

Options:

A.

Port

B.

Service

C.

DNS

D.

Deployment

Question 59

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.

Page: 1 / 20
Total 199 questions