SAP-C02 Question 463
Select 2A company hosts a fleet of EC2 instances in an Auto Scaling group behind an Application Load Balancer (ALB). The team has been tasked with monitoring application performance and ensuring timely responses to traffic spikes. They want to track metrics like request count, latency, and unhealthy host count, and set up automated responses based on thresholds. Which combination of services and features should be used to meet this requirement?
- A
Use Amazon CloudWatch to monitor ALB metrics such as 'RequestCount' and 'TargetResponseTime'.
- B
Set up CloudWatch Alarms based on ALB metrics and configure Auto Scaling policies to trigger scaling actions.
- C
Enable VPC Flow Logs to capture traffic data and analyze it for performance monitoring.
- D
Configure AWS X-Ray to trace application requests and identify performance bottlenecks.
- E
Use CloudTrail to monitor ALB API calls and ensure compliance with security policies.
Show answer and explanation
Correct answers: A, B
Explanation
To monitor and respond to application performance effectively, you can use Amazon CloudWatch to track ALB metrics like 'RequestCount' and 'TargetResponseTime'. CloudWatch Alarms can be set up based on these metrics to trigger Auto Scaling actions, ensuring the application scales dynamically to handle traffic spikes. While other tools like VPC Flow Logs, AWS X-Ray, and CloudTrail provide valuable insights for specific use cases, they are not directly relevant to monitoring ALB metrics or implementing automated scaling.
- A. Correct.
This is correct. Amazon CloudWatch provides detailed metrics for the ALB, including 'RequestCount' and 'TargetResponseTime', which are essential for monitoring application performance.
- B. Correct.
This is correct. CloudWatch Alarms can monitor metrics and trigger scaling actions through Auto Scaling policies, ensuring the application responds to traffic changes effectively.
- C. Incorrect.
This is incorrect. VPC Flow Logs are used for capturing network traffic metadata, which is not directly related to monitoring ALB metrics like request count or latency.
- D. Incorrect.
This is incorrect. AWS X-Ray is useful for tracing application requests and debugging performance issues, but it is not a primary monitoring tool for ALB metrics or scaling actions.
- E. Incorrect.
This is incorrect. CloudTrail is used for tracking API calls for auditing and compliance purposes, but it does not provide metrics for monitoring application performance or scaling.