The company migrated servers to EC2 and needs to monitor memory utilization and free disk space using CloudWatch. What is the appropriate action for a SysOps administrator to enable those metrics across all instances?
Choose an answer
Tap an option to check your answer.
Correct answer: Install and configure the CloudWatch agent on every instance and attach an IAM role that permits the instances to send metrics and logs to CloudWatch..
Why this is the answer
The correct approach is to install and configure the CloudWatch agent on each EC2 instance and attach an IAM role with permissions to publish metrics and logs to CloudWatch. Standard CloudWatch monitoring for EC2 instances only provides basic metrics like CPU utilization, network I/O, and disk I/O. Memory utilization and disk space are custom metrics that require the CloudWatch agent to collect and send them. Attaching an IAM role is the secure and recommended way to grant permissions to EC2 instances, avoiding the use of long-lived credentials. Enabling CloudWatch monitoring from the AWS Console only activates basic monitoring; it does not automatically install agents or collect custom metrics. Using IAM user credentials directly on instances is an insecure practice. Modifying security groups is necessary for network access, but it does not grant permission to publish metrics to CloudWatch; that requires IAM permissions.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed