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

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

Testing Engine

  • Product Type: Testing Engine
$37.5  $124.99

PDF Study Guide

  • Product Type: PDF Study Guide
$33  $109.99
Question 1

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 2

Which of the following observability data streams would be most useful when desiring to plot resource consumption and predicted future resource exhaustion?

Options:

A.

stdout

B.

Traces

C.

Logs

D.

Metrics

Question 3

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 4

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 5

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 6

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 7

What is a DaemonSet?

Options:

A.

It’s a type of workload that ensures a specific set of nodes run a copy of a Pod.

B.

It’s a type of workload responsible for maintaining a stable set of replica Pods running in any node.

C.

It’s a type of workload that needs to be run periodically on a given schedule.

D.

It’s a type of workload that provides guarantees about ordering, uniqueness, and identity of a set of Pods.

Question 8

Which one of the following is an open source runtime security tool?

Options:

A.

lxd

B.

containerd

C.

falco

D.

gVisor

Question 9

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 10

What element allows Kubernetes to run Pods across the fleet of nodes?

Options:

A.

The node server.

B.

The etcd static pods.

C.

The API server.

D.

The kubelet.

Question 11

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 12

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 13

What factors influence the Kubernetes scheduler when it places Pods on nodes?

Options:

A.

Pod memory requests, node taints, and Pod affinity.

B.

Pod labels, node labels, and request labels.

C.

Node taints, node level, and Pod priority.

D.

Pod priority, container command, and node labels.

Question 14

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 15

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 16

What is a Kubernetes Service Endpoint?

Options:

A.

It is the API endpoint of our Kubernetes cluster.

B.

It is a name of special Pod in kube-system namespace.

C.

It is an IP address that we can access from the Internet.

D.

It is an object that gets IP addresses of individual Pods assigned to it.

Question 17

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 18

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 19

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 20

The Kubernetes project work is carried primarily by SIGs. What does SIG stand for?

Options:

A.

Special Interest Group

B.

Software Installation Guide

C.

Support and Information Group

D.

Strategy Implementation Group

Question 21

What sentence is true about CronJobs in Kubernetes?

Options:

A.

A CronJob creates one or multiple Jobs on a repeating schedule.

B.

A CronJob creates one container on a repeating schedule.

C.

CronJobs are useful on Linux but are obsolete in Kubernetes.

D.

The CronJob schedule format is different in Kubernetes and Linux.

Question 22

Which of the following is a feature Kubernetes provides by default as a container orchestration tool?

Options:

A.

A portable operating system.

B.

File system redundancy.

C.

A container image registry.

D.

Automated rollouts and rollbacks.

Question 23

What is the default deployment strategy in Kubernetes?

Options:

A.

Rolling update

B.

Blue/Green deployment

C.

Canary deployment

D.

Recreate deployment

Question 24

What is the main purpose of the Ingress in Kubernetes?

Options:

A.

Access HTTP and HTTPS services running in the cluster based on their IP address.

B.

Access services different from HTTP or HTTPS running in the cluster based on their IP address.

C.

Access services different from HTTP or HTTPS running in the cluster based on their path.

D.

Access HTTP and HTTPS services running in the cluster based on their path.

Question 25

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 26

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 27

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 28

Which of the following sentences is true about namespaces in Kubernetes?

Options:

A.

You can create a namespace within another namespace in Kubernetes.

B.

You can create two resources of the same kind and name in a namespace.

C.

The default namespace exists when a new cluster is created.

D.

All the objects in the cluster are namespaced by default.

Question 29

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 30

What is a cloud native application?

Options:

A.

It is a monolithic application that has been containerized and is running now on the cloud.

B.

It is an application designed to be scalable and take advantage of services running on the cloud.

C.

It is an application designed to run all its functions in separate containers.

D.

It is any application that runs in a cloud provider and uses its services.

Question 31

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 32

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 33

Which of these commands is used to retrieve the documentation and field definitions for a Kubernetes resource?

Options:

A.

kubectl explain

B.

kubectl api-resources

C.

kubectl get --help

D.

kubectl show

Question 34

What is Flux constructed with?

Options:

A.

GitLab Environment Toolkit

B.

GitOps Toolkit

C.

Helm Toolkit

D.

GitHub Actions Toolkit

Question 35

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 36

Kubernetes ___ protect you against voluntary interruptions (such as deleting Pods, draining nodes) to run applications in a highly available manner.

Options:

A.

Pod Topology Spread Constraints

B.

Pod Disruption Budgets

C.

Taints and Tolerations

D.

Resource Limits and Requests

Question 37

Which of the following is a definition of Hybrid Cloud?

Options:

A.

A combination of services running in public and private data centers, only including data centers from the same cloud provider.

B.

A cloud native architecture that uses services running in public clouds, excluding data centers in different availability zones.

C.

A cloud native architecture that uses services running in different public and private clouds, including on-premises data centers.

D.

A combination of services running in public and private data centers, excluding serverless functions.

Question 38

Which is the correct kubectl command to display logs in real time?

Options:

A.

kubectl logs -p test-container-1

B.

kubectl logs -c test-container-1

C.

kubectl logs -l test-container-1

D.

kubectl logs -f test-container-1

Question 39

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 40

Which Kubernetes-native deployment strategy supports zero-downtime updates of a workload?

Options:

A.

Canary

B.

Recreate

C.

BlueGreen

D.

RollingUpdate

Question 41

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

Options:

A.

Job

B.

Batch

C.

DaemonSet

D.

CronJob

Question 42

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 43

Which kubectl command is useful for collecting information about any type of resource that is active in a Kubernetes cluster?

Options:

A.

describe

B.

list

C.

expose

D.

explain

Question 44

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 45

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 46

What service account does a Pod use in a given namespace when the service account is not specified?

Options:

A.

admin

B.

sysadmin

C.

root

D.

default

Question 47

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 48

How many different Kubernetes service types can you define?

Options:

A.

2

B.

3

C.

4

D.

5

Question 49

What does CNCF stand for?

Options:

A.

Cloud Native Community Foundation

B.

Cloud Native Computing Foundation

C.

Cloud Neutral Computing Foundation

D.

Cloud Neutral Community Foundation

Question 50

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 51

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 52

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 53

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

Options:

A.

runC

B.

runV

C.

kata-containers

D.

gvisor

Question 54

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 55

Which of the following options include only mandatory fields to create a Kubernetes object using a YAML file?

Options:

A.

apiVersion, template, kind, status

B.

apiVersion, metadata, status, spec

C.

apiVersion, template, kind, spec

D.

apiVersion, metadata, kind, spec

Question 56

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 57

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 58

What are the most important resources to guarantee the performance of an etcd cluster?

Options:

A.

CPU and disk capacity.

B.

Network throughput and disk I/O.

C.

CPU and RAM memory.

D.

Network throughput and CPU.

Question 59

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.

Page: 1 / 20
Total 199 questions