DOP-C02 · Question #444
DOP-C02 Question #444: Real Exam Question with Answer & Explanation
The correct answer is A: Install CloudWatch agent on instances, configure it to collect custom metrics, and instrument app. 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) r
Question
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?
Options
- AInstall CloudWatch agent on instances, configure it to collect custom metrics, and instrument app
- BUse Amazon Managed Service for Prometheus to scrape metrics, use CloudWatch agent to
- CCreate Lambda to poll app endpoints and DB, calculate metrics, send to CloudWatch via
- DImplement custom logging in app; use CloudWatch Logs Insights to extract and analyze metrics.
Explanation
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.
Topics
Community Discussion
No community discussion yet for this question.