Monitoring and Logging

A company must continuously deliver only AWS/EC2 CPUUtilization and NetworkIn metrics to Amazon S3 in JSON without polling; newly created instances must be included automatically. Which configuration meets these requirements with the least operational overhead?

Show the answer

Correct answerA. Create a metric stream including the two metric names within AWS/EC2 and deliver JSON through Amazon Data Firehose to S3.

AWhy this is right: Metric-name inclusion filters limit the stream to the required metrics while automatically including new instances.

BWhy not this: A namespace-only inclusion filter streams other AWS/EC2 metrics as well as CPUUtilization and NetworkIn.

CWhy not this: Scheduled GetMetricData calls constitute polling and require maintaining a custom collection pipeline.

DWhy not this: CloudWatch Logs subscriptions forward log events, not existing CloudWatch metric data.

Metric streams support inclusion filters for specific metric names within a namespace and continuously deliver updates through Firehose, including metrics from new instances. Including the entire AWS/EC2 namespace would also deliver unwanted metrics.