ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 144 - Professional Cloud DevOps Engineer discussion

Report
Export

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?

A.
Check the node/ephemeral_storage/used_bytes metric by using Metrics Explorer.
Answers
A.
Check the node/ephemeral_storage/used_bytes metric by using Metrics Explorer.
B.
Check the metric by using Metrics Explorer.
Answers
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.
Answers
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.
Answers
D.
Locate all the Pods with emptyDir volumes. Use the du -sh * command to measure volume disk usage.
Suggested answer: A

Explanation:

The correct answer is A. Check the node/ephemeral_storage/used_bytes metric by using Metrics Explorer.

The node/ephemeral_storage/used_bytes metric reports the total amount of ephemeral storage used by Pods on each node1. You can use Metrics Explorer to query and visualize this metric and filter it by node name, namespace, or Pod name2. This way, you can identify which Pods are consuming the most ephemeral storage and causing disk pressure on the nodes. You do not need to have execute access to the workloads or nodes to use Metrics Explorer.

The other options are incorrect because they require execute access to the workloads or nodes, which you do not have. The df -h and du -sh * commands are Linux commands that can measure disk usage, but you need to run them inside the Pods or on the nodes, which is not possible in your scenario34.

Monitoring metrics for Kubernetes system components, Node metrics, node/ephemeral_storage/used_bytes. Using Metrics Explorer, Querying metrics. How do I find out disk space utilization information using Linux command line?, df command. How to check disk space in Linux from the command line, du command.

asked 18/09/2024
Houshang Ardekani
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first