Bird
0
0

Which of the following is a valid use case for creating a log-based metric?

easy📝 Conceptual Q2 of 15
GCP - Cloud Monitoring and Logging
Which of the following is a valid use case for creating a log-based metric?
ATracking the number of users logged into a system
BMeasuring the average CPU load of a VM
CCalculating the total disk space used by logs
DCounting the number of HTTP 500 errors in your application logs
Step-by-Step Solution
Solution:
  1. Step 1: Identify what log-based metrics track

    They track counts or distributions of log entries matching filters, like error codes.
  2. Step 2: Match use case to log-based metric capability

    Counting HTTP 500 errors is a classic example of log-based metric use.
  3. Final Answer:

    Counting the number of HTTP 500 errors in your application logs -> Option D
  4. Quick Check:

    Log-based metrics track log counts = HTTP 500 errors [OK]
Quick Trick: Log-based metrics count log events, not system metrics [OK]
Common Mistakes:
  • Confusing log-based metrics with system performance metrics
  • Trying to track user sessions with log-based metrics
  • Assuming log size is tracked

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes