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

CKA study material · question 820 of 1000

What is the documented alternative to a hostPath volume where node-local storage is genuinely needed?

  1. An emptyDir with medium set to Memory
  2. A generic ephemeral volume
  3. A local PersistentVolume
  4. A projected volume
Show the answer

Answer: C. A local PersistentVolume

A hostPath can expose the kubelet's credentials or the container runtime socket; a local PersistentVolume gives node-local storage with node affinity and without that escape hatch.

Source: Volumes (Kubernetes) — Types of volumes › hostPath

Challenge yourself on this topic → Study as cards