Question 460
A Kubernetes administrator recommends: Replace emptyDir with a persistent volume claim backed by durable storage appropriate to the database. Which situation most directly calls for that operation?
Explanation
Correct Answer
This is the original issue addressed by Ephemeral emptyDir lifetime: The application data persists independently of the transient Pod lifecycle when the storage backend supports it.
Incorrect Answers
That separate problem requires another operation: Verify that the CSI driver supports resize and enable allowVolumeExpansion on the StorageClass before updating the claim size. The controller can request supported persistent volume expansion rather than rejecting the size increase.
That separate problem requires another operation: Mount a writable emptyDir or PVC for generated output and use the ConfigMap projection only as read-only configuration. Writable application artifacts are separated from immutable projected configuration data.
That separate problem requires another operation: Create an appropriately provisioned PVC in sales and reference it from the local Pod template. The namespaced workload mounts a claim within its own namespace instead of crossing claim boundaries.