Soru

Zorluk: OrtaAWS Compute Optimizer and Right-Sizing

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.)

  1. Deploy the unified CloudWatch agent on the instances to collect and transmit memory utilization metrics.Cevap
  2. Associate an IAM role with the instances that has the CloudWatchAgentServerPolicy policy attached.Cevap
  3. C
    Enable detailed monitoring for the EC2 instances to capture metrics at 1-minute intervals.
  4. D
    Activate user-defined cost allocation tags for memory metrics in the AWS Billing and Cost Management console.
  5. E
    Configure AWS Trusted Advisor to sync custom host-level memory metrics with the optimization engine.

Cevap

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.

Adım Adım Çözüm

1
Deploy the unified CloudWatch agent on the target EC2 instances.
The agent starts collecting OS-level memory metrics that are not natively captured by the hypervisor.
AWS Compute Optimizer requires the unified CloudWatch agent to retrieve EC2 memory metrics.
2
Attach an IAM role with CloudWatch write permissions (such as CloudWatchAgentServerPolicy) to the EC2 instances.
The unified CloudWatch agent has the necessary permissions to publish the collected memory metrics to Amazon CloudWatch.
Without these permissions, the agent cannot send metric data to CloudWatch, preventing Compute Optimizer from accessing it.

Anahtar Kavram

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.
Bu soruyu puanla