A company runs a memory-bound microservices application on Amazon EC2 instances. A SysOps Administrator notices that AWS Compute Optimizer is generating resource recommendations based only on CPU and network metrics, without factoring in memory utilization. Which of the following actions must the administrator take to ensure AWS Compute Optimizer includes memory metrics in its recommendations? (Select TWO.)
- Configure the unified CloudWatch agent on the EC2 instances to publish memory utilization metrics to the default CWAgent namespace.Cevap
- Attach an IAM role to the EC2 instances that includes the CloudWatchAgentServerPolicy managed policy.Cevap
- CEnable CloudWatch detailed monitoring on the EC2 instances to decrease the metric collection interval to 1 minute.
- DConfigure an AWS Budget with a custom optimization alert based on EC2 memory usage.
- ECreate a VPC Gateway Endpoint for CloudWatch and associate it with the subnet route tables to allow the instances to send memory metrics.
Cevap
Configure the unified CloudWatch agent on the EC2 instances to publish memory utilization metrics to the default CWAgent namespace, and attach an IAM role to the EC2 instances that includes the CloudWatchAgentServerPolicy managed policy.
To include memory metrics in AWS Compute Optimizer recommendations, the unified CloudWatch agent must be installed on the EC2 instances to capture OS-level memory utilization and publish it to the CWAgent namespace. Additionally, the EC2 instances must be authorized to write these metrics to CloudWatch, which requires attaching an IAM role with the CloudWatchAgentServerPolicy policy.
Adım Adım Çözüm
Anahtar Kavram
AWS Compute Optimizer memory metric requirements