Kubernetes and Cloud Native Associate (KCNA) free question 1 / 10 · Domain 1: Kubernetes Fundamentals
Which description of a Kubernetes component matches etcd?
- An agent on each node that makes sure the containers of assigned Pods are running
- An agent on each node that maintains the network rules which implement Services
- A consistent and highly available key value store for the data of the API server
- The server that exposes the Kubernetes HTTP API and is the front door to the cluster
Show the answer and explanation
Answer: C
Why this is correct
The Kubernetes Components page lists etcd among the control plane components and describes it as a consistent and highly available key value store for all API server data. Every object that describes the state of the cluster, such as Pods, Deployments, and Secrets, is recorded there. Clients and other components never read or write etcd directly; they go through kube-apiserver, which validates requests and persists the result. Because the whole cluster state lives in etcd, the page treats it as the one component whose data must be backed up and kept available. The other three descriptions each name a different component: the API server, kube-proxy, and the kubelet.
Why the other options are wrong
"The server that exposes the Kubernetes HTTP API and is the front door to the cluster" … That is kube-apiserver. It exposes the Kubernetes HTTP API, and users and other components talk to it rather than to etcd directly.
"An agent on each node that maintains the network rules which implement Services" … That is kube-proxy, which runs on nodes and maintains network rules so that Services work. It stores nothing about the cluster.
"An agent on each node that makes sure the containers of assigned Pods are running" … That is the kubelet, which ensures that Pods are running, including their containers. It acts on nodes and is not a data store.
Match each component to its one job
kube-apiserver is the front door, etcd is the memory, kubelet keeps Pods running on its node, and kube-proxy maintains Service networking rules on the node.