Topic 1 Question 273
Your team recently deployed an application on Google Kubernetes Engine (GKE). You are monitoring your application and want to be alerted when the average memory consumption of your containers is under 20% or above 80%. How should you configure the alerts?
Create a Cloud Function that consumes the Monitoring API. Create a schedule to trigger the Cloud Function hourly and alert you if the average memory consumption is outside the defined range.
In Cloud Monitoring, create an alerting policy to notify you if the average memory consumption is outside the defined range.
Create a Cloud Function that runs on a schedule, executes kubectl top on all the workloads on the cluster, and sends an email alert if the average memory consumption is outside the defined range.
Write a script that pulls the memory consumption of the instance at the OS level and sends an email alert if the average memory consumption is outside the defined range.
ユーザの投票
コメント(5)
B. using Cloud Monitoring to create an alerting policy is the most efficient, reliable, and straightforward method to monitor and be alerted about the memory consumption of your containers in GKE.
👍 2vspringe2023/11/13- 正解だと思う選択肢: B
B is the right answer, alert in the cloud monitoring
👍 1MoanaMacknzy2023/11/23 - 正解だと思う選択肢: B
Cloud Monitoring provides a user-friendly interface to create complex alerting policies. You can set up thresholds for specific metrics, like memory consumption, and receive notifications if these thresholds are exceeded or undercut. This feature negates the need for custom scripts or functions to monitor these metrics.
👍 1plutonians1232023/12/02
シャッフルモード