QuestionQ195

Designing scalable, available, and reliable cloud-native applications

You support a business-critical production application deployed on Cloud Run. The application is reporting HTTP 500 errors that are affecting its usability. You want to receive an alert when errors exceed 15% of requests within a specified time window. What should you do?

  • A Create a Cloud Function that consumes the Cloud Monitoring API. Use Cloud Scheduler to trigger the Cloud Function daily and alert you if the number of errors is above the defined threshold.
  • B Navigate to the Cloud Run page in the Google Cloud console, and select the service from the services list. Use the Metrics tab to visualize the number of errors for that revision, and refresh the page daily.
  • C Create an alerting policy in Cloud Monitoring that alerts you if the number of errors is above the defined threshold.
  • D Create a Cloud Function that consumes the Cloud Monitoring API. Use Cloud Composer to trigger the Cloud Function daily and alert you if the number of errors is above the defined threshold.
Explanation

A Cloud Monitoring alerting policy can continuously evaluate a metric condition, including a ratio of HTTP error responses to total HTTP responses, against a threshold over a configured evaluation window and send a notification when the threshold is breached.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!