Google Cloud Associate Cloud Engineer — Question 320

You have a Compute Engine instance hosting a production application. You want to receive an email if the instance consumes more than 90% of its CPU resources for more than 15 minutes. You want to use Google services. What should you do?

Answer options

Correct answer: B

Explanation

The correct answer is B because it correctly outlines the use of Cloud Monitoring to create an Alerting Policy that will notify you based on CPU usage metrics without requiring custom scripts. Options A and C involve unnecessary scripting, while option D uses logs-based metrics which is not the most straightforward method for monitoring CPU performance in this case.