Google Cloud Associate Cloud Engineer — Question 217
You are responsible for a web application on Compute Engine. You want your support team to be notified automatically if users experience high latency for at least 5 minutes. You need a Google-recommended solution with no development cost. What should you do?
Answer options
- A. Export Cloud Monitoring metrics to BigQuery and use a Looker Studio dashboard to monitor your web application’s latency.
- B. Create an alert policy to send a notification when the HTTP response latency exceeds the specified threshold.
- C. Implement an App Engine service which invokes the Cloud Monitoring API and sends a notification in case of anomalies.
- D. Use the Cloud Monitoring dashboard to observe latency and take the necessary actions when the response latency exceeds the specified threshold.
Correct answer: B
Explanation
The correct answer is B because creating an alert policy specifically addresses the need for automated notifications based on latency thresholds without requiring additional development. Option A involves extra steps like exporting to BigQuery and using Looker Studio, which isn't as direct. Option C introduces development overhead with App Engine, and option D lacks the automation aspect that an alert policy provides.