DOP-C02 Question 215
Select 2Your organization has deployed a highly available web application using Amazon ECS on AWS Fargate. To ensure application reliability, the DevOps team wants to implement monitoring and alerting for both application performance and infrastructure health. Which combination of solutions will allow you to achieve this effectively?
- A
Use Amazon CloudWatch to create custom metrics and alarms for application-specific performance indicators like request latency and error rates.
- B
Enable AWS X-Ray tracing for distributed tracing of application requests to identify performance bottlenecks and track dependencies.
- C
Set up an Amazon CloudTrail trail to monitor application health and generate performance metrics.
- D
Use AWS Systems Manager to configure and monitor infrastructure health metrics for ECS tasks running on Fargate.
- E
Deploy AWS Trusted Advisor to automatically monitor the application for performance and provide real-time metric insights.
Show answer and explanation
Correct answers: A, B
Explanation
Monitoring applications and infrastructure in AWS requires a combination of tools tailored for specific tasks. Amazon CloudWatch provides powerful metrics and alarms for performance monitoring, while AWS X-Ray offers distributed tracing to diagnose application performance bottlenecks. Together, these tools provide a comprehensive solution for monitoring and alerting. CloudTrail, Systems Manager, and Trusted Advisor serve different purposes and are not suitable for this scenario.
- A. Correct.
Correct: Amazon CloudWatch allows you to monitor application-specific performance metrics and set alarms. Metrics like request latency and error rates are critical for understanding application performance.
- B. Correct.
Correct: AWS X-Ray enables distributed tracing, which is essential for identifying performance bottlenecks and understanding how requests flow through the application. This complements CloudWatch metrics.
- C. Incorrect.
Incorrect: Amazon CloudTrail is used for tracking API calls and user activity, not for generating application performance metrics or monitoring health.
- D. Incorrect.
Incorrect: AWS Systems Manager is primarily used for operational tasks like patch management, automation, and compliance. It does not directly monitor ECS tasks or provide performance metrics for Fargate.
- E. Incorrect.
Incorrect: AWS Trusted Advisor provides recommendations for cost optimization, security, and performance improvements but is not a tool for real-time monitoring or application-specific metrics.