
Answer-first summary for fast verification
Answer: Set the metric kind to gauge.
Option A is incorrect because there is no Metric Kind of distribution. Option B is correct as it measures the value at a particular instant in time, making it ideal for memory utilization. Option C is incorrect as it's used for values that constantly increase over time, not suitable for memory monitoring. Option D is incorrect as it measures the change since the last recording, not applicable here. References: [Google Cloud Monitoring API](https://cloud.google.com/monitoring/api/v3/kinds-and-types#metric-kinds) and [Creating Custom Metrics](https://cloud.google.com/monitoring/custom-metrics/creating-metrics#create-metric-desc).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your team is deploying a new application on Managed Instance Groups and you're in charge of setting up the monitoring agent along with custom metrics. You've decided to manually create the metric descriptor. For monitoring the application's memory utilization and setting up an alerting policy, what should the Metric Kind be set to in the descriptor?
A
Set the metric kind to distribution.
B
Set the metric kind to gauge.
C
Set the metric kind to cumulative.
D
Set the metric kind to delta.
No comments yet.