Skip to content
PCA Practice
SQ57

A platform team wants to create log-based metrics that track the count of HTTP 500 errors in application logs and alert when the rate exceeds a threshold. Which workflow is correct?

  1. ADisable 500 errors in the application
  2. BExport all logs to BigQuery → Run a daily SQL query
  3. CCreate a log-based metric in Cloud Logging → Create an alerting policy in Cloud Monitoring
  4. DManually grep logs hourly
Show answer

Answer: C

Log-based metrics extract counter or distribution metrics from log entries, and Cloud Monitoring alerting policies trigger notifications when thresholds are breached—all in near real-time.

← SQ56Practice this topicSQ58 →