What alert condition should be configured for an application to be notified if it hasn't run for over 5 minutes?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Prepare for the Google Cloud Professional Cloud Developer Test. Benefit from mock assessments featuring flashcards and multiple-choice format, each furnished with hints and detailed explanations. Excel in your exam with confidence!

The most appropriate alert condition for notifying an application when it hasn't run for over 5 minutes is to configure a metric absence alert. This type of alert is designed to trigger an alert when specific metrics do not produce any data within a defined timeframe.

For an application that should be running periodically, if it does not report its metrics (such as CPU usage, memory usage, or application-specific metrics) for a span of 5 minutes, this indicates that there may be an issue that needs to be addressed, such as the application being down or unresponsive. By using a metric absence condition, you can ensure your monitoring system actively checks for the presence of data points and promptly notifies you if the application fails to report metrics within the specified time window.

Using an uptime check primarily verifies whether a service is reachable or responding to requests, which might not necessarily indicate inactivity in terms of running. Configuring a process health check could monitor if a specific process is running but may not directly relate to the application's overall activity level. Metric thresholds would require you to set specific metrics and their respective thresholds, which doesn't directly address the need to check for the absence of activity over time.

Therefore, metric absence is the optimal choice to cover the scenario of the application not

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy