Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
How can you configure alerts in Google Kubernetes Engine (GKE) to notify your team when the average memory consumption of containers falls below 20% or exceeds 80%?
A
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.
B
In Cloud Monitoring, create an alerting policy to notify you if the average memory consumption is outside the defined range.
C
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.
D
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.