You need alerts when average container memory usage on GKE is below 20% or above 80%. How should you configure alerts?
Choose an answer
Tap an option to check your answer.
Correct answer: In Cloud Monitoring, create an alerting policy that notifies you if average memory consumption is outside the defined range..
Why this is the answer
The most effective and native way to monitor and alert on GKE container memory usage is by using Cloud Monitoring. Cloud Monitoring provides built-in metrics for GKE, including container memory usage, and allows you to create alerting policies based on these metrics. This approach is fully managed, scalable, and integrates seamlessly with GKE. Creating a Cloud Function to poll the Monitoring API is an overly complex and less efficient solution than using Cloud Monitoring's native alerting capabilities. Similarly, running kubectl top from a scheduled Cloud Function or writing a script to read OS-level metrics are inefficient and non-standard approaches for monitoring GKE container resources. These methods would require significant custom development and maintenance, and they wouldn't leverage the robust monitoring infrastructure already provided by Google Cloud.
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