
Answer-first summary for fast verification
Answer: Set the metric kind to gauge.
Option B is CORRECT because the gauge metric kind is best suited for measuring the value at a particular instant in time, such as memory utilization. Option A is incorrect as there is no Metric Kind of distribution. Option C is incorrect because cumulative is used for values that constantly increase over time, not suitable for memory utilization. Option D is incorrect as delta is used to measure 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 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.