Amazon Web Services AWS Certified DevOps Engineer - Professional DOP-C02 Question # 75 Topic 8 Discussion
DOP-C02 Exam Topic 8 Question 75 Discussion:
Question #: 75
Topic #: 8
A company’s web app runs on EC2 Linux instances and needs to monitor custom metrics for API response and DB query latency across instances with least overhead.
Which solution meets this?
A.
Install CloudWatch agent on instances, configure it to collect custom metrics, and instrument app to send metrics to agent.
B.
Use Amazon Managed Service for Prometheus to scrape metrics, use CloudWatch agent to forward metrics to CloudWatch.
C.
Create Lambda to poll app endpoints and DB, calculate metrics, send to CloudWatch via PutMetricData.
D.
Implement custom logging in app; use CloudWatch Logs Insights to extract and analyze metrics.
Installing the CloudWatch agent and instrumenting the application to push custom metrics to the agent is the easiest and lowest overhead method.
Prometheus (B) adds operational complexity.
Lambda polling (C) introduces unnecessary complexity and latency.
Using Logs Insights (D) requires extracting metrics from logs, which is less efficient.
[References:, Custom Metrics with CloudWatch Agent, CloudWatch Agent User Guide, , ]
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit