Cost-Optimized Architecture Design

AWS Compute Optimizer recommends moving a memory-heavy application from r6i.2xlarge instances to a smaller instance type. The application's busiest period is month-end, and the team suspects the recommendation ignores both memory use and the month-end peak. What should the team do to get a reliable recommendation?

Show the answer

Correct answerA. Publish memory metrics with the CloudWatch agent and activate enhanced infrastructure metrics for the instances.

AWhy this is right: Compute Optimizer uses the agent's memory metrics, and enhanced infrastructure metrics extend its lookback to three months, covering month-end peaks.

BWhy not this: Detailed monitoring raises metric frequency but adds no guest memory metric.

CWhy not this: Headroom adds CPU margin but gives Compute Optimizer neither memory data nor the month-end history.

DWhy not this: CPU target tracking does not react to memory pressure, so instances could still run out of memory.

By default Compute Optimizer analyzes 14 days of metrics and has no memory data for EC2 unless the CloudWatch agent publishes it. Publishing memory metrics lets it size for memory, and enhanced infrastructure metrics extend the lookback to up to three months (93 days), so a monthly peak is included.