exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 235 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 235
Topic #: 1
[All Professional Cloud Developer Questions]

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?

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Tusky4u
11 months, 2 weeks ago
C is 100% correct answer, practically used
upvoted 2 times
...
__rajan__
1 year, 2 months ago
Selected Answer: C
C is correct.
upvoted 1 times
...
purushi
1 year, 4 months ago
Selected Answer: C
C is a right answer. Create an alert policy that alerts you if the number of errors exceeds 15% of the requests within a specific time window. Simple and straight forward.
upvoted 2 times
...
Pime13
1 year, 10 months ago
Selected Answer: C
https://cloud.google.com/run/docs/monitoring#custom-metrics https://cloud.google.com/run/docs/monitoring#add_alerts https://cloud.google.com/monitoring/alerts
upvoted 1 times
...
mrvergara
1 year, 10 months ago
Selected Answer: 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.
upvoted 3 times
TNT87
1 year, 10 months ago
How is A involving manual checking cause this is all automated processes???
upvoted 1 times
mrvergara
1 year, 10 months ago
Option A involves setting up multiple Google Cloud Platform (GCP) services, including Cloud Function, Cloud Scheduler, and the Cloud Monitoring API, to monitor the error count and send alerts. This setup process is manual, and the error count must be manually checked after the Cloud Function is triggered by Cloud Scheduler. This approach may not be ideal for business-critical applications that require real-time monitoring and automated alerting.
upvoted 2 times
...
...
...
TNT87
1 year, 10 months ago
Selected Answer: 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
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...