Google Cloud Professional Cloud DevOps Engineer — Question 159
Your company runs applications in Google Kubernetes Engine (GKE). Several applications rely on ephemeral volumes. You noticed some applications were unstable due to the DiskPressure node condition on the worker nodes. You need to identify which Pods are causing the issue, but you do not have execute access to workloads and nodes. What should you do?
Answer options
- A. Check the node/ephemeral_storage/used_bytes metric by using Metrics Explorer.
- B. Check the container/ephemeral_storage/used_bytes metric by using Metrics Explorer.
- C. Locate all the Pods with emptyDir volumes. Use the df -h command to measure volume disk usage.
- D. Locate all the Pods with emptyDir volumes. Use the df -sh * command to measure volume disk usage.
Correct answer: B
Explanation
The correct answer is B because checking the container/ephemeral_storage/used_bytes metric allows you to monitor the disk usage of ephemeral storage at the container level without needing execute access. Options A, C, and D are incorrect because they either look at node-level metrics, which do not pinpoint the specific Pods causing the issue, or they involve commands that require execution permissions on the nodes.