PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #9
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 la
The correct answer is C. In your application, create a metric with a metricKind set to GAUGE and a valueType set to. To capture and analyze the distribution of HTTP latencies across all users, you should use a GAUGE metricKind with a DISTRIBUTION valueType. GAUGE metrics represent the value measured at a specific point in time, which is appropriate for latency snapshots per request. A DISTRIBUT
Question
Options
- AIn your application, create a metric with a metricKind set to DELTA and a valueType set to
- BIn your application, create a metric with a metricKind set to CUMULATIVE and a valueType set to
- CIn your application, create a metric with a metricKind set to GAUGE and a valueType set to
- DIn your application, create a metric with a metricKind set to METRIC_KIND_UNSPECIFIED and a
How the community answered
(52 responses)- A2% (1)
- B2% (1)
- C92% (48)
- D4% (2)
Explanation
To capture and analyze the distribution of HTTP latencies across all users, you should use a GAUGE metricKind with a DISTRIBUTION valueType. GAUGE metrics represent the value measured at a specific point in time, which is appropriate for latency snapshots per request. A DISTRIBUTION valueType stores a statistical summary (mean, percentiles, histogram buckets) of observed values, allowing you to understand the full spread of latency across all users - including p50, p95, and p99 percentiles. DELTA tracks incremental changes, and CUMULATIVE accumulates from a start time; neither is ideal for understanding the current distribution of per-request latency.
Topics
Community Discussion
No community discussion yet for this question.