Google Cloud Professional Cloud Developer — Question 19

You are deploying your application to a Compute Engine virtual machine instance with the Stackdriver Monitoring Agent installed. Your application is a unix process on the instance. You want to be alerted if the unix process has not run for at least 5 minutes. You are not able to change the application to generate metrics or logs.
Which alert condition should you configure?

Answer options

Correct answer: C

Explanation

The correct answer is C, Metric absence, because it allows you to specify an alert for situations where no data points are received within a certain timeframe, in this case, 5 minutes of inactivity. The other options do not fit this requirement; Uptime check monitors service availability, Process health checks for the status of a specific process, and Metric threshold checks if a metric exceeds a certain value, none of which address the absence of the process directly.