A team has set up the alerting policies shown in the exhibit. They receive an alert for High Memory but not for High CPU. What is the most likely reason?
Exhibit
Refer to the exhibit.
```
{
"alertPolicies": [
{
"displayName": "High CPU Alert",
"combiner": "OR",
"conditions": [
{
"displayName": "CPU usage > 80%",
"conditionThreshold": {
"filter": "metric.type=\"compute.googleapis.com/instance/cpu/utilization\" resource.type=\"gce_instance\"",
"comparison": "COMPARISON_GT",
"thresholdValue": 0.8,
"duration": "300s",
"trigger": {
"count": 1
}
}
}
]
},
{
"displayName": "High Memory Alert",
"conditions": [
{
"displayName": "Memory usage > 90%",
"conditionThreshold": {
"filter": "metric.type=\"agent.googleapis.com/memory/percent_used\" resource.type=\"gce_instance\"",
"comparison": "COMPARISON_GT",
"thresholdValue": 0.9,
"duration": "60s",
"trigger": {
"count": 1
}
}
}
]
}
]
}
```Trap 1: The Cloud Monitoring agent is not installed or not reporting on the…
This is incorrect. If the Cloud Monitoring agent were not installed, memory metrics would also be unavailable, so the memory alert would not fire either. The fact that memory alert fired indicates the agent is present.
Trap 2: The memory alert has a higher threshold value, making it easier to…
Incorrect. A higher threshold makes triggering less likely, not more. The memory alert having a higher threshold would make it harder to trigger, but it fired, so this is not the reason.
Trap 3: The CPU metric is not available because the instance does not have…
Incorrect. As with option A, if the CPU metric were unavailable due to agent issues, memory metrics would also be missing. The memory alert firing indicates the agent is working.
- A
The Cloud Monitoring agent is not installed or not reporting on the instance, so the memory metric is missing.
Why wrong: This is incorrect. If the Cloud Monitoring agent were not installed, memory metrics would also be unavailable, so the memory alert would not fire either. The fact that memory alert fired indicates the agent is present.
- B
The CPU alert's duration of 300 seconds prevents it from firing before the memory alert.
Correct. The CPU alert's duration of 300 seconds means it requires high CPU for 5 minutes before firing. The memory alert likely has a shorter duration, so it fires sooner.
- C
The memory alert has a higher threshold value, making it easier to trigger.
Why wrong: Incorrect. A higher threshold makes triggering less likely, not more. The memory alert having a higher threshold would make it harder to trigger, but it fired, so this is not the reason.
- D
The CPU metric is not available because the instance does not have the Cloud Monitoring agent installed.
Why wrong: Incorrect. As with option A, if the CPU metric were unavailable due to agent issues, memory metrics would also be missing. The memory alert firing indicates the agent is working.