You are managing an application that exposes an HTTP endpoint without using a load balancer. The latency of the HTTP responses is important for the user experience. You want to understand what HTTP latencies all of your users are experiencing. You use Stackdriver Monitoring. What should you do?
A. In your application, create a metric with a metricKind set to DELTA and a valueType set to DOUBLE. In Stackdriver’s Metrics Explorer, use a Stacked Bar graph to visualize the metric.
B. In your application, create a metric with a metricKind set to CUMULATIVE and a valueType set to DOUBLE. In Stackdriver’s Metrics Explorer, use a Line graph to visualize the metric.
C. In your application, create a metric with a metricKind set to GAUGE and a valueType set to DISTRIBUTION. In Stackdriver’s Metrics Explorer, use a Heatmap graph to visualize the metric.
D. In your application, create a metric with a metricKind set to METRIC_KIND_UNSPECIFIED and a valueType set to INT64. In Stackdriver’s Metrics Explorer, use a Stacked Area graph to visualize the metric.
Disclaimer
This is a practice question. There is no guarantee of coming this question in the certification exam.
Answer
C
Explanation
A. In your application, create a metric with a metricKind set to DELTA and a valueType set to DOUBLE. In Stackdriver’s Metrics Explorer, use a Stacked Bar graph to visualize the metric.
B. In your application, create a metric with a metricKind set to CUMULATIVE and a valueType set to DOUBLE. In Stackdriver’s Metrics Explorer, use a Line graph to visualize the metric.
C. In your application, create a metric with a metricKind set to GAUGE and a valueType set to DISTRIBUTION. In Stackdriver’s Metrics Explorer, use a Heatmap graph to visualize the metric.
(Reference : https://cloud.google.com/monitoring/api/v3/kinds-and-types?hl=en
GAUGE Metric : In which value measures a specific instant in time.
DELTA Metric : In which the value measures the change since it was last recorded.
CUMULATIVE metric : In which the value constantly increases over time.)
D. In your application, create a metric with a metricKind set to METRIC_KIND_UNSPECIFIED and a valueType set to INT64. In Stackdriver’s Metrics Explorer, use a Stacked Area graph to visualize the metric.