DVA-C02 · Question #482
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 E
The correct answer is B. Install the Amazon CloudWatch agent on the instances. Configure the agent to collect the EC2. The Amazon CloudWatch agent must be installed on EC2 instances to collect both detailed OS-level metrics and custom application metrics in a unified, configurable way.
Question
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?
Options
- AInstall the AWS X-Ray agent on the instances. Configure the agent to collect the EC2 instance
- BInstall the Amazon CloudWatch agent on the instances. Configure the agent to collect the EC2
- CInstall the AWS SDK in the application's cade. Update the application to use the AWS SDK to
- DConfigure AWS CloudTrail to capture and analyze the EC2 instance metrics and the custom
How the community answered
(41 responses)- A2% (1)
- B93% (38)
- C5% (2)
Why each option
The Amazon CloudWatch agent must be installed on EC2 instances to collect both detailed OS-level metrics and custom application metrics in a unified, configurable way.
AWS X-Ray is a distributed tracing service for analyzing requests and latency across services, not a metrics collection agent for EC2 instance-level resource utilization.
The CloudWatch agent can be configured to collect granular EC2 instance metrics (CPU, memory, disk, network) that are not available by default, as well as custom application metrics via StatsD or collectd protocols, fulfilling both requirements with a single agent installation and JSON configuration file.
The AWS SDK can publish custom application metrics via PutMetricData, but it cannot collect EC2 instance-level OS metrics like memory and disk usage.
AWS CloudTrail records API call history for auditing and compliance purposes, not performance metrics from EC2 instances or applications.
Concept tested: CloudWatch agent for EC2 and custom metrics collection
Source: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Install-CloudWatch-Agent.html
Community Discussion
No community discussion yet for this question.