A SysOps Administrator is optimizing a fleet of Amazon EC2 instances hosting a distributed file-indexing service. The instances currently show high CPU utilization spikes, and AWS Compute Optimizer recommends upgrading to a larger instance type. However, the administrator suspects that the workload is memory-constrained and wants to ensure that memory utilization metrics are included in the recommendation analysis.
Which actions should the administrator perform to achieve this goal? (Select TWO.)
- Deploy the unified CloudWatch agent on the instances to collect and transmit memory utilization metrics.Answer
- Associate an IAM role with the instances that has the CloudWatchAgentServerPolicy policy attached.Answer
- CEnable detailed monitoring for the EC2 instances to capture metrics at 1-minute intervals.
- DActivate user-defined cost allocation tags for memory metrics in the AWS Billing and Cost Management console.
- EConfigure AWS Trusted Advisor to sync custom host-level memory metrics with the optimization engine.
Answer
Deploy the unified CloudWatch agent on the instances to collect and transmit memory utilization metrics, and associate an IAM role with the instances that has the CloudWatchAgentServerPolicy policy attached.
To make memory utilization metrics available to AWS Compute Optimizer, the unified CloudWatch agent must be deployed on the EC2 instances to collect and publish OS-level memory metrics to CloudWatch. Additionally, the EC2 instances must be associated with an IAM role that grants permissions to write these metrics to CloudWatch, which is provided by the CloudWatchAgentServerPolicy managed policy.
Step-by-Step Solution
Key Concept
AWS Compute Optimizer relies on the unified CloudWatch agent and appropriate IAM permissions to ingest and analyze memory utilization metrics for EC2 right-sizing recommendations.