Troubleshooting and Optimization I
Explore how to identify and resolve common issues in AWS developer environments. Learn to monitor custom application metrics on EC2 using CloudWatch, troubleshoot API Gateway latency with key metrics, understand security group firewalls, select cost-effective EC2 instances, and troubleshoot user data script problems on Linux EC2 instances.
We'll cover the following...
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. ...