Soru

Zorluk: ZorAWS Compute Optimizer and Right-Sizing

A company runs a memory-intensive database application on a fleet of Amazon EC2 instances across multiple member accounts in an AWS Organizations organization. A SysOps administrator wants to use AWS Compute Optimizer to generate right-sizing recommendations for these instances. Currently, AWS Compute Optimizer generates recommendations based solely on CPU and network utilization metrics, ignoring the memory bottleneck. The Unified CloudWatch Agent is already installed and running on the EC2 instances. Which action must the administrator take to allow AWS Compute Optimizer to analyze memory utilization and include it in the right-sizing recommendations?

  1. Configure the Unified CloudWatch Agent to publish memory metrics using the default CWAgent namespace, and ensure the InstanceId dimension is included in the agent configuration.Cevap
  2. B
    Enable CloudWatch detailed monitoring on the EC2 instances, and configure AWS Compute Optimizer to retrieve metrics from a custom namespace named AWS/EC2/Memory.
  3. C
    Configure AWS Cost Explorer to track memory metrics, and create an AWS Organizations service control policy (SCP) that allows Compute Optimizer to access the Cost Explorer API.
  4. D
    Create an Amazon EventBridge rule that triggers an AWS Systems Manager Automation document to copy memory metrics from the custom namespace to the default AWS/EC2 namespace.

Cevap

Configure the Unified CloudWatch Agent to publish memory metrics using the default CWAgent namespace, and ensure the InstanceId dimension is included in the agent configuration.
The correct answer is to configure the Unified CloudWatch Agent to publish memory metrics using the default CWAgent namespace and include the InstanceId dimension. AWS Compute Optimizer automatically looks for memory metrics in the default CWAgent namespace. The InstanceId dimension is required for Compute Optimizer to correlate the memory metrics with the specific EC2 instance.

Adım Adım Çözüm

1
Verify CloudWatch Agent configuration.
Confirm that the memory metrics collection (such as mem_used_percent) is enabled in the agent configuration file.
Before metrics can be sent, the agent must be configured to collect them from the operating system.
2
Set the default namespace to CWAgent and include the InstanceId dimension.
The metrics are published under the CWAgent namespace with the InstanceId dimension mapped.
AWS Compute Optimizer is hardcoded to look for memory metrics specifically in the default CWAgent namespace using the InstanceId dimension to associate the utilization data with the correct EC2 resource.
3
Validate the metric delivery in AWS Compute Optimizer.
AWS Compute Optimizer ingests the memory metrics and incorporates them into right-sizing recommendations within 24 hours.
This completes the ingestion pipeline required for memory-aware recommendations.

Anahtar Kavram

AWS Compute Optimizer utilizes memory metrics collected by the Unified CloudWatch Agent, provided they are published to the default CWAgent namespace with the InstanceId dimension.
Tahmini Süre:2m 0s
Bu soruyu puanla