PROFESSIONAL-CLOUD-DEVOPS-ENGINEER practice question 22 of 25

[Building and implementing service monitoring strategies] Your company runs applications in Google Kubernetes Engine (GKE). Several applications rely…

Full set: 205 questions
[Building and implementing service monitoring strategies] 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. Correct answer
B: Check the 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 du -sh * command to measure volume disk usage.
Correct Answer:
A. Check the node/ephemeral_storage/used_bytes metric by using Metrics Explorer.
Explanation

The DiskPressure node condition indicates that the node is running out of ephemeral storage. Since you do not have execute access to nodes or pods, you cannot use command-line tools. The correct approach is to use Cloud Monitoring's Metrics Explorer. The metric kubernetes.io/node/ephemeralstorage/usedbytes (represented in the question as node/ephemeralstorage/usedbytes) tracks this specific resource usage. You can group or filter this metric by pod and namespace labels to identify which specific pods are consuming the most ephemeral storage and causing the issue.

Why Incorrect

B. This option is too vague. It does not specify which metric to check, making it an incomplete and unhelpful answer.
C. Using the df -h command requires execute access into the pod or node, which the problem statement explicitly says you do not have.
D. Using the du -sh command requires execute access into the pod or node, which the problem statement explicitly says you do not have.

References

1. Google Cloud Documentation

GKE system metrics: "GKE system metrics are measurements of the low-level resources of a GKE cluster

such as CPU

memory

and storage... kubernetes.io/node/ephemeralstorage/usedbytes: The amount of ephemeral storage used by non-containerized pods

in bytes."

2. Kubernetes Documentation

Node-pressure Eviction: "The kubelet reports a DiskPressure condition when node root disk (or imagefs) or nodefs usage is high. nodefs is the node's main filesystem

used for local disk volumes

emptyDir

and other things. imagefs is the filesystem that container runtimes use to store images and container-writable layers."

Scroll to Top