SOA-C02 Question 1
Select 2Your company runs a critical web application on an Amazon EC2 Auto Scaling group behind an Application Load Balancer (ALB). Recently, users reported intermittent 5xx errors. As the SysOps Administrator, you need to identify the root cause and implement a solution to mitigate the issue. Which solution will help you monitor and remediate this problem effectively?
- A
Enable ALB access logs and analyze the logs stored in Amazon S3 for patterns of 5xx errors.
- B
Set up an Amazon CloudWatch Logs metric filter on the Auto Scaling group instances to track application errors.
- C
Configure an AWS CloudTrail trail to track changes in the Auto Scaling group capacity settings.
- D
Create a CloudWatch alarm to trigger an Auto Scaling policy based on high CPU utilization metrics on the EC2 instances.
- E
Enable AWS Config to monitor configuration changes in the ALB and EC2 Auto Scaling group.
Show answer and explanation
Correct answers: A, B
Explanation
To effectively monitor and remediate intermittent 5xx errors, you need to identify the root cause. ALB access logs provide insights into the specific requests resulting in 5xx errors, while CloudWatch Logs metric filters help track application-level issues within the EC2 instances. These tools work together to provide a comprehensive view of the issue, enabling you to implement appropriate remediation steps.
- A. Correct.
Enabling ALB access logs allows you to capture detailed request and response data for the Application Load Balancer, including 5xx errors. This helps identify patterns or specific requests causing the errors.
- B. Correct.
Setting up a CloudWatch Logs metric filter for application-level logs on the EC2 instances helps detect and monitor specific errors occurring within the application, complementing the ALB logs.
- C. Incorrect.
CloudTrail tracks API-level changes in AWS services but does not directly help in identifying or resolving 5xx errors related to application or infrastructure issues.
- D. Incorrect.
A CloudWatch alarm for high CPU utilization could trigger scaling actions, but it does not directly address or help monitor 5xx errors in the application or ALB.
- E. Incorrect.
AWS Config monitors configuration changes, which is useful for compliance and auditing, but it is not directly relevant for identifying or resolving 5xx errors.