QuestionQ101

VerifiedDeployment

A company runs an application on Amazon EC2 instances in an Auto Scaling group. The application experiences variable loads throughout each day.

The company needs to collect detailed metrics from the EC2 instances to right-size the instances. The company also wants to monitor custom application metrics to ensure the application is performing efficiently.

Which solution will meet these requirements?

Explanation

The Amazon CloudWatch agent, once installed on the EC2 instances, collects detailed OS-level metrics (memory, disk, and more) beyond the default EC2 metrics, which is what's needed to right-size the instances, and it can also ingest custom application metrics via StatsD or collectd without any application code changes. X-Ray is designed for distributed tracing, embedding the AWS SDK requires custom instrumentation code, and CloudTrail records API activity rather than performance metrics.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!