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

Want more questions?

All options are one-time payments.

$12.99

30 day pass for new members

All the basics to get you started

  • Ad-free experience
  • View your previous attempt history
  • Mobile app access
  • In-depth explanations
  • 30 day premium pass access
$29.99$92.93 usd

6 month DELUXE pass (most popular)

Full access FOR 6 MONTHS! & the ultimate digital PDF study guide (BONUS)

  • $92.93 usd value for $29.99! You save $62.94!
  • Ad-free experience
  • View your previous attempt history
  • Mobile app access
  • In-depth explanations
  • 6 months of full access
  • Ultimate digital PDF study guide included
  • Priority support
$14.99 $19.99

Ultimate digital PDF study guide

For those that prefer a more traditional form of learning

  • Available for instant download
  • Available offline
  • Hundreds of practice multiple choice questions
  • Comprehensive content
  • Detailed explanations
Image Description
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy