A SysOps Administrator is managing an application running on an Amazon EC2 instance. The application has been experiencing performance degradation, and AWS Compute Optimizer categorizes the instance as underprovisioned. The administrator observes that the CPU utilization regularly peaks at , while the memory utilization remains below . The memory utilization metrics are currently visible in Compute Optimizer because the Unified CloudWatch Agent is installed on the instance. Which actions should the SysOps Administrator take to right-size the instance and ensure future memory utilization metrics continue to be collected? (Select TWO.)
- Resize the EC2 instance to a compute-optimized instance family, such as c5, or a larger instance size in the same family.Answer
- Verify that the IAM role attached to the EC2 instance includes the CloudWatchAgentServerPolicy managed policy.Answer
- CChange the instance type to a memory-optimized instance family, such as r5, to address the performance degradation.
- DEnable detailed monitoring for the EC2 instance in the Amazon CloudWatch console to permit the ingestion of memory utilization metrics.
- EConfigure an AWS Budgets alert to automatically scale the EC2 instance to a larger size when CPU utilization exceeds .
Answer
Resize the EC2 instance to a compute-optimized instance family (such as c5) or a larger instance size in the same family, and verify that the IAM role attached to the EC2 instance includes the CloudWatchAgentServerPolicy managed policy.
The correct options are resizing the EC2 instance to a compute-optimized instance family (such as c5) or a larger instance size in the same family, and verifying that the IAM role attached to the EC2 instance includes the CloudWatchAgentServerPolicy managed policy. The high CPU utilization () combined with low memory utilization () indicates that the instance is CPU-bound, making a compute-optimized instance family the correct right-sizing choice. Because memory is an OS-level metric, AWS Compute Optimizer requires the Unified CloudWatch Agent to report these metrics. For the agent to successfully send metrics to CloudWatch, the EC2 instance's IAM role must contain the CloudWatchAgentServerPolicy policy.
Step-by-Step Solution
Key Concept
AWS Compute Optimizer rightsizing recommendations for EC2 instances require memory metrics from the Unified CloudWatch Agent, which relies on the CloudWatchAgentServerPolicy IAM policy. The instance type must match the specific bottleneck (CPU-bound vs. memory-bound).
Estimated Time:1m 30s