Certified Kubernetes Application Developer (CKAD) Practice Test 2025 - Free CKAD Practice Questions and Comprehensive Study Guide

Image Description

Question: 1 / 400

Which property should be set to specify the service account for a pod?

.spec.serviceAccount

.spec.accountName

.spec.serviceAccountName

To specify the service account for a pod in Kubernetes, the correct property to set is `.spec.serviceAccountName`. This property allows you to define which service account the pod will use for its API access, thereby granting it the associated permissions defined by the Role or ClusterRole linked to that service account.

When a pod is created, it utilizes the service account to authenticate requests to the Kubernetes API server. Setting the service account correctly is crucial for managing permissions effectively and ensuring that the pod has the rights it needs to operate as intended, particularly when interacting with cluster resources or APIs.

The other choices do not reflect the correct Kubernetes API specification: `.spec.serviceAccount` and `.pod.serviceAccount` are not valid properties, and `.spec.accountName` does not exist in the Kubernetes API documentation for pod specifications, which further emphasizes that `.spec.serviceAccountName` is indeed the correct property.

Get further explanation with Examzify DeepDiveBeta

.pod.serviceAccount

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy