You expanded a Compute Engine persistent disk used by Pods via a PVC/PV but the container filesystem doesn't show the increased size. What should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: Update the PVC object's spec.resources.requests.storage to match the resized persistent disk and apply it with kubectl..
Why this is the answer
When a Compute Engine persistent disk is resized, Kubernetes needs to be informed of the new size. This is done by updating the spec.resources.requests.storage field in the PersistentVolumeClaim (PVC) object to reflect the expanded size of the underlying disk. Applying this change with kubectl signals to Kubernetes that the volume has been resized. Kubernetes will then handle the necessary operations to allow the Pod to recognize and utilize the increased storage capacity. Updating the PV object's spec.capacity.storage is not the correct approach; the PVC is the user-facing object that requests storage. Recreating Pods alone won't update the PVC's understanding of the volume size. Resizing the disk partition inside the Pod is a manual, non-Kubernetes-native approach that won't update the PVC and is generally not recommended for managing persistent storage in Kubernetes.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed