A company runs about 2,000 Amazon EC2 instances across 30 accounts, launched from many different AMIs. It must alarm before any instance exhausts operating system memory, and a change to the collected metrics must reach every existing and new instance without rebuilding images. Which approach meets these requirements with the LEAST operational effort?
Show the answer
Correct answerC. Use State Manager to install the CloudWatch agent with a configuration from Parameter Store, then alarm on memory.
AWhy not this: Detailed monitoring sends hypervisor metrics every minute; EC2 publishes no guest memory metric without an agent.
BWhy not this: Baked configuration needs new images for every change and misses instances launched from other AMIs.
CWhy this is right: State Manager keeps the agent installed and configured on existing and new managed instances, and reapplies the stored configuration when it changes.
DWhy not this: Enhanced infrastructure metrics lengthen Compute Optimizer's lookback for recommendations; they do not collect memory or drive alarms.
Guest memory is visible only through the CloudWatch agent. At fleet scale, Systems Manager State Manager associations install and configure the agent on every managed instance, including new ones, and a configuration kept in Parameter Store can be changed once and reapplied without rebuilding images. CloudWatch alarms then evaluate the agent's memory metric.