Troubleshooting and Optimization
An application on Amazon EC2 slows during peak traffic, but default CloudWatch metrics show low CPU utilization. The developer suspects memory pressure; what should the developer do to collect the missing evidence?
Show the answer
Correct answerC. Configure the CloudWatch agent to publish memory metrics.
AWhy not this: CPU-based scaling changes capacity without collecting evidence about memory utilization.
BWhy not this: Flow logs describe network traffic, not application memory pressure.
CWhy this is right: The agent collects operating system memory metrics needed to investigate memory pressure.
DWhy not this: Detailed monitoring increases metric frequency but does not collect guest operating system memory utilization.
The CloudWatch agent can collect guest operating system memory metrics, which default EC2 monitoring does not provide. Detailed monitoring increases the frequency of supported EC2 metrics but does not add guest memory utilization.