Google Cloud Professional Cloud DevOps Engineer — Question 36
You support an application that stores product information in cached memory. For every cache miss, an entry is logged in Stackdriver Logging. You want to visualize how often a cache miss happens over time. What should you do?
Answer options
- A. Link Stackdriver Logging as a source in Google Data Studio. Filter the logs on the cache misses.
- B. Configure Stackdriver Profiler to identify and visualize when the cache misses occur based on the logs.
- C. Create a logs-based metric in Stackdriver Logging and a dashboard for that metric in Stackdriver Monitoring.
- D. Configure BigQuery as a sink for Stackdriver Logging. Create a scheduled query to filter the cache miss logs and write them to a separate table.
Correct answer: C
Explanation
The correct answer is C because creating a logs-based metric in Stackdriver Logging allows you to quantify cache misses effectively and visualize them in Stackdriver Monitoring. Option A does not provide the necessary metrics for visualization, while Option B focuses on profiling rather than tracking frequency. Option D, while useful for data analysis, adds unnecessary complexity for simply tracking cache misses over time.