Troubleshooting and Optimization I

Review assessment questions and explanations against all options to equip yourself with the necessary understanding to confidently tackle the AWS Certified Developer – Associate (DVA-C02) exam questions.

Question 55

A developer is instrumenting a new microservice that runs on Amazon EC2 instances and needs to monitor application-specific metrics. To ensure comprehensive monitoring, the developer needs to collect custom application-level metrics (e.g., number of processed requests per second) and view them in Amazon CloudWatch alongside standard EC2 metrics.

What is the most efficient way to achieve this?

A. Install the CloudWatch Logs agent on each EC2 instance to collect and send custom metrics.

B. Use the CloudWatch agent on each EC2 instance to collect and publish custom metrics.

C. Implement a Lambda function to pull custom metrics ...