A tagged EC2 fleet continually replaces instances and must collect memory metrics and application logs using a centrally maintained configuration. Instances already have SSM Agent, required permissions, and network access; which approach installs the collector, configures future instances, and periodically corrects configuration drift?
Show the answer
Correct answerA. Use State Manager associations to install CloudWatch agent and periodically apply its configuration from Parameter Store.
AWhy this is right: State Manager supports recurring configuration enforcement and automatically includes new instances that match the tag targets.
BWhy not this: A one-time Run Command invocation does not configure future instances or periodically correct drift.
CWhy not this: Launch-time initialization configures new instances but does not periodically reapply configuration to running instances.
DWhy not this: SSM Agent enables Systems Manager operations; its command output settings do not collect application logs or memory metrics.
Tag-targeted State Manager associations can install CloudWatch agent and periodically apply a centrally stored configuration to current and future matching instances. Launch-time initialization covers replacement instances but does not periodically correct drift.