Question 1
Monitoring and LoggingThe unified CloudWatch agent on instances in an Auto Scaling group publishes mem_used_percent with only the InstanceId dimension. The team needs one alarm on average memory utilization across the whole group that keeps working as instances are replaced. Which change meets this requirement?
Show the answer
Correct answerB. Add AutoScalingGroupName to append_dimensions and set aggregation_dimensions to [["AutoScalingGroupName"]] in the agent configuration.
AWhy not this: Detailed monitoring sends EC2 hypervisor metrics every minute; it does not collect guest memory or create a group-level memory metric.
BWhy this is right: The agent adds the group name to its metrics and publishes an aggregated series per group, so one alarm covers every current and future instance.
CWhy not this: CloudWatch matches the exact dimension set, and the agent publishes no series with only AutoScalingGroupName, so the alarm would have no data.
DWhy not this: CloudWatch does not turn instance tags into metric dimensions; dimensions come from what the agent publishes.
append_dimensions adds the group name to each instance's metrics, and aggregation_dimensions makes the agent also publish a series rolled up by AutoScalingGroupName, which one alarm can watch regardless of which instances are running. An alarm must match a metric's exact dimension set, so alarming on a dimension the agent doesn't publish returns no data.