SAP-C02 Question 461
Select 3Your organization has a critical multi-region application built on Amazon EC2 instances behind Application Load Balancers. You notice that the response time of the application has been inconsistent and suspect potential issues with one or more instances in specific regions. You are tasked with setting up monitoring to identify the root cause and ensure detailed metrics are captured for both the load balancers and EC2 instances across regions. Which combination of steps should you take to achieve this?
- A
Enable detailed monitoring for the EC2 instances to capture 1-minute metrics.
- B
Create a CloudWatch Logs subscription filter to stream logs from Application Load Balancers to CloudWatch.
- C
Set up CloudWatch Alarms to monitor the UnhealthyHostCount metric of the Application Load Balancers.
- D
Enable enhanced monitoring for the Application Load Balancers to get per-instance connection data.
- E
Use AWS X-Ray to trace requests across the application components and identify latency issues.
Show answer and explanation
Correct answers: A, C, E
Explanation
To effectively monitor the application and identify the root cause of response time inconsistencies, you need detailed metrics and tracing data. Enabling detailed monitoring for EC2 instances provides higher-resolution metrics. Monitoring the UnhealthyHostCount metric on the Application Load Balancer helps identify backend instance failures. Additionally, AWS X-Ray enables tracing across application components to pinpoint latency issues. CloudWatch Logs subscription filters and enhanced monitoring for ALBs are either irrelevant or not applicable for this scenario.
- A. Correct.
Enabling detailed monitoring for EC2 instances allows you to capture metrics at 1-minute intervals instead of the default 5-minute intervals, providing more granular data to identify performance issues.
- B. Incorrect.
CloudWatch Logs subscription filters are used to stream specific logs to CloudWatch or external destinations, but they are not relevant for monitoring metrics like response time or unhealthy hosts.
- C. Correct.
Setting up CloudWatch Alarms on the UnhealthyHostCount metric helps monitor the health of backend instances behind the Application Load Balancer and can alert you when instances are failing.
- D. Incorrect.
Enhanced monitoring is not available for Application Load Balancers. Instead, you can rely on standard metrics provided by AWS for the ALB, such as TargetResponseTime and UnhealthyHostCount.
- E. Correct.
AWS X-Ray provides end-to-end tracing of requests across services and components, making it a critical tool for identifying latency issues in a multi-region application.