Study. uk . com
  1. Home
  2. All questions
  3. Question 842

CKA study material · question 842 of 1000

Which Pod field sets the group that owns the files in a Pod's mounted volumes?

  1. spec.securityContext.fsGroup
  2. spec.securityContext.runAsGroup
  3. spec.containers[*].securityContext.runAsUser
  4. spec.serviceAccountName
Show the answer

Answer: A. spec.securityContext.fsGroup

fsGroup on the Pod's security context controls volume file group ownership; runAsGroup sets the process group, which is a different question.

Source: Volumes (Kubernetes) — File owner › Group ownership (GID)

Challenge yourself on this topic → Study as cards