Topic 1 Question 235
You are supporting a business-critical application in production deployed on Cloud Run. The application is reporting HTTP 500 errors that are affecting the usability of the application. You want to be alerted when the number of errors exceeds 15% of the requests within a specific time window. What should you do?
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.
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.
Create an alerting policy in Cloud Monitoring that alerts you if the number of errors is above the defined threshold.
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.
ユーザの投票
コメント(3)
- 正解だと思う選択肢: C
Option A involves creating a Cloud Function that is triggered by Cloud Scheduler, but this option does not fully address the requirement of being alerted if the number of errors exceeds a specific threshold. Option A requires manual checking of the error count, whereas option C provides a more automated solution by setting up an alerting policy in Cloud Monitoring that sends an alert if the number of errors exceeds the defined threshold.
👍 2mrvergara2023/02/04 - 正解だと思う選択肢: A
https://cloud.google.com/monitoring/alerts/policies-in-api#metric-polices A has all 3 requirements , C is also good , but i will go with A
👍 1TNT872023/02/01 - 正解だと思う選択肢: C👍 1Pime132023/02/19
シャッフルモード