Google Cloud Professional Cloud Architect — Question 250

You have a Compute Engine application that you want to autoscale when total memory usage exceeds 80%. You have installed the Cloud Monitoring agent and configured the autoscaling policy as follows:
✑ Metric identifier: agent.googleapis.com/memory/percent_used
✑ Filter: metric.label.state = 'used'
✑ Target utilization level: 80
✑ Target type: GAUGE
You observe that the application does not scale under high load. You want to resolve this. What should you do?

Answer options

Correct answer: C

Explanation

The correct answer is C because it expands the filter to include additional states that contribute to memory usage, allowing the autoscaler to respond more effectively to high loads. The others are incorrect as changing the target type or metric identifier does not address the issue of missed memory states, and setting the filter to 'free' would not trigger scaling when memory is actually in use.