KCNA
Free trial
Verified
Question 1
What native runtime is Open Container Initiative (OCI) compliant?
- A: runC
- B: runV
- C: kata-containers
- D: gvisor
Question 2
What function does kube-proxy provide to a cluster?
- 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 3
Which of these events will cause the kube-scheduler to assign a Pod to a node?
- 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 4
Which resource do you use to attach a volume in a Pod?
- A: StorageVolume
- B: PersistentVolume
- C: StorageClass
- D: PersistentVolumeClaim
Question 5
Which key-value store is used to persist Kubernetes cluster data?
- A: etcd
- B: ZooKeeper
- C: ControlPlaneStore
- D: Redis
Question 6
What Linux namespace is shared by default by containers running within a Kubernetes Pod?
- A: Host Network
- B: Network
- C: Process ID
- D: Process Name
Question 7
What is a Dockerfile?
- 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 8
What does the "nodeSelector" within a PodSpec use to place Pods on the target nodes?
- A: Annotations
- B: IP Addresses
- C: Hostnames
- D: Labels
Question 9
What do Deployments and StatefulSets have in common?
- A: They manage Pods that are based on an identical container spec.
- B: They support the OnDelete update strategy.
- C: They support an ordered, graceful deployment and scaling.
- D: They maintain a sticky identity for each of their Pods.
Question 10
What is the practice of bringing financial accountability to the variable spend model of cloud resources?
- A: FaaS
- B: DevOps
- C: CloudCost
- D: FinOps
Question 11
What is a best practice to minimize the container image size?
- A: Use a DockerFile.
- B: Use multistage builds.
- C: Build images with different tags.
- D: Add a build.sh script.
Question 12
How long should a stable API element in Kubernetes be supported (at minimum) after deprecation?
- A: 9 months
- B: 24 months
- C: 12 months
- D: 6 months
Question 13
Which tools enable Kubernetes HorizontalPodAutoscalers to use custom, application-generated metrics to trigger scaling events?
- A: Prometheus and the prometheus-adapter.
- B: Graylog and graylog-autoscaler metrics.
- C: Graylog and the kubernetes-adapter.
- D: Grafana and Prometheus.
Question 14
Which of the following is a valid PromQL query?
- 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 15
Which of the following best describes horizontally scaling an application deployment?
- A: The act of adding/removing node instances to the cluster to meet demand.
- B: The act of adding/removing applications to meet demand.
- C: The act of adding/removing application instances of the same application to meet demand.
- D: The act of adding/removing resources to application instances to meet demand.
Question 16
How many different Kubernetes service types can you define?
- A: 2
- B: 3
- C: 4
- D: 5
Question 17
What is the difference between a Deployment and a ReplicaSet?
- A: With a Deployment, you can’t control the number of pod replicas.
- B: A ReplicaSet does not guarantee a stable set of replica pods running.
- C: A Deployment is basically the same as a ReplicaSet with annotations.
- D: A Deployment is a higher-level concept that manages ReplicaSets.
Question 18
The Container Runtime Interface (CRI) defines the protocol for the communication between:
- 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 19
Which authorization-mode allows granular control over the operations that different entities can perform on different objects in a Kubernetes cluster?
- A: Webhook Mode Authorization Control
- B: Role Based Access Control
- C: Node Authorization Access Control
- D: Attribute Based Access Control
Question 20
Which of the following is a correct definition of a Helm chart?
- 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 21
Which of the following sentences is true about namespaces in Kubernetes?
- 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 22
How does Horizontal Pod autoscaling work in Kubernetes?
- 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 23
What is the name of the lightweight Kubernetes distribution built for IoT and edge computing?
- A: OpenShift
- B: k3s
- C: RKE
- D: k1s
Question 24
What is a Pod?
- 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 25
What element allows Kubernetes to run Pods across the fleet of nodes?
- A: The node server.
- B: The etcd static pods.
- C: The API server.
- D: The kubelet.
Free preview mode
Enjoy the free questions and consider upgrading to gain full access!