Monitoring and Logging

A Linux EC2 instance runs the CloudWatch agent with permission to publish metrics. Operations needs disk_used_percent collected every 10 seconds as a high-resolution metric; which change should the engineer make?

Show the answer

Correct answerB. Set the disk metric's metrics_collection_interval to 10 seconds.

AWhy not this: The log flush interval controls log delivery timing, not metric sampling frequency or resolution.

BWhy this is right: A metrics_collection_interval below 60 seconds makes the agent collect and publish high-resolution metrics.

CWhy not this: A dashboard period changes presentation; it does not increase the source metric's collection frequency.

DWhy not this: Detailed monitoring provides one-minute EC2 service metrics; it does not configure agent disk collection.

The CloudWatch agent publishes metrics collected at intervals below 60 seconds as high-resolution metrics. EC2 detailed monitoring changes the frequency of supported EC2 service metrics, not agent-collected disk metrics.