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

CKA study material · question 824 of 1000

Two containers in a Pod must share one PersistentVolumeClaim but keep their data in separate directories. Which field arranges that?

  1. A projected volume with two sources
  2. Two volumeMounts with different mountPath values
  3. volumeMounts[*].subPath
  4. Two volumeClaimTemplates
Show the answer

Answer: C. volumeMounts[*].subPath

subPath exposes a directory inside the volume rather than its root, which lets several containers share one claim without colliding. Different mount paths alone would still expose the same root.

Source: Volumes (Kubernetes) — Using subPath

Challenge yourself on this topic → Study as cards