Certified Kubernetes Administrator (CKA) Practice Test

Disable ads (and more) with a membership for a one time $2.99 payment

Question: 1 / 70

What is the main purpose of ServiceAccounts in Kubernetes?

They are used to manage storage volumes

They authenticate container processes with the K8s API

The main purpose of ServiceAccounts in Kubernetes is to authenticate container processes with the Kubernetes API. When a pod runs in a Kubernetes cluster, it often needs to communicate with the Kubernetes API to access resources or perform operations inside the cluster. ServiceAccounts provide a way to manage and control this access. Each ServiceAccount is associated with a set of API credentials (specifically, a token) which pods can use to authenticate against the Kubernetes API. By default, when a pod is created, it is assigned a ServiceAccount, allowing it to perform actions based on the permissions granted to that ServiceAccount. This model is essential for maintaining security and proper access control within the Kubernetes environment. ServiceAccounts also allow for the separation of permissions and roles among different applications running in the same cluster, enabling more granular control over what each application or service can do. This capability is crucial for implementing secure and effective role-based access controls (RBAC) within Kubernetes. Other answer choices relate to different functionalities within Kubernetes. Managing storage volumes is handled by PersistentVolume and PersistentVolumeClaim resources. Scheduling Pods is the responsibility of the Kubernetes scheduler, which determines the optimal nodes for running workloads based on various factors. Monitoring cluster resources is typically accomplished using metrics servers and dashboards rather than through ServiceAccounts

They schedule Pods to appropriate nodes

They monitor cluster resources

Next

Report this question